473,803 Members | 3,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

menu& submenus in webform using vb.net

6 New Member
can anybody plz,
send m the code for menus& submenus or else tell m how to write code in webform using vb.net......... .....plz its very urgent.....
Jul 6 '07 #1
3 2043
shweta123
692 Recognized Expert Contributor
Hi,

Please refer this Link
Jul 6 '07 #2
Frinavale
9,735 Recognized Expert Moderator Expert
can anybody plz,
send m the code for menus& submenus or else tell m how to write code in webform using vb.net......... .....plz its very urgent.....
Menus aren't that tricky once you start using them.
There is a menu control available for .NET web applications.
You should check out the MSDN library on the Menu Class to get started.

I think the easiest way to set up a menu with sub menus is to use an XML file. This XML fill will be used to generate the menus and sub menus by the .NET menu control...the XML files are included into your project as .sitemap files.

(I believe that once you create the .sitemap file there is default XML to get you started)

Once you have created a siteMap XML file that describes your menu, you need to add it to your web.config file so that you can refer to it in your code. You'll have to add it to the <siteMap> section....eg:
Expand|Select|Wrap|Line Numbers
  1. <siteMap enabled="true">
  2.      <providers>
  3.           <add name="AHandleNameForYourSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="SiteMapFileName.SiteMap" />
  4.      </provider>
  5. </siteMap>
  6.  
Now you'll be able to refer to the sitemap XML file in your SiteMapDataSour ce object for your menu. So basically you need to add this SiteMapDataSour ce to the page that will have the menu on it. The SiteMapDataSour ce's SiteMapProvider property should be set to name you gave your siteMap in your web.config file.

Once you have set up your SiteMapDataSour ce object you'll have to add the menuControl to the page. Set the menuControl's DataSourceId property to be your SiteMapDataSour ce object....

Give it a try and if you need more help let us know :)

-Frinny
Jul 6 '07 #3
Frinavale
9,735 Recognized Expert Moderator Expert
Hi,

Please refer this Link
Hehe thanks Shweta!
You posted that tutorial in a couple of seconds while I was typing out that really long post...and I think that tutorial is easier to follow than my vague instructions.
Jul 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5344
by: alexz | last post by:
I have horizontal drop down menu and horizntal frames. The problem is that the menu get's cut off when it reaches the frame limits. Is there an easy way to go over a frame?
0
1144
by: paula | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i looking for. i am looking for code to make a dynamical menu with submenus The menu items are stored in a MS SQL Table and when by loading the page the items will be created. i have made a asp table. i want my menu on the left cell, in the middle...
1
1292
by: VF | last post by:
I am using several menu items from my main menu in my context menu. For some reason, all the menu items that I use in the context menu no longer show up in my main menu! I thought that maybe the context processing was setting the Visible property to false, but I verified that it is still set to true When I comment out my context code and rebuild, the menu items once again appear in my main menu I create the context menu as follows ...
4
4002
by: paula | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i looking for. i am looking for code to make a dynamical menu with submenus The menu items are stored in a MS SQL Table and when by loading the page the items will be created. i have made a asp table. i want my menu on the left cell, in the middle...
1
1669
by: ANIL KUMAR | last post by:
Hello Friends, please help to create a menu with toll bar in .net ie exactly like offfice 2003 or windows xp style. i'know it is possible to link with office 2003 .. please give the idea or example how can i imports object from office 2003 & link with .net please help with example
2
1534
by: elziko | last post by:
I understand how to edit the registry to add context menu items in windows for any file type. I know I can use %1 for the default value of the command key to signify the filename that has been clicked on. However, if I select multiple file names then the executable given in the default value is called multiple times. Is there an option other than %1 which will send all the filenames to the executable in one command line? Thanks!
4
5012
by: Enrique | last post by:
hi all, i'd like to know how i could do a docking menu and docking toolbar. i know it's not so easy y VS .NET 2002 and 2003. anything will help me: links, code, articles..... thanks a lot for your responses and i wish you a merry christmas :-)
0
1549
by: pkhose | last post by:
Hello All, I have one XML file. This file includes Page Heading, Image/SWF files path, Navigation. I have done the menu using JavaScript. Will someone help me out for getting the data from XML? Thanks in Advance :) Prasad
3
17044
by: prakashwadhwani | last post by:
When my application starts 2 toolbars still remain open 1) Form View and 2) Formatting (Form/Report) Toolbar Also ... Access's default Menu-Bar also remains open. How to switch it off at the beginning of my application using VBA and then switch it back on within the exit routine of my application ?
0
9564
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,...
0
10546
Oralloy
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...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7603
isladogs
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...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
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
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.