void dlsGallery_ItemCommand(object source, DataListCommandEventArgs e)
{
switch (e.CommandName)
{
case "EditGallery":
int GalleryID = 0;
int.TryParse(e.CommandArgument.ToString(), out GalleryID);
if (GalleryID > 0)
{
ViewState[CMSViewStateManager.GalleryID] = GalleryID;
SelectedParentGalleryObjID = GalleryID;
BeginEditMode();
upnlGalleryItem.Update();
upnlGalleryAdd.Update();
}
break;
}
}
#endregion