[RESOLVED] Sending info to another webpage without sessions?
Hi,
Is it possible to send information (e.g string) from one page to a control of another page without using Session States or other server-based state management techniques? i.e no postback
Right now, the label of the 2nd page has to display the 1st page's radio button's text when it is clicked.
:)
Re: Sending info to another webpage without sessions?
You can pass it in the querystring.
page2.aspx?controlname=Hi,+how+are+you?
In page2.aspx, use Request.Querystring("controlname") to retrieve this value.
Re: Sending info to another webpage without sessions?
Hi mendhak,
Regarding the query strings method, there are a couple of doubts to clarify. I have read msdn and a few sites but the examples given are the same.
page2.aspx?controlname=Hi,+how+are+you?
Can the statement above be used as a destination url inside the link control or does the user have to type the statement in the browser's address bar?
Secondly, is it possible to pass values which are read from controls and are not hardcoded?
e.g page2.aspx?controlname=textboxName.text,+how+are+you?
Re: Sending info to another webpage without sessions?
1. It can be a destination URL.
2. Yes, you can read from another control. Example:
Hyl1.NavigateUrl = "abc.aspx?value1=" + TextBox1.Text
Re: Sending info to another webpage without sessions?
ok, got it now. Thanks! :D