Sagar Godase

Sagar Godase

  • NA
  • 7
  • 466

command arguments

Dec 4 2016 3:28 PM
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);


}
}

Attachment: EmployeeData.rar

Answers (1)