473,698 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where have the form values gone

Hi,

We are developing a web application in asp.net and all of a sudden there is
this new requirement and I am having problems to implement it.

My problem is that when a regular html page posts values to a aspx page in
our website, I lose the values that were posted. If the values are send with
a GET request I can access them in the Request collection.

Does anyone have an idea why this happens and what I can do to solve this.

Regards,
Cyrus Donders
Nov 18 '05 #1
3 1630
Hi Cyrus,

From your message i can understand that you are trying to post the data from
an HTML page to an ASPX page
and in ASPX page you are tyring to access those values.

when you submit by post [POST method] in your ASPX page your should have
code something like this.

string strTextBox = Request.Form("T extBox1");

if you use GET method then it should be

string strTextBox = Request.QuerySt ring("TextBox1" );

Since your are passing the values in the Querystring your code is
working..in post method it does not append the keyvalue pairs
in the url and hence they are not working for post method.

Hope this helps.

Thanks
Raghavendra
"Cyrus Donders" <c.*******@vspa a.nl> wrote in message
news:u6******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

We are developing a web application in asp.net and all of a sudden there is this new requirement and I am having problems to implement it.

My problem is that when a regular html page posts values to a aspx page in
our website, I lose the values that were posted. If the values are send with a GET request I can access them in the Request collection.

Does anyone have an idea why this happens and what I can do to solve this.

Regards,
Cyrus Donders

Nov 18 '05 #2
Hi Raghavendra T V

I just read your reply.

I think that you haven't tried to do what you are suggesting.

string strTextBox = Request.Form("T extBox1");
this line of code doesn't work as expected, the result will be that
strTextBox == null.

The complete Request.Form Collection is empty.

So where have all the input values gone.

regards
Cyrus Donders
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
ok,

as an add-on.

it seems that Raghavendra T V's statement is true, at least in a the
circumstance that you don't allow coockieless sessions.

however when you do allow cookieless sessions. My statement is true.

regards
Cyrus Donders
"Cyrus Donders" <C_dot_Donders_ at_vspaa_dot_nl > wrote in message
news:ew******** ******@TK2MSFTN GP10.phx.gbl...
Hi Raghavendra T V

I just read your reply.

I think that you haven't tried to do what you are suggesting.

string strTextBox = Request.Form("T extBox1");
this line of code doesn't work as expected, the result will be that
strTextBox == null.

The complete Request.Form Collection is empty.

So where have all the input values gone.

regards
Cyrus Donders
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

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

Similar topics

4
5747
by: Dave Smithz | last post by:
Hi there, When filling out a web form on a php page that is submitted to a search which lists the results based on the criteria provided (in the form), all works fine and as expected. However, when I press the back button to amend the form all of the search criteria data has gone and I have to fill it all out again if I want to do a similar search which is frustrating. (This does not actually happen in Firefox browser but most of my...
7
7933
by: Utter Newbie | last post by:
Just wondeing if there is a way to keep from having a certain parameter sent when posting a form to another page (method=get)... So as an example a page will post something like this from a form using "get": http://mypage?firstElement=1&secondElement=2 How can you completely remove "secondElement=2" from the querystring... Before moving on to the posted page?
2
2082
by: Douglas Buchanan | last post by:
This is a mystery! Why does the boolean value of a record change without my input. What follows describes the situation and the behavior. Table1: Field1: Text Field2: Yes/No Form1 has two subforms. Toggle1 selects Subform2
9
15854
by: Susan Bricker | last post by:
I am currently using the OnDirty event of a Form to detect whether any fields have been modified. I set a boolean variable. Then, if the Close button is clicked before the Save button, I can put up a message on the screen that will tell the user that "Data has been changed, do you wish to Save the record before Closing this window?" I think I've just discovered this only works if the record that is being displayed/modified it not a...
7
1909
by: Muscha | last post by:
My c# application has gone beserk, it consumes 700MB memory griding my machine to a halt. What is the quickest way for me to find out what's happening? Where do all the memory has gone? /m
1
1830
by: Das | last post by:
Hi all, I'm using Asp.net. Within a form I have declared declared a public variable. When the form is loaded I set the property for the variable. but it doesn't maintain its state on postback. I there any way to maintain the state for variable? Thanks, Das
12
3438
by: TheOne | last post by:
In Asp.net web form under form tag there is action field that I am point to some other page, and not to same web form. When I run this page it is always pointing to itself. How do I get around this? Here is HTML code from webform.. Thanks, Sinisa
6
1820
by: Savante | last post by:
I have been writing a datalogging application. It reads in double's into a database. I want to be able to click on a row in a database (holds name of variable and also current value of variable) and then instantiate a new form. I created a new form form2 and then just on double click on a button.... dim form as new form2 form.show
8
3268
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've searched high and low through help databases and on the internet. The directions say to : Open the table in Design view Click the Data Type column of the field you want to change, click the
0
8683
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
8611
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
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...
0
7741
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5867
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
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.