Professional Documents
Culture Documents
Experiment No.12 ASP Code To Calculate The Number of Days A Person Has Lived On Basis of The Date of Birth
Experiment No.12 ASP Code To Calculate The Number of Days A Person Has Lived On Basis of The Date of Birth
12
ASP code to calculate the number of days a person has lived on
basis of the Date of Birth.
Default.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="Enter D.O.B:"></asp:Label>
<asp:TextBox ID="T1" runat="server"></asp:TextBox>
</div>
<p>
<asp:Button ID="Button1" runat="server" style="margin-bottom: 0px"
onclick="Button1_click" Text="Calculate" />
</p>
<p
My DOB:
<asp:Label ID="L2" runat="server" Text="L2"></asp:Label>
</p>
<p>
Today Date:
<asp:Label ID="L3" runat="server" Text="L3"></asp:Label>
</p>
<p>
No. Of Days Person Lived:
<asp:Label ID="L4" runat="server" Text="L4"></asp:Label>
</p>
</form>
</body>
</html>
Default.aspx.vb
XIIA_SHUBHAMYADAV_25 Page 1