Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML
Asp.Net > Code Snippets sample source codes
Button example
Button example This will display a button which when pressed will display a message underneath it <script runat="server"> Sub button1(Source As Object, e As EventArgs) text.InnerHtml="You clicked the button" End Sub </script> <html> <body> <form runat="server"> <button id="b1" OnServerClick="button1" runat="server"> test button </button> <p id="text" runat="server" /> </form> </body> </html>
Privacy Policy
|
Link to Us
|
Links