نقل قول نوشته شده توسط panahinia مشاهده تاپیک
ممنون از راهنمایی شما به این صورت نوشتم ولی خطا میده


protected void Grcat_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
Int32 index = Int32.Parse((string)e.CommandArgument);
string action = "Edit";

string js = "window.open('AddCat.aspx?ID=" + Grcat.DataKeys[index].Values[0] + "&action=" + action + "', '_blank');";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "AddCat.aspx", js, true);

}


خطا


__________________________________________________ ____________


The GridView 'Grcat' fired event RowEditing which wasn't handled.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.Web.HttpException: The GridView 'Grcat' fired event RowEditing which wasn't handled.


Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
شما از رویداد RowEditing استفاده کردید ولی توی کد ها اون رو ندارید. میتونید از رویداد های توی گریدویو پاکش کنید مشکل رفع میشه.