473,320 Members | 1,724 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,320 software developers and data experts.

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 1616
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("TextBox1");

if you use GET method then it should be

string strTextBox = Request.QueryString("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.*******@vspaa.nl> wrote in message
news:u6**************@TK2MSFTNGP09.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("TextBox1");
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**************@TK2MSFTNGP10.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("TextBox1");
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
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. ...
7
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...
2
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...
9
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...
7
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
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...
12
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...
6
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)...
8
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.