473,802 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Redire ct("WEBFORM2.AS PX?A=" & TextBox1.Text)
Response.Redire ct("WEBFORM2.AS PX?B=" & TextBox2.Text)
-Form :2
-In page load
TextBox1.Text = Request.QuerySt ring("A")
TextBox2.Text = Request.QuerySt ring("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 1104
Hi,
The first response.redire ct 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.redire ct("WEBFORM2.AS PX?A=" & TextBox1.Text & "&B=" & TextBox2.Text).

This way you can post both the values.
"sivashanka r" wrote:
hi experts

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

Response.Redire ct("WEBFORM2.AS PX?A=" & TextBox1.Text)
Response.Redire ct("WEBFORM2.AS PX?B=" & TextBox2.Text)
-Form :2
-In page load
TextBox1.Text = Request.QuerySt ring("A")
TextBox2.Text = Request.QuerySt ring("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****@discuss ions.microsoft. com> wrote in message
news:4E******** *************** ***********@mic rosoft.com...
Hi,
The first response.redire ct 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.redire ct("WEBFORM2.AS PX?A=" & TextBox1.Text & "&B=" & TextBox2.Text).
This way you can post both the values.
"sivashanka r" wrote:
hi experts

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

Response.Redire ct("WEBFORM2.AS PX?A=" & TextBox1.Text)
Response.Redire ct("WEBFORM2.AS PX?B=" & TextBox2.Text)
-Form :2
-In page load
TextBox1.Text = Request.QuerySt ring("A")
TextBox2.Text = Request.QuerySt ring("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
4332
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 refreshing the page. I know I could write a form, submit it and go to another page. I've searched the web and I see something about HTTP Status code of 204
6
1841
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 going to be available in the <a> and Html Controls as well as opposed to just the <asp:Button> control?
7
1376
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 values on hitting submit. I have put a submit button on the form and tested it with one field, so in the submit code I opened a sql connection and did an UPDATE mytable SET fieldintable = inputonwebform.text where customerid=x. This worked!...
6
1526
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 submitting firstpage.aspx. I then tried in page_load of firstpage.aspx:
43
2178
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 all the benefit of it? Thank U
11
4257
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. How I stop the buttons from posting back when they are clicked? Thanks
1
7735
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: SQL Server 2005 - 9.00.2047.00
1
54543
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 we instruct our experts to ignore any such PMs completely Be sure to give the version of Access that you are working with and the Platform and OS if applicable.
3
4726
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 so what I need to do is to write the values from the PHP page to that popup in specific places. Some of the hidden values are also like this format; <input type="hidden" name="handling" value="<?php echo $_POST;
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10305
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.