SqlConnection con = new SqlConnection("server=localhost;database=bankadmin;Integrated Security=SSPI"); protected void Page_Load(object sender, EventArgs e) { Panel1.Visible = true; } protected void Button1_Click(object sender, EventArgs e) { Panel1.Visible = true; SqlCommand cmd = new SqlCommand("select * from bankadmin where Accountno=@Accountno"); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "spbankregsearch"; SqlParameter p1 = new SqlParameter("@Gender", SqlDbType.VarChar); p1.Direction = ParameterDirection.Output; cmd.Parameters.Add(p1); con.Open(); cmd.ExecuteNonQuery(); con.Close(); RadioButtonList1.SelectedValue = p1.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)