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

A

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
 
G

George

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
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
 
A

al

George said:
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
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.
 
A

al

George said:
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
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.
 
A

al

George said:
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
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.
 
A

al

George said:
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
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.
 
J

John Saunders

al said:
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?
 
G

George

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 said:
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
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top