i write code to go one form to another in query string but it gives error that command args
please look up
protected void grdemplist_RowCommand(object sender, GridViewCommandEventArgs e)
{string conString = System.Configuration.ConfigurationManager.ConnectionStrings["mydbconp"].ToString();
con = new SqlConnection(conString);
if (e.CommandName == "Edit")
{
con.Open();
Response.Redirect("EmployeeDetail.aspx?Id=" + e.CommandArgument);
}
}
Nitin SontakkePosted Dec 4, 2016, 10:23 PM