468,253 Members | 1,288 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,253 developers. It's quick & easy.

Button click and Page refresh issue.

I am using regular server site ASP.NET button to execute function. Works
fine, issue is that when I call page-refresh on IE after click I done it is
calling same event again.
Could anybody suggest how to prevent this behavior?

Thanks,
Leonid.
Nov 19 '05 #1
4 11696
Leonid,

That's built in. You can't prevent it. You should implement a sort of
protection against this on server side. For example, to compare a piece of
information that should change between postbacks. The same value in two
postbacks indicates refresh button click.

Eliyahu

"Lenny Shprekher" <le*******@yahoo.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I am using regular server site ASP.NET button to execute function. Works
fine, issue is that when I call page-refresh on IE after click I done it is calling same event again.
Could anybody suggest how to prevent this behavior?

Thanks,
Leonid.

Nov 19 '05 #2
> That's built in. You can't prevent it.
What about page property: Page.SmartNavigation = True? Seems working ...
Nov 19 '05 #3
Hi Lenny,
As Goldin pointed out, thatz the way it is. When you load the page again /
refresh it, the entire page cycle gets fired again.

SmartNavigation means..When a page is requested by an Internet Explorer 5.5
browser, or later, smart navigation enhances the user's experience of the
page by performing the following:
* eliminating the flash caused by navigation.
* persisting the scroll position when moving from page to page.
* persisting element focus between navigations.
* retaining only the last page state in the browser's history.

Smart navigation is best used with ASP.NET pages that require
frequent postbacks but with visual content that does not change dramatically
on return.

This does not have anything to with your issue..

Need any help, do post a msg back..

Happy Coding
"Lenny Shprekher" wrote:
That's built in. You can't prevent it.

What about page property: Page.SmartNavigation = True? Seems working ...

Nov 19 '05 #4
> Need any help, do post a msg back..
Could you or anybody else provide code sample?
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rajagopal | last post: by
reply views Thread by Symphony | last post: by
2 posts views Thread by Fabiano | last post: by
2 posts views Thread by chrisp | last post: by
2 posts views Thread by Peter | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.