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:
01169364
Views:
7
>What is the command to put into the OnClick method of a button that will reload the page but not post it back. And at the same time I would like to "pass" a parameter to the server so that when the page is loaded I can use this parameter in the Page_Load method?

Why not use some client code to do this with JavaScript? It seems all youwant to do is clear some values. Use OnClientClick() and then run a function that clears out the values:
function ClearVals()
{
   document.getElementById('txtName').value = "";
   document.getElementById('txtAddress').value = "";
}
This sidesteps the whole issue of posting back and otherwise submitting values that you do not want changed on the server.

+++ Rick ---


>
>Thank you in advance for your help.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform