Vous êtes sur la page 1sur 34

Web Technologies

CIET

Page No 1

(BTIT-605)

PRACTICAL NO 1
AIM Define HTML and DHTML .
HTML

HTML stands for HyperText Markup Language is the standard markup

languageused to create web pages. HTML is written in the form of HTML elements consisting of tags enclosed inangle brackets (like <html>). HTML tags most commonly come in pairs like<h1> and </h1>, although some tags represent empty elements and so are unpaired, for example <img>. The first tag in a pair is the start tag, and the second tag is the end tag (they are also called opening tags and closing tags). The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. HTML describes the structure of a website semantically along with cues for presentation, making it a markup language rather than a programming language. HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structuralsemantics for text such as headings, paragraphs, lists, links, quotes and other items. It can embed scripts written in languages such as JavaScript which affect the behavior of HTML web pages. Web browsers can also refer to Cascading Style Sheets (CSS) to define the look and layout of text and other material. The W3C, maintainer of both the HTML and the CSS standards, encourages the use of CSS over explicit presentational HTML. The first publicly available description of HTML was a document called "HTML Tags", first mentioned on the Internet by Berners-Lee in late 1991. It describes 18 elements comprising the initial, relatively simple design of HTML. Except for the hyperlink tag, these were strongly influenced by SGMLguid, an in-house SGML-based documentation format at CERN. Eleven of these elements still exist in HTML 4.HyperText Markup Language is a markup language that web browsers use to interpret and composetext, images and other material into visual or audible web pages. Default characteristics for every item of HTML markup are defined in the browser, and these characteristics can be altered or enhanced by the web
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 2

(BTIT-605)

page designer's additional use of CSS. Many of the text elements are found in the 1988 ISO technical report TR 9537 Techniques for using SGML, which in turn covers the features of early text formatting languages such as that used by the RUNOFF command .

HTML versions :
1. HTML 2.0 2. HTML 3.2 3. HTML 4.0 4. HTML 4.01 5. HTML5

HTML TAGS :
<html> <body> <h1>WELCOME</h1> <p>HELLO</p> </body> </html>

DHTML -

DHTML stand for Dynamic HTML , is an umbrella term for a collection of

technologies used together to create interactive and animated web sites[1] by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model. DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise "static" HTML
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 3

(BTIT-605)

page content, after the page has been fully loaded and during the viewing process. Thus the dynamic characteristic of DHTML is the way it functions while a page is viewed, not in its ability to generate a unique page with each page load. By contrast, a dynamic web page is a broader concept, covering any web page generated differently for each user, load occurrence, or specific variable values. This includes pages created by client-side scripting, and ones created by server-side scripting (such as PHP, Perl, JSP or ASP.NET) where the web server generates content before sending it to the client. DHTML is differentiated from Ajax by the fact that a DHTML page is still request/reload-based. With DHTML, there may not be any interaction between the client and server after the page is loaded; all processing happens in JavaScript on the client side. By contrast, an Ajax page uses features of DHTML to initiate a request (or 'subrequest') to the server to perform actions such as loading more content. DHTML allows authors to add effects to their pages that are otherwise difficult to achieve. In short words: scripting language is changing the DOM and style. Simply, DHTML is the combination of HTML,CSS and JS.

Animate text and images in their document, independently moving each element from any starting point to any ending point, following a predetermined path or one chosen by the user.

Embed a ticker that automatically refreshes its content with the latest news, stock quotes, or other data. Use a form to capture user input, and then process, verify and respond to that data without having to send data back to the server. Include rollover buttons or drop-down menus.

A less common use is to create browser-based action games. Although a number of games were created using DHTML during the late 1990s and early 2000s,[citation needed], differences between browsers made this difficult: many techniques had to be implemented in code to enable the games to work on multiple platforms. Recently browsers have been converging towards web standards, which has made the design of DHTML games more viable. Those games can be played on all major browsers and they can also be ported to Plasma for KDE, Widgets for Mac OS X and Gadgets for Windows Vista, which are based on DHTML code.
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 4

