SqlConnection con= new SqlConnection(@"Data Source=SPIL279\SQLEXPRESS;Initial Catalog=kamal_webapplicatins;Integrated Security=True;"); string @userid; string @password; protected void Page_Load(object sender, EventArgs e) { string quary ="select UserId,Password from Regstration"; //InsertCommand="INSERT INTO [Regstration] ([UserId], [User_First_Name], [User_Last_Name], [Password], [DateOfBirth], [Password_Question], [Password_Answer], [Mobile_no], [email]) VALUES (@UserId, @User_First_Name, @User_Last_Name, @Password, @DateOfBirth, @Password_Question, @Password_Answer, @Mobile_no, @email)" SqlDataAdapter da = new SqlDataAdapter(quary, con); DataSet ds = new DataSet(); da.Fill(ds); gridview3.DataSource = ds.Tables[0]; gridview3.DataBind(); } protected void edit_click(object sender, EventArgs e) { string update_quary = "update Regstration set password =@password where userud=@userid"; SqlDataAdapter da = new SqlDataAdapter(update_quary, con); DataSet ds = new DataSet(); da.Fill(ds); } /head> <removed id="form1" runat="server"> <div> </div> <asp:removed id="gridview3" runat="server" xmlns:asp="#unknown"> <asp:removed> <asp:removed id="btnEdit" runat="server" text="Edit" onclick="edit_click" causesvalidation="false" /> </asp:removed> <asp:removed showeditbutton="true" showdeletebutton="true" showinsertbutton="true" /> </asp:removed>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)