DotNet Blogs

Articles of ASP.NET, C# & SQL Server

disable the default button on a webform

Posted by Sujit Kumar on March 18, 2009

you can disable default button on a webform set to false of button property “UseSubmitBehavior”  .

ex:

 

<asp:Button ID=”btnSave” runat=”server”  Text=”Save” CssClass=”buttons” UseSubmitBehavior=”false” />

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>