Unload Event

Mayfield2268

Active member
Joined
Feb 24, 2003
Messages
30
I have a asp.net page that has a treeview and a text box.

When I navigate through the treeview, each node acts like a hyperlink. So when I select a node it redirects itself to the same page changing the navigation structure.

The problem is that if something is put into the text box, it is lost once I navigate to another node on the treeview.

Im trying to set a session variable equal to the text boxes text but this isnt working.

I think the problem is the form isnt getting posted so Im losing the text in the textbox.

Does anyone know of a way to post a form in the page unload event so I can extract the value from a textbox into a session variable?

Thanks
 
The selction of a node should "runat=server", there is no need to redirect, so the value of the textbox can still be there or postback.
 


Write your reply...
Back
Top