473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

posting 2 or more values

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


Nov 19 '05 #1
2 1092
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

Nov 19 '05 #2
thx man

regards
siva

"kesari" <ke****@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: wk6pack | last post by:
Hi, I have a problem and not quite how to go about solving it. I have a form written in asp. I wish to submit the form and have the server return back to the same page without actually...
6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
7
by: louise raisbeck | last post by:
Hi, I'm sure this is a standard thing. I have a web form with several input boxes/drop down lists and checkboxes. They all represent a field within a sql table and I need the user to update the...
6
by: Andrew | last post by:
Hello, friends, I tried to do cross-page posting, i.e., in firstpage.aspx I used action="secondpage.aspx". Since I am using asp.net 1.1, so it always goes back to firstpage.aspx aftern...
43
by: balakrishnan.dinesh | last post by:
Hi all, Im working in javascript, I want to use Ajax in javcascript, Can u tel me how to use ajax in javascript, whether i have to include any code as like to include *css or *.js file, what are...
11
by: bill | last post by:
I dynamically create buttons and associate them with an event using AddHandler. I want all the button events to fire at one time, when the page is posted, instead of when each button is clicked....
1
by: gelangov | last post by:
I am sorry, I am posting this message again, since I did not get any reply. I want to export a table into a "fixed width" file using SQL 2005 import export wizard. This is the version I have:...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
3
by: simora | last post by:
Hi: Need some working sample code to post hidden form data from a php page to a new popup window. 540 x 500 centered. The popup that I'm calling already is formatted and has a TITLE:web-2007.php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.