NET application, I have inserted a button that call a Javascript function (OnClientClick
event) and a VB.NET function (OnClick
event)
<asp:Button OnClientClick="jsfunction() " OnClick="vbfunction" Text="Submit" runat="server" />
The problem is that when I click the button, it refreshes the page and delete the content of the text boxes.
I have tried with inserting return false;
on the OnClienClick
event, but it doesn't execute the OnClick Event.
How can I avoid the page reload ?
P.S.: At the end of the Javascript function a new window is opened window.open(newWindow.aspx)
, but I want that the first page mantain the value inserted by the user in the Text Boxes.
Thanks in advance :)