Re: Preventing Postdata when clicking refresh button

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 -



.



Relevant Pages

  • Re: Reality Check: Session Hijacking
    ... The user is always challenged when he starts to use a secure app, ... > and I don't mean just the first time, I mean each and every time he ... And NOT from the session. ... SSL, then goes to non-SSL pages while the PHP session is kept alive, some ...
    (comp.lang.php)
  • Re: X session messed up after upgrading to fc6. How to reset Gnome.
    ... I also noticed that the first time it logs in and fails, ... I had to change the session to gnome and retry. ... got it working by copying the files from a new user directory. ...
    (Fedora)
  • Re: session id is determined by the cookie?
    ... request come from a user to a server the sever automitacally give hime ... a session.. ... browsing their site for the first time or for the seccond time. ... cockie is send user name and password for us. ...
    (comp.lang.php)
  • Re: Running X in runlevel 3
    ... I accept it saves one login screen, but surely once you have logged on this screen is forgotten and your preferred session is started. ... I really doubt this is the case in which case I doubt, once you have your desktop session running it really makes a difference whether you went via the standard login window (init 5 if you like) or startx from init 3? ... I got into the habit of starting in run level 3 when I first tried Linux with Red Hat Linux 5.0. ... I think my current installs to my laptop and workstation are the first time I've ever left the graphical login in place. ...
    (Fedora)
  • Re: [PHP] adding "Back to Search results" link
    ... and in your editing page: ... (You'll need session support in both pages, of course - make sure you ... could try saving the $_POST data in the session (think there was a ... I'm a bit of a PHP newbie myself (just coming out of a long career in ...
    (php.general)