Can anyone tell me what is wrong with this code?
Thanks..
<%@ Page Language="VB" %>
<script runat="server">
Dim Value2 as text1.value
Dim None As You didn't enter an e-mail address.
Private Sub Submit1_Click(sender As Object, e As EventArgs)
If text1.value="" then
Response.Write("This is your e-mail address, None")
Else
If Text.value="Value2" then
Response.Write("This is your e-mail address, Value2")
End If
End If
End Sub
</script>
<html>
<head>
</head>
<body>
<p>
</p>
<p>
<asp:Label id="Label1" runat="server">Your E-Mail Address here:</asp:Label>
<asp:TextBox id="text1" runat="server"></asp:TextBox>
</p>
<p>
<asp:Button id="Submit1" onclick="Submit1_Click" runat="server" Text="View Demonstration"></asp:Button>
</p>
<p>
<asp:Image id="Image1" runat="server" ImageUrl="C:\Documents and Settings\Lumpy Wafflesniffer\Desktop\Desktop Icons\Snorton Project\Style\Images\file_folder_tasks_up`.bmp" BorderStyle="Dashed" BorderColor="Black" BackColor="Red" BorderWidth="2px"></asp:Image>
</p>
</body>
</html>
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.