Assuming both pages are within the same ASP.NET application, is there a way to access properties of controls on one page from another? For example, I am on page 1 and need to see if a checkbox on page 2 is checked.
Assuming both pages are within the same ASP.NET application, is there a way to access properties of controls on one page from another? For example, I am on page 1 and need to see if a checkbox on page 2 is checked.
I would probably set a session variable to before leaving the first one, and use that value to make your decisions on the second page. Like this maybe....
In FirstPage.aspx:
If Checkbox1.checked=True Then
Session("test")="true"
else
Session("test")="false"
End If
In SecondPage.aspx:
If Session("test")="true" Then
' do stuff
else
' do other stuff
End If
maybe?.....
Ooogs
Im not at my development box right now, but you can accomplish this by using the context object (may be named a little differently). I'll post code later..