I have bound a drop down menu with a list of all the tabs for the portal. The text field is the tabnames and the value of each selection is set to be the tab ID.
I have two questions. FIrst, when I select a page from the menu and try to set the value of the selection to be the parent ID it does not work. Second, How can you filter out the display of pages you dont want? The drop down menu displays every page, i.e. search page and all the host / admin pages.
What am I doing wrong or what could I be doing better?
----------------------------------------------------------------------------------------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
jdParentPage.DataSource = nParent.GetAllTabs(sPortal.PortalId)
jdParentPage.DataTextField = "TabName"
jdParentPage.DataValueField = "TabID"
jdParentPage.DataBind()
End Sub Protected Sub btnAddPage_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnAddPage.Click
NewPage.ParentId = jdParentPage.SelectedValue
End Sub