Declare the RadioButtons at the class level and create the instance where it is needed. For e.g(i am writing this in C#) Class ClassName { RadioButton optMulChoice; //declare it here private void Page_Load(object sender, System.EventArgs e) { optMulChoice = new RadioButton(); ..... .... ////your code goes here } private void Button1_Click(object sender, System.EventArgs e) { myCommand = New SqlCommand("INSERT INTO t_quiz (q_type) VALUES (@type)", myConnection); myCommand.Parameters.Add("@type", SqlDbType.Bit, 1).Value =rbtType.SelectedItem .Value; } } Naveen G