web 2.0

ASP.NET(vb.net) & HTMLButton

ASP.NET(vb.net) & HTMLButton - HTMLButton : Creates a server-side control that maps to the <button> HTML element and allows you create push buttons.

ShotDev Focus:
- ASP.NET(vb.net) & HTMLButton

ASP.NET(vb.net) & HTMLButton

Tag Control :

  1. <button id="programmaticID"  
  2. OnServerClick="onserverclickhandler"  
  3. runat="server" >  
  4. buttontext, image, or control  
  5. </button>  

Example

HTMLButton.aspx

  1. <%@ Page Language="VB" %>  
  2. <script runat="server">  
  3.   
  4. Sub Button1_OnClick(sender As Object, e As EventArgs)  
  5. Me.lblText1.Text = Request.Form("txtInput1")  
  6. Me.lblText2.Text = Me.txtInput2.Value  
  7. End Sub  
  8.   
  9. </script>  
  10. <html>  
  11. <head>  
  12. <title>ShotDev.Com Tutorial</title>  
  13. </head>  
  14. <body>  
  15. <form runat="server">  
  16. Text 1 = <input type="text" name="txtInput1" value="<%=Request.Form("txtInput1")%>" />  
  17. <br />  
  18. Text 2 = <input type="text" id="txtInput2" runat="server"/>  
  19. <button id="Button1" runat="server" OnServerClick="Button1_OnClick">Click Here</button>  
  20. <hr>  
  21. <asp:Label id="lblText1" runat="server"></asp:Label>  
  22. <br>  
  23. <asp:Label id="lblText2" runat="server"></asp:Label>  
  24. </form>  
  25. </body>  
  26. </html>  

Screenshot

ASP.NET(vb.net) & HTMLButton
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 10.00 out of 10)
Loading ... Loading ...

One Response to “ASP.NET(vb.net) & HTMLButton”

  1. 3indebtedness…

Leave a Reply

You must be logged in to post a comment.