P
paul.richards
Hi,
I want a button that just calls a subroutine (rather than submitting a
form). So, I have done this:
<asp:Button id="btNewNetworkProvider" text="New"
commandname="newprovider" onclick="newprovider" runat="server"/>
and:
Sub newprovider(sender As Object, e As EventArgs)
...
End Sub
However when I press the button it just submits the form. There is
already another button that does the submit and I have tried setting:
<form id="Form1" defaultbutton="btSubmit" ..
but this has changed nothing.
Regards,
Paul
I want a button that just calls a subroutine (rather than submitting a
form). So, I have done this:
<asp:Button id="btNewNetworkProvider" text="New"
commandname="newprovider" onclick="newprovider" runat="server"/>
and:
Sub newprovider(sender As Object, e As EventArgs)
...
End Sub
However when I press the button it just submits the form. There is
already another button that does the submit and I have tried setting:
<form id="Form1" defaultbutton="btSubmit" ..
but this has changed nothing.
Regards,
Paul