About Me

My photo
Dhaka, Bangladesh
I am B.S.C Engineer,CSE,SUST and Ex-Cadet of Mirzapur Cadet College.

Saturday, July 5, 2008

ASP CreateUserWizard and coder customized action Control

If the CreateUserWizard name is CreateUserWizard1 and an radio button is incorporated by coder, you will not get the radio button directly, rather you have to follow the code below:


RadioButtonList RadioButtonList1 =(RadioButtonList)CreateUserWizard1.CreateUserStep.
ContentTemplateContainer.FindControl("RadioButtonList1");
if (RadioButtonList1.SelectedValue == "User")
{
type = 0;
}
else
{
type = 1;
}

No comments: