Mega Code Archive

 
Categories / ASP.Net / Asp Control
 

Set Button text (VB net)

<%@ Page Language="VB" %> <script language="vb" runat="server">     Sub Page_Load(Source As Object, E as EventArgs)       If Not IsPostBack Then         MyButton.Text = "OK"         MyDropDownList.Items.Add("http://www.rntsoft.com")         MyDropDownList.Items.Add("http://www.google.com")       End If     End Sub   </script> <html>  <body>   <form id="WebForm1" method="post" runat="server">     <asp:DropDownList id=MyDropDownList runat="server"/>     <asp:button id=MyButton runat="server" Text=""/>   </form>  </body> </html>