if (Session["FullName"] != null) { Response.Redirect("~/Account/Login.aspx"); String UserId = Session["FullName"].ToString(); try { con.Open(); string sql = "Select Name,ContactNo,Email from UserContacts Where User_id= '"+UserId+"'"; cmd = new SqlCommand(sql, con); DataSet ds = new DataSet(); SqlDataAdapter dataAdapter = new SqlDataAdapter(cmd); dataAdapter.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind(); con.Close(); } catch (Exception ex) { } } }
Response.Redirect
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)