Hello ,
you have to create a "Select" command to fetch the data from database and then show that data in gridview .you have only inserted into database and have not fetched from it . so , how could you expect to get those values .
try this code
Void Bind()
{
string s = ConfigurationManager.ConnectionStrings["conn"].ToString();
SqlConnection con = new SqlConnection(s);
SqlCommand cmd = new SqlCommand();
cmd.Connection = con
cmd.CommandText = "select * from student_info ";
cmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
gvstd.DataSource = ds;
gvstd.DataBind();
}
and call this function after inserting method .
thanks