Hi,
 
         In master page i have Login Anchor tag. When i click this anchor  tag, Login form will popup on same page where they click. 
         There is no problem, If credentials are valid. But in submit button if username or password are invalid, the parent page reloads and the popup screen is disabled. Again i have to click on Login anchor tag to login.
 
aspx code
 
Login Anchor Tag
 

            Login In
 
 
Popup Form
        
                 
        
       
              

                          

                                   
                         

                         

                                       Welcome To Silicon Home
                          

            
 

  

           
              
                       
             
     
              
                    
              
  
              

              

                            


                                          Not yet Registered?
                            


                             


                                            
                             


              

      
 

Java script
 

.cs code
 
C#
protected void login_btn_Click(object sender, EventArgs e)
    {
                    using (SqlCommand cmd = new SqlCommand("UserLogin"))
            {
                     using (SqlDataAdapter sda = new SqlDataAdapter())
                    {
                           con.Open();

                           cmd.CommandType = CommandType.StoredProcedure;
                           cmd.Parameters.AddWithValue("@uname", user_name.Text.Trim());
                           cmd.Parameters.AddWithValue("@password", user_password.Text.Trim());

                             SqlParameter emp_status = cmd.Parameters.Add("@retvalue", SqlDbType.Int);
                             emp_status.Direction = ParameterDirection.Output;

                              SqlParameter login_username = cmd.Parameters.Add("@name", SqlDbType.VarChar, 100);
                              login_username.Direction = ParameterDirection.Output;

                              cmd.Connection = con;

                              cmd.ExecuteNonQuery();

                              string temp = login_username.Value.ToString();
                              int s = Convert.ToInt32(emp_status.Value);
                              if (s == 0)
                              {
                                    Login_Status.Text = "Invalid login or password";
                                    return;
                              }
                             else if (s == 1)
                            {
Session["User_Name"] = user_name.Text;
Response.Redirect("~/product.aspx");
                           }
                  }
         }
} 
 
Please help me, to solve this problem