ASP button (command against sending)

I want this to be a command button, not a submit button, so when the user clicks the submit button, theyโ€™ll click.

ASP Code: <asp:Button CommandName="StartButtonName" CommandArgument="soo" CausesValidation="false" ID="StartButton" Text="..." Visible="false" runat="server" OnClick="StartButton_Click" /> Generated HTML code <input type="submit" name="ctl00$ContentPlaceHolder1$StartButton" value="..." id="ctl00_ContentPlaceHolder1_StartButton" /> 

Why doesn't my ASP code generate a command button?

+4
source share
1 answer

Set UseSubmitBehavior to false . See the MSDN page for more information.

+7
source

All Articles