Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > posting 2 or more values

Reply
Thread Tools

posting 2 or more values

 
 
sivashankar
Guest
Posts: n/a
 
      02-10-2005
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




 
Reply With Quote
 
 
 
 
=?Utf-8?B?a2VzYXJp?=
Guest
Posts: n/a
 
      02-10-2005
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
>
>
>
>

 
Reply With Quote
 
 
 
 
sivashankar
Guest
Posts: n/a
 
      02-10-2005
thx man

regards
siva

"kesari" <> wrote in message
news:4EF0D2F8-2DA7-478A-814F-...
> 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
> >
> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Posting Fails in Medium Trust (3rd time posting this w/ zero replies so far) AmitKu ASP .Net 7 01-08-2007 07:31 PM
CROSS-POSTING, OR MULTI-POSTING, OR NEITHER? Colin D Digital Photography 56 03-08-2006 08:31 PM
[OT] : Top Posting vs Bottom Posting Wayne Wastier Windows 64bit 7 07-17-2005 03:57 PM
Top Posting vs. Bottom Posting scaredkitty Computer Support 37 04-06-2005 12:27 AM
Everytime I hover cursro over a posting, it crosses out with red mark on it.. on every posting alanb ASP .Net 2 04-23-2004 02:23 PM



Advertisments