Re: Preventing Postdata when clicking refresh button
- From: Peter Bromberg [C# MVP] <pbromberg@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Nov 2007 08:33:00 -0800
This may not be the most elegant idea, but it's the first that comes to mind.
1) the first time, set a Session Item that will be used to identify that the
page has already been posted (or whatever it is that you need to prevent
happening more than 1x)
2) On each subsequent Page_Load, you would check for the presence of the
Session Item from #1 above, and disallow the action if it is there.
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"Navaneet" wrote:
Yes, i want to prevent only when refresh button get clicked..
Following is scenario where i am digging
1. There is xml file (Namely a.xml) which contains all the field
including hidden field.
2. There is a aspx file (Namely a.aspx) which having only vb.net code.
Depending on need it will parsing xml data on browser.
3. From some page a.aspx page get in action containg post data.
4. Now from a.aspx page calling a javascript function, at there we had
set a hidden attribute value to 1 (which is define in a.xml file) and
submitting the form which contains that hidden attribute value.
5. So depending on that attribute value a.aspx parse the a.xml.
6. Now when i refresh button (F5) press step-4 and 5 should be called.
My need, step-4 will not called when refresh button hit, it will
called only when step-4 explicitly called.
Please tell what i have to do to resolve this.
Thanking You a lot !
: Kumar N
On Nov 6, 8:39 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Kumar,
What do you mean you want to prevent some particular post data? What
are you trying not to do?
--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Navaneet" <tonavan...@xxxxxxxxx> wrote in message
news:1194362768.778436.206320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Can anyone tell me how to prevent some particular POST DATA when
refresh button (F5) clicked on server side(vb.net).
Thanks
Kumar N- Hide quoted text -
- Show quoted text -
- References:
- Preventing Postdata when clicking refresh button
- From: Navaneet
- Re: Preventing Postdata when clicking refresh button
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Preventing Postdata when clicking refresh button
- From: Navaneet
- Preventing Postdata when clicking refresh button
- Prev by Date: Re: determining which core a thread is on
- Next by Date: Re: generic newbie: returning TYPE from a method
- Previous by thread: Re: Preventing Postdata when clicking refresh button
- Next by thread: Re: Preventing Postdata when clicking refresh button
- Index(es):
Relevant Pages
|