posting 2 or more values

Discussion in 'ASP .Net' started by sivashankar, Feb 10, 2005.

  1. sivashankar

    sivashankar Guest

    hi experts

    -In asp.net i'm having form1 and form2.
    -Form :1
    -I'm posting data by following code:

    Response.Redirect("WEBFORM2.ASPX?A=" & TextBox1.Text)
    Response.Redirect("WEBFORM2.ASPX?B=" & TextBox2.Text)
    -Form :2
    -In page load
    TextBox1.Text = Request.QueryString("A")
    TextBox2.Text = Request.QueryString("B")

    But i'm getting the value only in " Textbox1.text ".

    Its not possible to post 2 values ?


    ********************wats is the difference between session and these type of posting


    can anyone plz

    Thanks in advance
     
    sivashankar, Feb 10, 2005
    #1
    1. Advertising

  2. Hi,
    The first response.redirect statement stops execution on current page and
    redirects control to the webform2.aspx page, so the line below this statement
    is not executed.
    Try combining the two vlues as a query string
    response.redirect("WEBFORM2.ASPX?A=" & TextBox1.Text & "&B=" & TextBox2.Text).

    This way you can post both the values.


    "sivashankar" wrote:

    > hi experts
    >
    > -In asp.net i'm having form1 and form2.
    > -Form :1
    > -I'm posting data by following code:
    >
    > Response.Redirect("WEBFORM2.ASPX?A=" & TextBox1.Text)
    > Response.Redirect("WEBFORM2.ASPX?B=" & TextBox2.Text)
    > -Form :2
    > -In page load
    > TextBox1.Text = Request.QueryString("A")
    > TextBox2.Text = Request.QueryString("B")
    >
    > But i'm getting the value only in " Textbox1.text ".
    >
    > Its not possible to post 2 values ?
    >
    >
    > ********************wats is the difference between session and these type of posting
    >
    >
    > can anyone plz
    >
    > Thanks in advance
    >
    >
    >
    >
     
    =?Utf-8?B?a2VzYXJp?=, Feb 10, 2005
    #2
    1. Advertising

  3. sivashankar

    sivashankar Guest

    thx man

    regards
    siva

    "kesari" <> wrote in message
    news:...
    > Hi,
    > The first response.redirect statement stops execution on current page and
    > redirects control to the webform2.aspx page, so the line below this

    statement
    > is not executed.
    > Try combining the two vlues as a query string
    > response.redirect("WEBFORM2.ASPX?A=" & TextBox1.Text & "&B=" &

    TextBox2.Text).
    >
    > This way you can post both the values.
    >
    >
    > "sivashankar" wrote:
    >
    > > hi experts
    > >
    > > -In asp.net i'm having form1 and form2.
    > > -Form :1
    > > -I'm posting data by following code:
    > >
    > > Response.Redirect("WEBFORM2.ASPX?A=" & TextBox1.Text)
    > > Response.Redirect("WEBFORM2.ASPX?B=" & TextBox2.Text)
    > > -Form :2
    > > -In page load
    > > TextBox1.Text = Request.QueryString("A")
    > > TextBox2.Text = Request.QueryString("B")
    > >
    > > But i'm getting the value only in " Textbox1.text ".
    > >
    > > Its not possible to post 2 values ?
    > >
    > >
    > > ********************wats is the difference between session and these

    type of posting
    > >
    > >
    > > can anyone plz
    > >
    > > Thanks in advance
    > >
    > >
    > >
    > >
     
    sivashankar, Feb 10, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. alanb
    Replies:
    2
    Views:
    577
    alanb
    Apr 23, 2004
  2. Michael
    Replies:
    4
    Views:
    473
    Matt Hammond
    Jun 26, 2006
  3. AmitKu
    Replies:
    7
    Views:
    588
    John Timney \(MVP\)
    Jan 8, 2007
  4. rickman
    Replies:
    1
    Views:
    806
    Alessandro Basili
    Mar 21, 2011
  5. Robert Klemme

    With a Ruby Yell: more, more more!

    Robert Klemme, Sep 28, 2005, in forum: Ruby
    Replies:
    5
    Views:
    242
    Jeff Wood
    Sep 29, 2005
Loading...

Share This Page