string k = Session["uid"].ToString(); u_id.Text = k; if (!IsPostBack) { SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\helping.mdf;Integrated Security=True;User Instance=True"); String query = "select * from adoptionreg"; SqlCommand com = new SqlCommand(query, con); con.Open(); SqlDataReader sdr; sdr = com.ExecuteReader(); int i = 1120; while (sdr.Read()) { i++; } con.Close(); a_id.Text = "A" + i; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)