How to Hide a Dalalist in a <tr> or <td> using asp:panel ? (VB.NET)
Posted on 2004-09-07
I have a Category datalist in my 1st page.
Once the user clicks on a list item, the user is sent to the 2nd page.
In 2nd page, I have 2 datalists: one for SubCategories, the other for terms for the chosen Category (Theses terms are direct childs of the Category, as are the SubCategories).
The problem is: Certain Categories might not have any SubCategories, they will have just the Terms listed under them, in the 2nd page.
While certain Categories will have some dirent SubCategories and some direct Terms of the Chosen Category.
I need to be able to hide the SubCategory datalist, alongwith an additional label (or Html Text) if there are no SubCategories.
I understand that if there is no SubCategory, the datalist will not be shown when I receive the QueryString and pass it to the SubCategory datalist.
My problem is I am using two <tr>, one for just displaying the text ""SubCategories""
and the other for the subcategory datalist.
I saw somewhere that I can use panel to hide information. But how can I use panel for two <tr>s ?
Please let me know.