I'm fairly new to .net, so please don't flame me.
This is what I'm trying to achieve: I'd like to create a hidden variable that will tell me whether I'm on the homepage or any other page...this is my hidden var:
<input type="hidden" name="IsDefault" value="TRUE" >
Now, I'd like to grab the value of IsDefault and depending on whether it is true or not, display certain content.
This is what I have in my corresponding .vb:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim str1 As String
str1 = Request.Item("isDefault")
End Sub
This is obviously wrong.
Any tips, suggestions?
This is what I'm trying to achieve: I'd like to create a hidden variable that will tell me whether I'm on the homepage or any other page...this is my hidden var:
<input type="hidden" name="IsDefault" value="TRUE" >
Now, I'd like to grab the value of IsDefault and depending on whether it is true or not, display certain content.
This is what I have in my corresponding .vb:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim str1 As String
str1 = Request.Item("isDefault")
End Sub
This is obviously wrong.
Any tips, suggestions?