(BTIT-605)

The term "DHTML" has fallen out of use in recent years as it was associated with practices and conventions that tended to not work well between various web browsers. DHTML may now be referred to as unobtrusive JavaScript coding (DOM Scripting), in an effort to place an emphasis on agreed-upon best practices while allowing similar effects in an accessible, standards-compliant way. DHTML support with extensive DOM access was introduced with Internet Explorer 4.0. Although there was a basic dynamic system with Netscape Navigator 4.0, not all HTML

elements were represented in the DOM. When DHTML-style techniques became widespread, varying degrees of support among web browsers for the technologies involved made them difficult to develop and debug.

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 5

(BTIT-605) PRACTICAL NO 2

AIM Create web page using HTML and DHTML .


Webpage Using HTML

<html> <body> <table width="500"> <tr> <td colspan="2" style="background-color:#FFA500;"> <h1> CONTINENTAL INSTITUTE OF ENGG AND TECHNOLOGY </h1> </td> </tr> <tr> <td style="background-color:#FFD700;width:100px;"> <b>Home</b><br> Gallary<br> About <br> Contact </td> <td style="background-color:#eeeeee;height:200px;width:400px;"> welcome to Our College website </td> </tr> <tr> <td colspan="2" style="background-color:#FFA500;text-align:center;"> Copyright ciet.com</td> </tr>
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 6

(BTIT-605)

</table> </body> </html>

OUTPUT :

CONTINENTAL INSTITUTE OF ENGG AND TECHNOLOGY

Home Gallary About Contact

Welcome to Our College Website .

Copyright ciet.com

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 7

(BTIT-605)

Webpage Using DHTML

<!doctype html> <html lang="en"> <html lang="en"> <head> <meta charset="utf-8"> <title>Dynamic Styles</title> <style> </style> </head> <body> <h1>Welcome to OUR WEBSITE </h1> <p><a href="#">CONTINENTAL COLLEGE OF ENGG AND TECH .</a></p> <ul> <li>Change the color, size, and typeface of text</li> <li>Show and hide text</li> <li>And much, much more</li> </ul> <p>Thanks for visiting . </p> <script> showMe = function () { document.getElementsByTagName("h1")[0].style.color = "#990000"; document.getElementsByTagName("ul")[0].style.display = "block"; document.getElementsByTagName("a")[0].onclick = function (e) {
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

};

Web Technologies
CIET

Page No 8

(BTIT-605)

e.preventDefault(); showMe(); </body> </html> }; </script>

OUTPUT :

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 9

(BTIT-605) PRACTICAL NO 3

AIM Define JavaScript .

JavaScript (JS) is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicateasynchronously, and alter the document content that is displayed.[5] It is also being used in server-side programming, game development and the creation of desktop and mobile applications. JavaScript is a prototype-based scripting language with dynamic typing and has firstclass functions. Its syntax was influenced by C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages.[6] It is a multi-paradigm language, supporting object-oriented,[7]imperative, and functional programming styles.The application of JavaScript in use outside of web pages for example, inPDF documents, site-specific browsers, and desktop widgetsis also significant. Newer and faster JavaScript VMs and platforms built upon them (notably Node.js) have also increased the popularity of JavaScript for server-side web applications. On the client side, JavaScript was traditionally implemented as an interpreted language but just-in-time compilation is now performed by recent (post-2012) browsers. JavaScript was formalized in the ECMAScript language standard and is primarily used as part of a web browser (client-side JavaScript). This enablesprogrammatic access to computational objects within a host environment JavaScript was originally developed by Brendan Eich. While battling with Microsoft over the Web, Netscape considered their client-server offering a distributed OS, running a portable version of Sun Microsystems' Java. Because Java was a competitor of C++ and aimed at professional programmers, Netscape also wanted a lightweight interpreted language that would complement Java by appealing to nonprofessional programmers, like Microsoft's Visual Basic (see JavaScript and Java). Although it was developed under the name Mocha, the
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 10

