Results 1 to 5 of 5

Thread: [RESOLVED] Sending info to another webpage without sessions?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Resolved [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.


  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    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?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: Sending info to another webpage without sessions?

    ok, got it now. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width