Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
difference between htmlbutton and webcontrol button?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Bob, post: 522650"] Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton: <script runat="server"> Sub button1(Source As Object, e As EventArgs) p1.InnerHtml="You clicked the blue button!" End Sub </script> <form runat="server"> <button id="b1" OnServerClick="button1" runat="server">htmlbutton</button> <p id="p1" runat="server" /> </form> and webcontrol button. <script runat="server"> Sub submit(Source As Object, e As EventArgs) button1.Text="You clicked me!" End Sub </script> <form runat="server"> <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit"/> </form> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
difference between htmlbutton and webcontrol button?
Top