Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reload the page in OnClick method?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01169184
Message ID:
01169781
Views:
8
>
>
>Set UseSubmitBehavior to false, then use OnClientClick like this:
>
>OnClientClick="ClearVals();return false;"
>
>This will prevent the postback from occurring. You can also return a value from ClearVals to conditionally determine whether you want to post back or not:
>
>OnClientClick="if (ClearVals()) return false;"
>
>Not real obvious but it works.
>
>But if you're not using server side button behavior in the first place you can also just use an HTML button, which doesn't post back to the server at all.

Rick,

Thank you very much.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform