Hello,
I'm new to ASP.NET, and I need some help.
In ASP, I could do the following:
<%
IF Request.QueryString("Blah") = "Blah" Then
ShowBlah
End IF
%>
HTML code...
<%
Sub ShowBlah
..
End Sub
%>
How would I do this in ASP.NET? Right now I have this:
It gives me an error: Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.
Thanks in advance!
I'm new to ASP.NET, and I need some help.
In ASP, I could do the following:
<%
IF Request.QueryString("Blah") = "Blah" Then
ShowBlah
End IF
%>
HTML code...
<%
Sub ShowBlah
..
End Sub
%>
How would I do this in ASP.NET? Right now I have this:
Code:
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Dim SelectID AS Integer
SelectID = Request.QueryString("ID")
SELECT Case SelectID
Case 1
ShowAbout()
End SELECT
End Sub
</script>
</head>
<body>
<%
Sub ShowAbout()
Response.Write("Test")
End Sub
%>
</body>
</html>
It gives me an error: Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.
Thanks in advance!