code behind page

  • Thread starter Thread starter Raymond Cheung
  • Start date Start date
R

Raymond Cheung

On the aspx page, I have the following code

<asp:Radiobutton id=heis Text="Yes" Groupname="idiot"
checked="true" runat="server" />
&nbsp&nbsp&nbsp <asp:Radiobutton id=heisnot Text="No"
Groupname="idiot" runat="server" />

How do I keep track this radiobutton on the code behind
page in vb?
 
Right after the Inherits page, use the following:

Protected WithEvents heis As
System.Web.UI.WebControls.radiobutton
Protected WithEvents heisnot As
System.Web.UI.WebControls.radiobutton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top