protected void gvEvents_RowCommand(object sender, GridViewCommandEventArgs e) { switch (e.CommandName) { case "Edit": var iItemID = Convert.ToInt32(e.CommandArgument); //set selected row editable var objEventInfoHelper = new EventInfoHelper(this.ModuleId, this.TabId, this.PortalId, this.Settings); this.Response.Redirect( objEventInfoHelper.GetEditURL(iItemID, this.GetUrlGroupId(), this.GetUrlUserId())); break; } }
protected void lstEvents_ItemCommand(object source, DataGridCommandEventArgs e) { try { switch (e.CommandName) { case "Edit": //set selected row editable var iItemID = Convert.ToInt32(e.CommandArgument); var objEventInfoHelper = new EventInfoHelper(ModuleId, TabId, PortalId, Settings); Response.Redirect( objEventInfoHelper.GetEditURL(iItemID, GetUrlGroupId(), GetUrlUserId())); break; } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } }