C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

problem in dynamic created menu


Posted Date: 04 Dec 2008      Posted By: rajasekhar      Member Level: Silver     Points: 1   Responses: 2



i dont no dynamic control menu,but i saw the one project dynamc menu,
1.i take one menu controle
2.and choose xml datasource
3.one xml.xsl file created
3.xml datasource configurdatabase property tractionfile path is selected
4.user_menu tabel is created
then run error is object referance is not set
i think i am not write database connection any datasource ask datasource but xml data source is not avilble .
pls explain how to exect r sample code





Responses

Author: indra sena reddy    04 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 1

u have used dynamic type in menucontrol properties then u check it it may work


Author: Preet    04 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

There is one more way to use dynamic menu control if you do not have or wish to use XML file.
you can populate menu's from dataBase as well.
1. Place Menu Controls.

2. Create an object of 'MenuItem' and give the required values like, menu display name, image etc.

3. Add the object in the menu Control :-
menu1.Items.Add(menuItemObject)

4. Create another object of 'MenuItems' for submenus and give required values.

5. Add object for the subMenu
menu1.Items[0].ChildItems.Add(menuItemObjectForSubMenu)

Hope it helps



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Validation For RadioButton
Previous : How to give pagination for gridview?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use