(BTIT-605)

language was officially called LiveScript when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript [10] when it was deployed in the Netscape browser version 2.0B3.The change of name from LiveScript to JavaScript roughly coincided with Netscape adding support for Java technology in itsNetscape Navigator web browser. The final choice of name caused confusion, giving the impression that the language was a spin-off of the Java programming language, and the choice has been characterized by many[who?] as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new web programming language. There is a common misconception that the JavaScript language was influenced by C-(Pronounced "See-minus-minus"), an earlier web page scripting language developed by Nombas. Brendan Eich, however, had never heard of C-- before he created LiveScript. Nombas did pitch their embedded web page scripting to Netscape, though web page scripting was not a new concept, as shown by ViolaWWW. Nombas later switched to offering JavaScript instead of C-- in their ScriptEase product and was part of the TC39 group that standardized ECMAScript .

Example :

<meta charset="utf-8"> <title>Minimal Example</title> <h1 id="header">This is JavaScript</h1> <script> document.body.appendChild(document.createTextNode('Hello World!')); var h1 = document.getElementById('header'); // holds a reference to the <h1> tag

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 11

(BTIT-605)
PRACTICAL NO - 4

AIM - Create Webpage Using Javascript .

<!DOCTYPE html> <html> <body> <h1>Welcome to our webpage </h1> <p>Click the button to display the current day, date, and time.</p> <p id="demo"></p> <button type="button" onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("demo").innerHTML = Date(); } </script> </body> </html>
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET Output :

Page No 12

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 13

(BTIT-605) PRACTICAL NO - 5

AIM Define AJAX .


Ajax stand for Asynchronous JavaScript and XML. It is a group of interrelated Web development techniques used on the client-side to create asynchronous Web applications. With Ajax, Web applications can send data to, and retrieve data from, a server asynchronously (in the background) without interfering with the display and behavior of the existing page. Data can be retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not required; JSON is often used instead, and the requests do not need to be asynchronous. Ajax is not a single technology, but a group of technologies. HTML and CSS can be used in combination to mark up and style information. The DOM is accessed with JavaScript to dynamically display, and allow the user to interact with, the information presented. JavaScript and the XMLHttpRequest object provide a method for exchanging data asynchronously between browser and server to avoid full page reloads. The term Ajax has come to represent a broad group of Web technologies that can be used to implement a Web application that communicates with a server in the background, without interfering with the current state of the page. In the article that coined the term Ajax, Jesse James Garrett explained that the following technologies are incorporated:

HTML (or XHTML) and CSS for presentation The Document Object Model (DOM) for dynamic display of and interaction with data XML for the interchange of data, and XSLT for its manipulation The XMLHttpRequest object for asynchronous communication JavaScript to bring these technologies together

Since then, however, there have been a number of developments in the technologies used in an Ajax application, and the definition of the term Ajax. XML is not required for data interchange and, therefore, XSLT is not required for the manipulation of data. JavaScript Object Notation (JSON) is often used as an alternative format for data interchange, although other formats such as preformatted HTML or plain text can also
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 14

(BTIT-605)

be used. Asynchronous HTML and HTTP involves using XMLHTTPRequest to retrieve (X)HTML fragments, which are then inserted directly into the Web page. Example :
<script> function loadXMLDoc() { var xmlhttp; (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","ajax_info.txt",true); xmlhttp.send(); } </script> CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 15

(BTIT-605) PRACTICAL NO 6

AIM - Create Webpage using Ajax .


<html> <head> <script> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } var xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; }} xmlhttp.open("GET","gethint.php?q="+str,true); xmlhttp.send(); } </script>
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET
</head> <body> <p><b>Start typing a name in the input field below:</b></p> <form> First name: <input type="text" onkeyup="showHint(this.value)"> </form> <p>Suggestions: <span id="txtHint"></span></p> </body> </html>

