|
-
Jan 24th, 2003, 03:12 PM
#1
Thread Starter
Lively Member
Can you get properties of controls on one ASP.NET page from another page?
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.
-
Jan 24th, 2003, 03:27 PM
#2
Member
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
-
Jan 26th, 2003, 02:05 AM
#3
PowerPoster
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|