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

Clear Request.Form


Hello,

I'm pretty new to web programming and i'm facing an issue.
Hope someone can help!

I have a LinkButton in a form and when i click on it, it posts back to
the page. The problem i want to resolve is that if i refresh the page,
i get this annoying POSTDATA message dialog that ask for data resending
or not.
I assumed that this was caused by the values contained in the
Request.Form collection. Is there a way to clear the values (as it is
read only) after having processed the events ?
Or maybe a better workaround ?

Thanks for your help!

May 31 '06 #1
1 6075
This is a browser behaviour and there's nothing you can do on your end to
solve the problem. even if you could clear the Form collection, all IE would
know is that in order to properly "refresh" the page, the data it sent the
1st time around needs to be resent. Asking for the user's confirmation is
small security check.

Karl

--
http://www.openmymind.net/

"Kittie" <va************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...

Hello,

I'm pretty new to web programming and i'm facing an issue.
Hope someone can help!

I have a LinkButton in a form and when i click on it, it posts back to
the page. The problem i want to resolve is that if i refresh the page,
i get this annoying POSTDATA message dialog that ask for data resending
or not.
I assumed that this was caused by the values contained in the
Request.Form collection. Is there a way to clear the values (as it is
read only) after having processed the events ?
Or maybe a better workaround ?

Thanks for your help!

May 31 '06 #2

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

Similar topics

1
by: Christian Perthen | last post by:
Hi, Is there any method to clear a form collection after a post without have to do a response.redirect? I am trying to avoid having the form re-submitted a second time on a page refresh. ...
5
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
2
by: John | last post by:
Hi all, After one of my user controls does either a server.transfer or response.redirect, the action method in a my resulting html form is being set and any request variables changed at the...
2
by: Shahid Juma | last post by:
Hi, I tried using Request.Forms.Clear() but it says it is only a read-only property. I have a form and that same form has to be filled out 3 times and what I am trying is to clear the values...
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
77
by: Ville Vainio | last post by:
I tried to clear a list today (which I do rather rarely, considering that just doing l = works most of the time) and was shocked, SHOCKED to notice that there is no clear() method. Dicts have it,...
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
13
by: sureshl | last post by:
JavaScript Experts, I have the following HTML. How could I use JavaScript such that when a user clicks on the checkbox in each row the phone numbers and e-mail addresses are partially obfuscated...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
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
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,...

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.