By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Button click and Page refresh issue.

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
> That's built in. You can't prevent it.
What about page property: Page.SmartNavigation = True? Seems working ...
Nov 19 '05 #3

P: n/a
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

P: n/a
> 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.