Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP RadioButton Group Selected Index
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
ASP RadioButton Group Selected Index
Miscellaneous
Thread ID:
01452311
Message ID:
01452311
Views:
153
... is always zero....

Defined like this
<asp:radiobuttonlist id="radOptions" Font-Names="Arial" Font-Size="10pt" runat="server">
    <asp:listitem id="option1" runat="server" value="Display On Screen" />
    <asp:listitem id="option2" runat="server" value="Show Report" />
    <asp:listitem id="option3" runat="server" value="Export To File" />
</asp:radiobuttonlist>
Checking it in a button like this
protected void cmdRunReport_Click(object sender, EventArgs e)
{
    switch (radOptions.SelectedIndex)
    {
        case 0:
            _ShowOnScreen();
            break;

        case 1:
            _ShowGrid();
            break;

        case 2:
            _SendToFile();
            break;
    }
}
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform