I have a problem with a project which I'm doing in Visual Studio, using ASP.NET and C#.
I have one form where I list all the customers from database.
The Id
is autogenerated from the database. At this form I have a button for updating a record, when users press this button the second form shows up ready to change any field of the record. So far so good
But, at the second form I want to save the changes and I need the Id, but anything I have tried the Id comes with value 0...
I have tried all the methods like using session, query string, post back etc., but the id is not transferring to the 2nd page
First page:
Response.Redirect("ProjectProductivityEst.aspx?id=" +ProInfIdtxt.Text);
Second page:
string id = Request.QueryString["id"].ToString();
ProjectInformationIdtxt.Text = Int32.Parse(id).ToString();