private gvCategory_RowCommand ( object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e ) : void | ||
sender | object | |
e | System.Web.UI.WebControls.GridViewCommandEventArgs | |
return | void |
void gvCategory_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "EditCategory":
int CategoryID = 0;
int.TryParse(e.CommandArgument.ToString(), out CategoryID);
if (CategoryID > 0)
{
ViewState[CMSViewStateManager.CategoryID] = CategoryID;
BeginEditMode();
upnlCategoryItem.Update();
}
break;
}
}
#endregion