Hi Dw
I'm creating a web app for my future use and now I'm having a problem in calling a button to enable it. The web app start with Default.aspx and that where a user had to fill in 3 text boxs and click a button. So I've removed the default menu buttons and now I've added 5 buttons on a Site.Master page so that the buttons will be visible to all pages so the problem start here because I don't want the Default.aspx page to have these buttons because a user has to confirm first so there should be just one button on a Default button which is named "I ACCEPT TERMS OF USE" which I've added straight to the Default.aspx page, I've decide to use the Session() so that I can try to track if the user has confirmed or not, I've added the Session("d") = TextBox3.Text
"d" is for date which is calculated from the info entered by the user. So if the user is over 18 years which is Uryear = TextBox3.Text - Year(Now)
So if the user is over 18 then I record the session with the total or the age of the user in a negative form (-00) so on the Master page I've added the code to check if the session("d") has something or not and if its empty then I hide the 5 buttons which named by default from Button1 to Button5 which are on the master page and it seems as if this is the only place I can call them in cades other pages like home.aspx does not recognize them but on execution they are shown to all pages. So now the problem is that after the session has been recorded it seems as if the Master page only load once because in my codes I've checked as follows:
If Session("d") = Nothing Then
Button1.Visible = False
Button2.Visible = False
Button3.Visible = False
Button4.Visible = False
Button5.Visible = False
Else
Button1.Visible = True
Button2.Visible = True
Button3.Visible = True
Button4.Visible = True
Button5.Visible = True
End If
So now it do hide the buttons up on execution/debuging but on the Default.aspx after I've recorded the Session() it does not set the Visibility of the buttons.
How can I solve this problem, any idea or perhaps recommendation will be appreciated.
Thanks
Sorry for not formatting the codes I'm using a Mobile phone.