473,507 Members | 3,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request.Form("textbox1") always returns empty after Refresh?

al
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
Nov 18 '05 #1
7 5536
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?
George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
Nov 18 '05 #2
al
"George" <no****@hotmail.com> wrote in message news:<u5**************@TK2MSFTNGP10.phx.gbl>...
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?
George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
--


Thanks for replying

I click 'Refresh' button on IE toolbar and it asks me only if I
clicked 'submit' button before that.
Nov 18 '05 #3
al
"George" <no****@hotmail.com> wrote in message news:<u5**************@TK2MSFTNGP10.phx.gbl>...
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?
George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
--

Thanks for replying

I click 'Refresh' button on IE toolbar and it asks me only if I
clicked 'submit' button before that.
Nov 18 '05 #4
al
"George" <no****@hotmail.com> wrote in message news:<u5**************@TK2MSFTNGP10.phx.gbl>...
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?
George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
--


Thanks for replying

I click 'Refresh' button on IE toolbar and it asks me only if I
clicked 'submit' button before that.
Nov 18 '05 #5
al
"George" <no****@hotmail.com> wrote in message news:<u5**************@TK2MSFTNGP10.phx.gbl>...
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?
George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
--


Thanks for replying

I click 'Refresh' button on IE toolbar and it asks me only if I
clicked 'submit' button before that.
Nov 18 '05 #6
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.


What is the value of textbox1.Text?
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #7
Then everything is correct.
Request.Form is collection that gets populated only when form is submitted using method "POST"

If you are not resubmitting the data and just navigated there using URL the Request.Form collection is empty.

Request.QureryString behaves a little differently. It will be populated with parameters firm the URL string (the ones that after ? character).

George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message news:66**************************@posting.google.c om...
"George" <no****@hotmail.com> wrote in message news:<u5**************@TK2MSFTNGP10.phx.gbl>...
What do you mean by "refresh"?
Do you click F5 in IE?
If yes, then does IE asks if you want to resubmit the data?


George
My Site - Body Jewelry
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings all,

I use request.form("textbox1") to get data back to page,

dim str as string

str = request.form("textbox1").tostring

But str is always empty after refresh???? I use asp.net textbox
control with form posting to itself.

MTIA,
Grawsha
--

Thanks for replying

I click 'Refresh' button on IE toolbar and it asks me only if I
clicked 'submit' button before that.
Nov 18 '05 #8

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

Similar topics

5
11342
by: Dave | last post by:
How do I check in a Windows Forms app if any controls have changed? I have a form that collects data, and I want to prompt the user if they try to exit the app, or load a new file, without saving...
10
8177
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
2
1277
by: Matt | last post by:
I want to confirm if Request.Form("field_name") no longer use in ASP.NET? Since we can just use TextBox1.Text to get the value from the user. Please advise! Thanks!
2
7150
by: Cindy | last post by:
Hi all you smarties out there, I'm having a little conundrum with my asp.net page Scenario: I have a form (asp.net) with no code behind (as yet). I have placed a javascript function on a...
9
408
by: kai | last post by:
Hi, All I create an ASP.NET page, it contains FirstName textbox and LastName textbox. I setup "enableViewState=false" in page directive. When I enter data in FirstName and LastName textbox,...
0
1311
by: dee | last post by:
Hi I'm a webform that fills a CheckListBox server control dynamically from a database. I then use Me.Server.Transfer("page2.aspx", True) to transfer the contorl data to to be used in page2...
12
3191
by: Pascal | last post by:
hello and soory for my english here is the query :"how to split a string in a random way" I try my first shot in vb 2005 express and would like to split a number in several pieces in a random way...
3
1965
by: G | last post by:
Hello, I have a c# ASPX file, and a Code Behind file. This file has contents POSTED to it, around 15 form fields. Rather than manually catch each Request.Form - is there an easy way to...
1
6705
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
0
7221
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
7109
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
7313
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
7481
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...
0
4702
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...
0
3190
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...
0
1537
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.