Dear Friend,
frist u take radiobuttonlist from toolbox and add to ur design page
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem>Email</asp:ListItem>
<asp:ListItem>Username</asp:ListItem>
</asp:RadioButtonList>
and in aspx.cs page write the code
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (RadioButtonList1.SelectedItem.Text == "Email")
{
Response.redirect("Email.aspx")
}
else if (RadioButtonList1.SelectedItem.Text == "Username")
{
response.redirect("Username.aspx");
}
}
Regards,
AnilKumar.D