Page No 16

(BTIT-605)

<?php // Fill up array with names $a[]="Amanda"; $a[]="Anna"; $a[]="Emrites"; $q=$_REQUEST["q"]; $hint=""; // lookup all hints from array if $q is different from "" if ($q !== "") { $q=strtolower($q); $len=strlen($q); foreach($a as $name) { if (stristr($q, substr($name,0,$len))) { if ($hint==="")
CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET
{ $hint=$name; } else { $hint .= ", $name"; } }}} echo $hint==="" ? "no suggestion" : $hint; ?>

Page No 17

(BTIT-605)

OUTPUT :

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 18

(BTIT-605) PRACTICAL NO 7

AIM Define PHP .


PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. As of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers.[4] Originally created by Rasmus Lerdorf in 1995, the reference implementation of PHP is now produced by The PHP Group. While PHP originally stood for Personal Home Page, it now stands for PHP: Hypertext Preprocessor, a recursive backronym. PHP code is interpreted by a web server with a PHP processor module, which generates the resulting web page: PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data. It has also evolved to include a command-line interface capability and can be used in standalone graphical applications. PHP is free software released under the PHP License. PHP can be deployed on most web servers and also as a standalone shell on almost every operating system and platform, free of charge . PHP received mixed reviews due to lacking native Unicode support at the core language level. In 2005, a project headed by Andrei Zmievski was initiated to bring native Unicode support throughout PHP, by embedding the International Components for Unicode (ICU) library, and representing text strings as UTF-16 internally. Since this would cause major changes both to the internals of the language and to user code, it was planned to release this as version 6.0 of the language, along with other major features then in development.However, a shortage of developers who understood the necessary changes, and performance problems arising from conversion to and from UTF-16, which is rarely used in a web context, led to delays in the project.] As a result, a PHP 5.3 release was created in 2009, with many non-Unicode features back-ported from PHP 6, notably namespaces. In March 2010, the project in its current form was officially abandoned, and a PHP 5.4 release was prepared containing most remaining non-Unicode features from PHP 6, such as traits and closure re-binding. Initial hopes

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 19

(BTIT-605)

were that a new plan would be formed for Unicode integration, but as of 2014 none has been adopted. During the years before the release of PHP 5.3 and 5.4, some books were published based on the expected feature set of PHP 6.0, including both the Unicode work and the features which were later backported to other releases. There is therefore some debate over whether a new major version of PHP, with or without Unicode support, should be called "PHP 6", or if the version should be skipped to avoid confusion.

EXAMPLE :

<?php $favcolor="red"; switch ($favcolor) { case "red": echo "Your favorite color is red!"; break; case "blue": echo "Your favorite color is blue!"; break; case "green": echo "Your favorite color is green!"; break;

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 20

(BTIT-605) PRACTICAL NO 8

AIM Create Webpage using Php .


<html> <head> </head> <body> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = ""; $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) {$nameErr = "Name is required";} else { $name = test_input($_POST["name"]); // check if name only contains letters and whitespace if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameErr = "Only letters and white space allowed"; } } if (empty($_POST["email"])) CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET
{$emailErr = "Email is required";} else { $email = test_input($_POST["email"]) if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)) { $emailErr = "Invalid email format"; }} if (empty($_POST["website"])) {$website = "";} else { $website = test_input($_POST["website"]); { $websiteErr = "Invalid URL"; } } if (empty($_POST["comment"])) {$comment = "";} else {$comment = test_input($_POST["comment"]);} if (empty($_POST["gender"])) {$genderErr = "Gender is required";} else {$gender = test_input($_POST["gender"]);} CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Page No 21

(BTIT-605)

