Response.Redirect"ClientEditForm.aspx?clientID={0}"The {0} string gets filled with the unique client id of the selected record. This is done by my grid.
Response.Redirect("ClientEditForm.aspx?ClientID=0")
Notce the value I pass is 0 (zero). This will be an indicator to the edit form that we want to add a new record.// Instantiate the Business objects and register with the form this.oClient = (Client)this.RegisterBizObj(new Client()); // Retrieve the client id passed by the page sending the request this.iClientID = int.Parse(Request.QueryString["clientID"]); if (this.iClientID == 0) { // Add new client this.oClient.NewEntity(); } else { // Retrieve the specified client record this.oClient.GetClientbyClientID(this.iClientID); } Session["dsClient"] = this.oClient.DataSet;HTH