- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
protected void Page_Load(object sender, EventArgs e)
{
Common.CheckAuthorization(Response, Session);
string uniqueID = Request["__EVENTTARGET"];
if (uniqueID != null)
{
UpdatePanel.ContentTemplateContainer.Controls.Clear();
string controlPath;
Control control = GetViewControlOnEvent(uniqueID, out controlPath);
if (control != null)
{
UpdatePanel.ContentTemplateContainer.Controls.Add(control);
Helpers.SetKeyInSession(Common.CATALOG_KEYS.CONTROL_PATH, controlPath, Session);
}
else
{
UpdatePanel.ContentTemplateContainer.Controls.Add(
GetViewControlOnSession());
}
}
else
{
if (ControlParam == null)
Helpers.SetKeyInSession(Common.CATALOG_KEYS.CONTROL_PATH, Common.PATHS.USER_CONTROLS.MAIN_CONTROL, Session);
UpdatePanel.ContentTemplateContainer.Controls.Add(
GetViewControlOnSession());
}
TreeViewState.SaveTreeView(treeCatalogs, this.GetType().ToString());
this.PreRender += OnPreRender;
}