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:
-
<siteMap enabled="true">
-
<providers>
-
<add name="AHandleNameForYourSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="SiteMapFileName.SiteMap" />
-
</provider>
-
</siteMap>
-
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