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:
01169207
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>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?
>
>Thank you in advance for your help.

Dmitry;

You could do this on the HTML or CodeBehind page.

You could use vbScript or JavaScript.

A vbScript example on the HTML page:
<script language='vbScript"> 

SUB btnReset_OnClick()
  form1.txtMyTextBox.Value = ""
  'etc.
END SUB

</script>
Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform