Avoiding Button web control post back event

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have attached the java script code to Button web control as follows.

myButton.Attributes.Add("OnClick", "OpenWindow()")

I have written java script to open the window in the OpenWindow function.

When I click on the myButon, one more window will open and at the sametime
button is posting back the form(?) and the main window comes up and the
opened window goes behind. So that my purpose of displaying the data(window)
is lost. how to make sure that the opened window will remain on top in the
clicked event of button.
Thanks
john
 
Hi John,

You can also use a HTML button for this purpose.

You have to change in the HTML part something as this

<INPUT ............ onclick="OpenWindow()" type="button" value="Button">

I hope this helps?

Cor
 
Back
Top