private void BindPageDropDown() { try { PagesDataContext db = new PagesDataContext(SystemSetting.SageFrameConnectionString); var LINQParentPages = db.sp_PagePortalGetByCustomPrefix("---", true, false, GetPortalID, GetUsername, null, null); ddlMyAccountURL.Items.Clear(); ddlMyAccountURL.DataSource = LINQParentPages; ddlMyAccountURL.DataTextField = "LevelPageName"; ddlMyAccountURL.DataValueField = "SEOName"; ddlMyAccountURL.DataBind(); ddlMyAccountURL.Items.Insert(0, new ListItem("<Not Specified>", "-1")); ddlShoppingCartURL.Items.Clear(); ddlShoppingCartURL.DataSource = LINQParentPages; ddlShoppingCartURL.DataTextField = "LevelPageName"; ddlShoppingCartURL.DataValueField = "SEOName"; ddlShoppingCartURL.DataBind(); ddlShoppingCartURL.Items.Insert(0, new ListItem("<Not Specified>", "-1")); ddlWishListURL.Items.Clear(); ddlWishListURL.DataSource = LINQParentPages; ddlWishListURL.DataTextField = "LevelPageName"; ddlWishListURL.DataValueField = "SEOName"; ddlWishListURL.DataBind(); ddlWishListURL.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlStoreCloseUrl.Items.Clear(); //ddlStoreCloseUrl.DataSource = LINQParentPages; //ddlStoreCloseUrl.DataTextField = "LevelPageName"; //ddlStoreCloseUrl.DataValueField = "SEOName"; //ddlStoreCloseUrl.DataBind(); //ddlStoreCloseUrl.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlStoreNotAccessedUrl.Items.Clear(); //ddlStoreNotAccessedUrl.DataSource = LINQParentPages; //ddlStoreNotAccessedUrl.DataTextField = "LevelPageName"; //ddlStoreNotAccessedUrl.DataValueField = "SEOName"; //ddlStoreNotAccessedUrl.DataBind(); //ddlStoreNotAccessedUrl.Items.Insert(0, new ListItem("<Not Specified>", "-1")); lstSSLSecurePages.Items.Clear(); lstSSLSecurePages.DataSource = LINQParentPages; lstSSLSecurePages.DataTextField = "LevelPageName"; lstSSLSecurePages.DataValueField = "SEOName"; lstSSLSecurePages.DataBind(); lstSSLSecurePages.Items.Insert(0, new ListItem("<Not Specified>", "-1")); } catch (Exception ex) { ProcessException(ex); } }
private void BindPageDlls() { try { PagesDataContext db = new PagesDataContext(SystemSetting.SageFrameConnectionString); var LINQParentPages = db.sp_PagePortalGetByCustomPrefix("---", true, false, GetPortalID, GetUsername, null, null); ddlLoginPage.Items.Clear(); ddlLoginPage.DataSource = LINQParentPages; ddlLoginPage.DataTextField = "LevelPageName"; ddlLoginPage.DataValueField = "SEOName"; ddlLoginPage.DataBind(); ddlLoginPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); ddlUserRegistrationPage.Items.Clear(); ddlUserRegistrationPage.DataSource = LINQParentPages; ddlUserRegistrationPage.DataTextField = "LevelPageName"; ddlUserRegistrationPage.DataValueField = "SEOName"; ddlUserRegistrationPage.DataBind(); ddlUserRegistrationPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalUserActivation ddlPortalUserActivation.Items.Clear(); ddlPortalUserActivation.DataSource = LINQParentPages; ddlPortalUserActivation.DataTextField = "LevelPageName"; ddlPortalUserActivation.DataValueField = "SEOName"; ddlPortalUserActivation.DataBind(); ddlPortalUserActivation.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalForgotPassword ddlPortalForgotPassword.Items.Clear(); ddlPortalForgotPassword.DataSource = LINQParentPages; ddlPortalForgotPassword.DataTextField = "LevelPageName"; ddlPortalForgotPassword.DataValueField = "SEOName"; ddlPortalForgotPassword.DataBind(); ddlPortalForgotPassword.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPageNotAccessible ddlPortalPageNotAccessible.Items.Clear(); ddlPortalPageNotAccessible.DataSource = LINQParentPages; ddlPortalPageNotAccessible.DataTextField = "LevelPageName"; ddlPortalPageNotAccessible.DataValueField = "SEOName"; ddlPortalPageNotAccessible.DataBind(); ddlPortalPageNotAccessible.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPageNotFound ddlPortalPageNotFound.Items.Clear(); ddlPortalPageNotFound.DataSource = LINQParentPages; ddlPortalPageNotFound.DataTextField = "LevelPageName"; ddlPortalPageNotFound.DataValueField = "SEOName"; ddlPortalPageNotFound.DataBind(); ddlPortalPageNotFound.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPasswordRecovery ddlPortalPasswordRecovery.Items.Clear(); ddlPortalPasswordRecovery.DataSource = LINQParentPages; ddlPortalPasswordRecovery.DataTextField = "LevelPageName"; ddlPortalPasswordRecovery.DataValueField = "SEOName"; ddlPortalPasswordRecovery.DataBind(); ddlPortalPasswordRecovery.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalDefaultPage ddlPortalDefaultPage.Items.Clear(); ddlPortalDefaultPage.DataSource = LINQParentPages; ddlPortalDefaultPage.DataTextField = "LevelPageName"; ddlPortalDefaultPage.DataValueField = "SEOName"; ddlPortalDefaultPage.DataBind(); ddlPortalDefaultPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalUserProfilePage ddlPortalUserProfilePage.Items.Clear(); ddlPortalUserProfilePage.DataSource = LINQParentPages; ddlPortalUserProfilePage.DataTextField = "LevelPageName"; ddlPortalUserProfilePage.DataValueField = "SEOName"; ddlPortalUserProfilePage.DataBind(); ddlPortalUserProfilePage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); } catch (Exception ex) { ProcessException(ex); } }
private void BindPageDropDown() { try { PagesDataContext db = new PagesDataContext(SystemSetting.SageFrameConnectionString); var LINQParentPages = db.sp_PagePortalGetByCustomPrefix("---", true, false, GetPortalID, GetUsername, null, null); ddlReadMorePage.Items.Clear(); ddlReadMorePage.DataSource = LINQParentPages; ddlReadMorePage.DataTextField = "LevelPageName"; ddlReadMorePage.DataValueField = "SEOName"; ddlReadMorePage.DataBind(); ddlReadMorePage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); } catch (Exception ex) { ProcessException(ex); } }
private void BindPageDlls() { try { PagesDataContext db = new PagesDataContext(SystemSetting.SageFrameConnectionString); var LINQParentPages = db.sp_PagePortalGetByCustomPrefix("---", true, false, GetPortalID, GetUsername, null, null); ddlLoginPage.Items.Clear(); ddlLoginPage.DataSource = LINQParentPages; ddlLoginPage.DataTextField = "LevelPageName"; ddlLoginPage.DataValueField = "SEOName"; ddlLoginPage.DataBind(); ddlLoginPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); ddlUserRegistrationPage.Items.Clear(); ddlUserRegistrationPage.DataSource = LINQParentPages; ddlUserRegistrationPage.DataTextField = "LevelPageName"; ddlUserRegistrationPage.DataValueField = "SEOName"; ddlUserRegistrationPage.DataBind(); ddlUserRegistrationPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalUserActivation ddlPortalUserActivation.Items.Clear(); ddlPortalUserActivation.DataSource = LINQParentPages; ddlPortalUserActivation.DataTextField = "LevelPageName"; ddlPortalUserActivation.DataValueField = "SEOName"; ddlPortalUserActivation.DataBind(); ddlPortalUserActivation.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalForgetPassword ddlPortalForgetPassword.Items.Clear(); ddlPortalForgetPassword.DataSource = LINQParentPages; ddlPortalForgetPassword.DataTextField = "LevelPageName"; ddlPortalForgetPassword.DataValueField = "SEOName"; ddlPortalForgetPassword.DataBind(); ddlPortalForgetPassword.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPageNotAccessible ddlPortalPageNotAccessible.Items.Clear(); ddlPortalPageNotAccessible.DataSource = LINQParentPages; ddlPortalPageNotAccessible.DataTextField = "LevelPageName"; ddlPortalPageNotAccessible.DataValueField = "SEOName"; ddlPortalPageNotAccessible.DataBind(); ddlPortalPageNotAccessible.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPageNotFound ddlPortalPageNotFound.Items.Clear(); ddlPortalPageNotFound.DataSource = LINQParentPages; ddlPortalPageNotFound.DataTextField = "LevelPageName"; ddlPortalPageNotFound.DataValueField = "SEOName"; ddlPortalPageNotFound.DataBind(); ddlPortalPageNotFound.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalPasswordRecovery ddlPortalPasswordRecovery.Items.Clear(); ddlPortalPasswordRecovery.DataSource = LINQParentPages; ddlPortalPasswordRecovery.DataTextField = "LevelPageName"; ddlPortalPasswordRecovery.DataValueField = "SEOName"; ddlPortalPasswordRecovery.DataBind(); ddlPortalPasswordRecovery.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalDefaultPage ddlPortalDefaultPage.Items.Clear(); ddlPortalDefaultPage.DataSource = LINQParentPages; ddlPortalDefaultPage.DataTextField = "LevelPageName"; ddlPortalDefaultPage.DataValueField = "SEOName"; ddlPortalDefaultPage.DataBind(); ddlPortalDefaultPage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); //ddlPortalUserProfilePage ddlPortalUserProfilePage.Items.Clear(); ddlPortalUserProfilePage.DataSource = LINQParentPages; ddlPortalUserProfilePage.DataTextField = "LevelPageName"; ddlPortalUserProfilePage.DataValueField = "SEOName"; ddlPortalUserProfilePage.DataBind(); ddlPortalUserProfilePage.Items.Insert(0, new ListItem("<Not Specified>", "-1")); } catch (Exception ex) { ProcessException(ex); } }