Professional Documents
Culture Documents
AND WEB
TECHNOLOGIES-II
Web Designing and Web Technologies-II
2 AJAX
3 ASP.NET
4 VB.NET
Index.html
<html>
<head>
<title>User Details</title>
</head>
<body>
<br> <br>
<center>
<table border=1>
<tr>
<tr>
<tr>
<tr>
<input type="submit"
value="Submit"></td></tr>
</table>
</center>
</form>
</body>
</html>
Txtbox.php
<html>
<center>
<br>
</center>
</html>
Output:
Index.html
<html>
<body>
</center> </form>
</body>
</html>
Chkbox.php
<html>
<br>
<?php if(isset($_GET["C"]))
<?php if(isset($_GET["C++"]))
<?php if(isset($_GET["java"]))
echo $_GET["java"];
?>
</html>
Output:
Index.html
<html>
<body>
<br>
<br>
<center>
</center> </form>
</body>
</html>
Radio.php
<html>
</html>
Output:
Ajax.html
<!DOCTYPE html>
<html>
<body>
<div id="demo">
<h2>The text will appear here</h2></div>
xhttp.onreadystatechange = function()
{
if (xhttp.readyState == 4 && xhttp.status == 200)
{
document.getElementById("demo").innerHTML = xhttp.responseText;
}
};
xhttp.open("GET", "info.txt", true);
xhttp.send();
}
</script>
</body>
</html>
Info.html:
TYCS 2015-2016 !
Output:
Studentreg.aspx:
<tr>
<td class="auto-style5">
<asp:Label ID="Label2" runat="server" Font-Size="Larger" Text="ID
:"></asp:Label>
</td>
<td class="auto-style6">
<asp:TextBox ID="TextBox2" runat="server" Height="23px"
Width="127px"></asp:TextBox>
</td> </tr>
<tr>
<td class="auto-style7">
<asp:Label ID="Label3" runat="server" Font-Size="Larger" Text="Age
:"></asp:Label>
</td>
<td class="auto-style8">
<asp:TextBox ID="TextBox3" runat="server" Height="23px"
Width="127px"></asp:TextBox>
</td> </tr>
<tr>
<td class="auto-style9">
<asp:Label ID="Label4" runat="server" Font-Size="Larger" Text="Class
:"></asp:Label>
</td>
<td class="auto-style10">
<asp:TextBox ID="TextBox4" runat="server" Height="23px"
Width="127px"></asp:TextBox>
</td> </tr>
<tr>
<td class="auto-style11">
<asp:Label ID="Label5" runat="server" Font-Size="Larger" Text="Email
Id:"></asp:Label>
</td>
<td class="auto-style12">
<asp:TextBox ID="TextBox5" runat="server" Height="23px"
Width="127px"></asp:TextBox>
</td> </tr>
<tr> <td class="auto-style13">
<asp:Label ID="Label6" runat="server" Font-Size="Larger" Text="Contact No
:"></asp:Label>
</td>
<td class="auto-style14">
<asp:TextBox ID="TextBox6" runat="server" Height="23px"
Width="127px"></asp:TextBox>
</td> </tr>
<tr>
<td class="auto-style15" colspan="2">
<asp:Button ID="Button1" runat="server" Font-Size="Large" Height="33px"
style="margin-left: 110px" Text="Submit" Width="70px" />
</td> </tr>
</table>
</div> </form>
</body>
</html>
Studentreg.aspx.vb:
Output:
Viewstate.aspx:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style1 {
width: 30%;
height: 85px;
margin-left: 380px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table class="auto-style1">
<tr>
<td>
<asp:Button ID="Button1" runat="server" Font-Size="Large"
Text="Clicks " />
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Font-Size="Large"
Text="No of clicks :"></asp:Label>
<asp:Label ID="Label2" runat="server"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Viewstate.aspx.vb:
Output :
Cookies.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Cookies</title>
</head><body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblwelcome" runat="server"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<asp:Label ID="Label1" runat="server"></asp:Label>
<asp:Label ID="Label2" runat="server"></asp:Label>
</div>
</form>
</body>
</html>
Cookies.aspx.vb:
End Sub
End Class
Output :
Default.aspx:
<style type="text/css">
.style1
width: 100%;
height: 158px;
.style2
{}
.style5
height: 21px;
width: 144px;
.style6
width: 144px;
.style7
height: 21px;
width: 159px;
.style8
width: 159px;
.style9
height: 21px;
width: 140px;
.style10
width: 140px;
.style11
height: 20px;
width: 140px;
.style12
height: 20px;
width: 144px;
.style13
height: 20px;
width: 159px;
</style>
</asp:Content>
<table class="style1">
<tr>
<td class="style9">
Name</td>
<td class="style5">
</td>
<td class="style7">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
BorderStyle="None" />
</td>
</tr>
<tr>
<td class="style10">
ID</td>
<td class="style6">
</td>
<td class="style8">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11">
Age</td>
<td class="style12">
</td>
<td class="style13">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style9">
Email Id</td>
<td class="style5">
</td>
<td class="style7">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server"
ForeColor="Red"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:Regu
larExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server"
ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style10">
Password</td>
<td class="style6">
</td>
<td class="style8">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style9">
Confirm Password</td>
<td class="style5">
</td>
<td class="style7">
ControlToCompare="TextBox5" ControlToValidate="TextBox6"
</td>
</tr>
<tr>
<td class="style10">
</td>
<td class="style6">
</td>
<td class="style8">
</td>
</tr>
</table>
</asp:Content>
Output :
Adrotator.aspx:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Adrotator</title>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<br /> <br /> <br /> <br />
<asp:AdRotator ID="AdRotator1" runat="server"
DataSourceID="XmlDataSource1" Height="250px" Width="350px" />
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/XMLFile1.xml"></asp:XmlDataSource>
</div>
</form>
</body>
</html>
XMLFile1.xml:
Output :
Postback.aspx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>AutoPostback</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True">
<asp:ListItem>Summer</asp:ListItem>
<asp:ListItem>Winter</asp:ListItem>
<asp:ListItem>Rainy</asp:ListItem>
<asp:ListItem>Spring</asp:ListItem>
<asp:ListItem>Autumn</asp:ListItem>
</asp:ListBox>
<br />
<br />
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
style="margin-left: 18px; margin-top: 0px">
<asp:ListItem>Red</asp:ListItem>
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem>White</asp:ListItem>
<asp:ListItem>Black</asp:ListItem>
<asp:ListItem>Lime</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server"
AutoPostBack="True"></asp:TextBox>
&
nbsp;
<asp:Label ID="Label1" runat="server" Font-Names="Calibri"
Font-Size="Large"></asp:Label>
</div>
</form>
</body>
</html>
Postback.aspx.vb :
End Sub
Output: