Assign Date and Integer value to asp:textbox without converting (VB.net)
<script language="vb" runat="server">
Sub Page_Load()
Dim CapitalCityOfUK As String
Dim NumberOfStates As Integer
Dim IndependenceDay As Date
CapitalCityOfUK = "London"
NumberOfStates = 50
IndependenceDay = #7/4/1863#
Display1.Text = CapitalCityOfUK
Display2.Text = NumberOfStates
Display3.Text = IndependenceDay
End Sub
</script>
<html>
<head>
<title>Creating Variables Example</title>
</head>
<body>
The contents of CapitalCityOfUk is:
<asp:label id="Display1" runat="server" />
<br>The contents of NumberOfStates is:
<asp:label id="Display2" runat="server" />
<br>The contents of IndependenceDay is:
<asp:label id="Display3" runat="server" />
</body>
</html>