Web Technologies
CIET
} function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>CONTACT PAGE </h2> <p><span class="error">* required field.</span></p>

Page No 22

(BTIT-605)

<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name"> <span class="error">* <?php echo $nameErr;?></span> <br><br> E-mail: <input type="text" name="email"> <span class="error">* <?php echo $emailErr;?></span> <br><br> Website: <input type="text" name="website"> <span class="error"><?php echo $websiteErr;?></span> <br><br> Comment: <textarea name="comment" rows="5" cols="40"></textarea> <br><br> Gender: CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 23

(BTIT-605)

<input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male <span class="error">* <?php echo $genderErr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </body> </html>

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 24

(BTIT-605)

OUTPUT :

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 25

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 26

(BTIT-605) PRACTICAL NO 9

AIM Define ASP .


Active Server Pages (ASP), also known as Classic ASP or ASP Classic, wasMicrosoft's first server-side script engine for dynamically generated web pages. Initially released as an add-on to Internet Information Services (IIS) via theWindows NT 4.0 Option Pack (ca. 1996), it was subsequently included as a free component of Windows Server (since the initial release of Windows 2000 Server). ASP.NET, first released in January 2002, has superseded ASP. ASP 2.0 provided six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, represents a sessionthat maintains the state of variables from page to page. The Active Scriptingengine's support of the Component Object Model (COM) enables ASP websitesto access functionality in compiled libraries such as DLLs. ASP 3.0 does not differ greatly from ASP 2.0 but it does offer some additional enhancements such as: Server.Transfer method, Server.Execute method, and an enhanced ASPError object. ASP 3.0 also enabled buffering by default and optimized the engine for better performance. The use of ASP pages with Internet Information Services (IIS) is currently supported on all supported versions of IIS. The use of ASP pages will be supported on Windows 8 for a minimum of 10 years from the Windows 8 release date Web pages with the .asp file extension use ASP, although some web sites disguise their choice of scripting language for security purposes (e.g. still using the more common .htm or .html extension). Pages with the .aspx extension use compiledASP.NET (based on Microsoft's .NET Framework), which makes them faster and more robust than server-side scripting in ASP, which is interpreted at run-time; however, ASP.NET pages may still include some ASP scripting. The introduction of ASP.NET led to use of the term Classic ASP for the original technology.

Versions :

ASP 1.0 - released December 1996 as part of IIS 3.0


CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT PREPARED BY Heena

Web Technologies
CIET

Page No 27

(BTIT-605)

ASP 2.0 - released September 1997 as part of IIS 4.0 ASP 3.0 - released November 2000 as part of IIS 5.0

Example :
Using VBScript in ASP pages is very simple. The interpreter replaces all the code in between the <% and %> tags. In the example below, Response.Write Now() is dynamically replaced by the current time of the server.

<html> <head> <title>The current time</title> </head> <body> The server's current time:<br /> <% Response.Write Now() %> </body> </html>

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 28

(BTIT-605) PRACTICAL NO - 10

AIM Create Webpage using ASP


<!DOCTYPE html> <html> <body> <form runat="server"> <asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right" OnSelectedIndexChanged="Check" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:CheckBoxList> <br> <asp:label id="mess" runat="server"/> </form> </body> </html>

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET
<script runat="server"> Sub Check(sender As Object, e As EventArgs) dim i mess.Text="<p>Selected Item(s):</p>" for i=0 to check1.Items.Count-1 if check1.Items(i).Selected then mess.Text+=check1.Items(i).Text + "<br>" end if next End Sub </script>

Page No 29

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 30

(BTIT-605)

OUTPUT :

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 31

(BTIT-605) PRACTICAL NO 11

AIM Create a Website Using Html .

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 32

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 33

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Web Technologies
CIET

Page No 34

(BTIT-605)

CHECKED BY Nain Kanwal Kaur,Assistant Professor,IT

PREPARED BY Heena

Vous aimerez peut-être aussi