>>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 ---
>
I thought about what I said and I was wrong. Setting property CauseValidation() to false does not stop a button from posting back.
Therefore, even if use the javascript, as you suggested, I don't seem to find a way to prevent the button from posting back. Even if I don't have a method OnClick(), the page "jumps" when I click on the button.
I wonder if I am missing a way to stop the button click from posting back?
"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