Andy Smith's Blog

Page.RegisterStartupScript('Andy', 'MetaBuilders_WebControls_GainKnowledge();');

OneClick revisited

I've finally gotten around to updating my OneClick control to make it work in applications where pages are served in sequence.

The way OneClick works is by storing a token in a hidden field in the form. If the user posts twice, the token has been logged by the first post, and the OneClick.IsValid property will be false.

Unfortunately, in the old version of OneClick, the form post tracking token was removed when the page was done processing. But this was the wrong thing to do because when pages are served in sequence, the the second, invalid, post was deemed valid because the token had been removed by the first post. Oops :)

Anyway, if anybody using OneClick still has problems with it, let me know.

Comments

sdf said:

dsf
# April 28, 2004 8:16 AM

sdf said:

sadf
# April 28, 2004 8:16 AM

sdf said:

sadf
# April 28, 2004 8:16 AM

sdf said:

sdfaf
# April 28, 2004 8:17 AM

sdf said:

werqerqer
# April 28, 2004 8:17 AM

sdf said:

werqerqer
# April 28, 2004 8:17 AM

sdf said:

werqerqer
# April 28, 2004 8:17 AM

sdf said:

werqerqer
# April 28, 2004 8:17 AM

TrackBack said:

# June 21, 2004 5:13 AM

pkailas said:

Can you give me a sample usage?

Like in a button click event, do I do something like:

If OnceClick1.IsValid Then

  <some code here>

else

  <some other code here>

end if

# January 7, 2010 5:34 PM

celebrity hot images said:

 In my opinion you are not right. Write to me in PM, we will discuss.

P.S. Please review our <a href="epogeo.co.uk for Windows</a>  and windows13icons.

# September 16, 2012 12:51 AM

icon pack said:

 In my opinion it is obvious. I would not wish to develop this theme.

P.S. Please review <a href="iconoman.deviantart.com/.../3D-Business-Icons-276065392 Business Icons from Iconoman</a>

# September 21, 2012 9:00 PM

icons design said:

 Bravo, you were visited with an excellent idea

<a href="www.hpixel.com/.../a>

# September 22, 2012 11:33 PM

icons download said:

<a href="www.programurl.com/black-hand-icons.htm"> Whence to me the nobility?</a>

# October 9, 2012 5:51 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)