1
Answer

command arguments

Sagar Godase

Sagar Godase

8y
489
1
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)