Is there any way by which I can create a dynamic database driven Menu
using ASP.NET/C#......
Thanks
Amit Arora 6 1788
About every control can be populated from code like from the page_load.
<ar*********@gm ail.com> schreef in bericht
news:11******** *************@g 43g2000cwa.goog legroups.com... Is there any way by which I can create a dynamic database driven Menu using ASP.NET/C#......
Thanks Amit Arora
Hi Amit,
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.GetStrin g("Text");
navLink.Url = reader.GetStrin g("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.H tmlControls.Htm lTableRow
Dim cell As New System.Web.UI.H tmlControls.Htm lTableCell
If Not control Is Nothing Then
cell.Controls.A dd(control)
End If
row.Cells.Add(c ell)
tblLinks.Rows.A dd(row)
End Sub
Cheers,
Kris
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???..
Thanks,
Amit Arora
Hi Amit,
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.
Cheers,
Kris
On this site: http://www.hellobasic.com/dotnet/imgmap1/default.aspx
I used the *ordinary* asp:Menu (for *this* specific example you'll need
MSIE, flaw in Opera).
It shows: File, Edit and Help with menus.
<ar*********@gm ail.com> schreef in bericht
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . 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???..
Thanks, Amit Arora
Horizontal with asp.net menu control you have to create seperate menus for
each column similar to how Kris built his but going across.
"Edwin Knoppert" wrote: On this site:
http://www.hellobasic.com/dotnet/imgmap1/default.aspx
I used the *ordinary* asp:Menu (for *this* specific example you'll need MSIE, flaw in Opera).
It shows: File, Edit and Help with menus.
<ar*********@gm ail.com> schreef in bericht news:11******** **************@ g43g2000cwa.goo glegroups.com.. . 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???..
Thanks, Amit Arora This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Macamba |
last post by:
Hi all,
I am currently developing a website for a voluntary organisation. It is
my first step in website development. The dynamic menu I developed has
some bugs, which I addressed in another post. In this post I want to ask
you why my code behaves differently in IE, while it behaves like I
expect in Mozilla and Opera. What I would like to see addressed is what
I need to do to get the same behaviour in all 3 browsers. I know each
browser...
|
by: Stromboli |
last post by:
hi people,
My problem is that I need to build a dynamic menu (preferably that
works in all the browsers) that appears when I mouseover a certain
link.
The problem is that I have to declare the menu content in the same
part of the page where the menu goes (BODY). The content of the page
is generated dynamically so I can't put the menu content it on the
headers.
|
by: Nathan Bloomfield |
last post by:
Does anyone know if there is any documentation which relates to Access2k + ?
or can anyone help adjust the code?
I am having trouble converting the DAO references.
TITLE :INF: How to Create a Dynamic Crosstab Report
PRODUCT :Microsoft Access
PROD/VER:1.00 1.10
OPER/SYS:WINDOWS
|
by: biela |
last post by:
Hi
I'm from Poland and I have small question :). I'm looking for sample
example how to create dynamic menu. Generaly my website will see like
that
------------------------------------
2
---------|--------------|-----------
| |
1 | 3 | 4
| |
|
by: vikram |
last post by:
I have to design a page which contains a dynamic generated
menu at left side.Menu will be generated once a user log
in and will remain as it is for the rest of the user
session.
Problem is that due to client requirement i have to avoid
using frames and hence menu and the page will be a single
page.
So is there is any way by which the left hande side menu
block can be cached someway so that dynamic generation can
be avoided each time...
| |
by: mart2006 |
last post by:
I've created a dynamic drop down menu that populates itself with data from a MySQL table. What I would like to do is create a non dynamic drop down menu that alters what is shown in the dynamic menu.
For example, the first menu has three cities London, Paris, New York. If I choose London it populates the second menu with people from London.
Here is the code I have for my dynamic menu
<td valign=top><strong>Name:</strong></td>
<td>...
|
by: RahimAsif |
last post by:
I am writing an application that requires the a portion of the main
menu to be dynamic. The menu has file, panels, view files and help
across the top. The view files sub menu needs to be dynamically
generated, and the dynamic generation needs to occur right when the
user selects this menu item (that is on the Popup event handler).
However, everytime I put following code on the Popup event handler (of
the View Files menuitem) to dynamically...
|
by: benfly08 |
last post by:
Hi,
I used SWT to develop an windows application. In the application there is a dynamic created popup menu. The dynamic part is that i will pass a list of name to be a submenu of one menu item. However, when I code selection event, i cannot access to the list i pass in. Anybody got idea? Below is the code.
public static void setUpMenu(final Shell shell, Menu popUpMenu, final String clientId) {
myShell = shell;
...
|
by: mart2006 |
last post by:
Hi,
I'm fairly new to PHP and I've created a dynamic drop down menu that populates itself with data from a MySQL table. What I would like to do is create a non dynamic drop down menu that alters what is shown in the dynamic menu.
For example, the first menu has three cities London, Paris, New York. If I choose London it populates the second menu with people from London.
Here is the code I have for my dynamic menu
<td...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |