I did create a left navigation menu in my web page using below code.
While (reader.Read())
Dim navLink As New HtmlHyperLink
navLink.Text = reader.GetString("Text");
navLink.Url = reader.GetString("URL");
AddRow(navLink)
If index < (years.Count - 1) Then
AddRow(New LiteralControl(" "))
End If
End While
Private Sub AddRow(ByRef control As Control)
Dim row As New System.Web.UI.HtmlControls.HtmlTableRow
Dim cell As New System.Web.UI.HtmlControls.HtmlTableCell
If Not control Is Nothing Then
cell.Controls.Add(control)
End If
row.Cells.Add(cell)
tblLinks.Rows.Add(row)
End Sub
Thanks Mate.....
But i guess u took me wrong...
I mean the menu, kind of comes horizontally on which mouseover,
mouseout etc. events gets fired.
I guess u have understood my requirement.
Any suggesion???..
Yes. You can do this very well. Create a custom control which outputs
HTML text, and add onMouseOver, onMouseOut client events to display or
hide the tables accordingly. Handle these events with the help of
Javascript and CSS.
Once I did similar kind of dynamic menu generation with the help of XML
and Vb.Net.
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.