I wonder how to skip certain database rows.
So this works perfectly, But i want to skip a row if the column "hiddenpage = 1" in de SQL.
I cannot do it directly in the SQL code because of there are childnodes it gives an error that it cannot find the parent node.
Anyone have an idea ?
Dim adapter As New SqlDataAdapter(strSQL, dbs) |
adapter.SelectCommand.Parameters.Add("@MenuIDvalue", SqlDbType.Int, 4) |
adapter.SelectCommand.Parameters("@MenuIDvalue").Value = MenuIDvalue |
adapter.SelectCommand.Parameters.Add("@LangID", SqlDbType.Int, 4) |
adapter.SelectCommand.Parameters("@LangID").Value = LangID |
Dim Menu As New DataSet() |
rst.Close() |
adapter.Fill(Menu) |
panelmenu1.DataTextField = "Pagename" |
panelmenu1.MaxDataBindDepth = Dropdownlevels |
panelmenu1.DataFieldID = "ID" |
panelmenu1.DataFieldParentID = "PageID" |
panelmenu1.DataSource = Menu |
panelmenu1.DataBind() |
So this works perfectly, But i want to skip a row if the column "hiddenpage = 1" in de SQL.
I cannot do it directly in the SQL code because of there are childnodes it gives an error that it cannot find the parent node.
Anyone have an idea ?