Menu System

M

medium.fisher

Hi

What is the best way to do the following in ASP.Net (1.1) without using
old style asp code mixed in with HTML?

I have a menu system that appears at the left side of each page. There
are two sections, COURSES and PARTICIPANTS. Under each heading there
are links for Add, Update, Delete, and List. The headings and links
are in a table cell, and each cell is separated by a 1 pixel high cell,
and there is a 1 pixel wide cell to the left and right. It has the
appearance of a word/excel table with the gridlines on.

Depending on who is logged on, only certain links appear, so one user
may have all links but another can only add courses and view
participants.

I cannot seem to find a way to make individual cells visible/invisible
based on true/false values from the database. I know how to make
panels invisible/visible, but when these translate to a div in html it
seems to not display the html table correctly.

I know how to do this in old style asp but any ideas on the .net
solution would be appreciated.

Thanks
 
G

Grant Merwitz

Can you use a table?

If you make the table as follows:

<Table>
<tr id=trow1 runat=server>
<td>
SOME LINK
</td>
</td>
<tr id=trow1 runat=server>
<td>
SOME LINK
</td>
</td>
</table>

You can then set them to visible/hidden from the code behind.
And this shouldn't effect the design.

The same should be true with Panels as well:

<Table>
<asp:panel id=pnl1 runat=server">
<tr>
<td>
SOME LINK
</td>
</td>
</asp:panel>
<asp:panel id=pnl1 runat=server">
<tr>
<td>
SOME LINK
</td>
</td>
</asp:panel>
</table>

I have had trouble with this however in firefox, where it would close the
table automatically when i set a panel to visible.
So i often revert to the first suggestion

Is that what you looking for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top