protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } DotNetNuke.Entities.Modules.ModuleController objModules = new DotNetNuke.Entities.Modules.ModuleController(); int tabid = 0; int.TryParse("" + objModules.GetModuleSettings(ModuleId)["annoncetabid"], out tabid); Tab.DataTextField = "Text"; Tab.DataValueField = "Value"; Tab.DataSource = Functions.GetListItemsFromTabs(tabid); Tab.DataBind(); Tab.SelectedValue = tabid.ToString(); int tabid_Presentation = 0; int.TryParse("" + objModules.GetModuleSettings(ModuleId)["presentationtabid"], out tabid_Presentation); Tab_presentation.DataTextField = "Text"; Tab_presentation.DataValueField = "Value"; Tab_presentation.DataSource = Functions.GetListItemsFromTabs(tabid_Presentation); Tab_presentation.DataBind(); Tab_presentation.SelectedValue = tabid_Presentation.ToString(); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } DotNetNuke.Entities.Modules.ModuleController objModules = new DotNetNuke.Entities.Modules.ModuleController(); int tabid_Presentation = 0; int.TryParse("" + objModules.GetModuleSettings(ModuleId)["presentationtabid"], out tabid_Presentation); Tab_presentation.DataTextField = "Text"; Tab_presentation.DataValueField = "Value"; Tab_presentation.DataSource = Functions.GetListItemsFromTabs(tabid_Presentation); Tab_presentation.DataBind(); Tab_presentation.SelectedValue = tabid_Presentation.ToString(); string valueRBL = "" + objModules.GetModuleSettings(ModuleId)["mode"]; foreach (ListItem li in rbl_mode.Items) { if (li.Value == valueRBL) { li.Selected = true; } } }