hi aspnetguy,thanks for your response.heres my code:i write THIS in a button click to just show a datagrid for 2 questions and also TO DISPLAY THE USERCONTROL WITH 2 TEXTBOXES AND A BUTTON INSIDE IT TO READ THOSE 2 ANSWERS.IN .ASCX FILE OF THE USER CONTROL I HAVE CREATED 2 SESSION STATES TO STORE THE ANSWERS FROM THE 2 TEXTBOXES.WHEN I CLICK THE BUTTON IN USERCONTROL THE WHOLE USERCONTROL JUST GOES OFF AND SESSION STATES ARE GETTING EXPIRED.in button click: Control question1 = Page.LoadControl(@"~/question1.ascx"); Panel1.Controls.Add(question1);String connectionString = @"Data Source=DT-CORP-IT-8;Initial Catalog=employee;User ID=sa;Password=sa"; String queryString = "SELECT qid,qdescr FROM question"; DataSet ds = new DataSet(); SqlConnection connection = new SqlConnection(connectionString); SqlDataAdapter adapter = new SqlDataAdapter(queryString, connection); adapter.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind();IN THE NEXT BUTTON CLICK I WANT TO STORE THE VALUES INTO DATABASE AS THIS:string x = (string)(Session["name"]); string y = (string)(Session["age"]); insert(x, y); String connectionString = @"Data Source=DT-CORP-IT-8;Initial Catalog=employee;User ID=sa;Password=sa"; String queryString = "SELECT * FROM answer"; DataSet ds = new DataSet(); SqlConnection connection = new SqlConnection(connectionString); SqlDataAdapter adapter = new SqlDataAdapter(queryString, connection); adapter.Fill(ds); GridView2.DataSource = ds; GridView2.DataBind(); insert function: string insert, source; source = @"Data Source=DT-CORP-IT-8;Initial Catalog=employee;User ID=sa;Password=sa"; insert = @"insert into answer values ('" + a + "')"; SqlConnection conn = new SqlConnection(source); conn.Open(); SqlCommand cmd = new SqlCommand(insert, conn); cmd.ExecuteNonQuery(); conn.Close();THIS IS MY PROBLEM PLEASE SOLVE IT.IF YOU WANT STILL ANYMORE CLARIFICATIONS YOU PLEASE ASK ME I WANT TO SOLVE THIS PROBLEM AT ANY COST.IAM READY TO CONVERSE WITH AS MANY TIMES AS POSSIBLE WITH YOU AND WANT TO CLARIFY MY DOUBT.THANKS IN ADVANCE.THANKS,KARTHIK.