navigation of menu which was created dynamically

Posted by Oswaldlily under ASP.NET on 7/18/2011 | Points: 10 | Views : 3373 | Status : [Member] | Replies : 8
i have 2 column in a table
home navigation
-------------------------------------------------------
login login.aspx
details details.aspx

i dynamically created menu page where first column ll display in menu structure
if i click "login" that should navigate to login.aspx
if i click details that shd navigate to details.aspx
this navigation shd done by checkin in table..how to do it??




Responses

Posted by: SheoNarayan on: 7/18/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Its simple and if you have basic knowledge of ASP.NET and HTML, you should be able to create it yourself.

Steps to do
----------------------
1. Use ADO.NET code to retrieve the menus (fields from the database table)
2. Iterate through DataTable (records from the database) and generate the html that should contains html anchor tag with link label and link href.
3. Write the generated html string into a asp:Label or asp:Literal control on the .aspx page.

Hope this will give some clue.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Atuldhiman on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hello Sir,

advise required!
I am a .net developer and currently working in a new project of shopping cart.
I find so many articles but not one such good for showing from database SQL.
This is a new domain for me and i have no idea about this project but i have completed
a lot of task in my project.
What i need is client require a dynamic menu which he create from admin panel.
Like in categories admin add new category or add sub-menu to it and it shows on front-end to user.
I am saving the record in SQL database for new category but how i show it dynamically and
then navigate to new category URL also.

Sir please write one article for adding dynamic menu and sub menu from SQLdatabase and then navigate
also to url which is saved in database. OR give some suggest some other way.



Regards,
Atul Dhiman
"Necessity is the mother of Invention"

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sureshknkt7 on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Atuldhiman,

Go through following Link, which contains a article on Menu Creating Dynaminally...

The same article by Sheo Narayan sir,

http://www.dotnetfunda.com/articles/article1477-how-to-create-a-menu-in-aspnet-using-aspmenu-control.aspx


Thank You,
Suresh








Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25
Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Atuldhiman on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Suresh,

I am using the Sir Sheo Narayan Article, but i am still confused for one thing only,
please help me for that.
How to save url in database ?

Regards,
Atul

Regards,
Atul Dhiman
"Necessity is the mother of Invention"

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Atuldhiman on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Jayakumars,

Thank you for your reply but i need to dynamic Menu from sql table only.
Write here if you have solution related to this only. I don't need javascript or CSS menus
because they require using static entries of url's and menu names.

Regards,
Atul.

Regards,
Atul Dhiman
"Necessity is the mother of Invention"

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Atuldhiman on: 9/28/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Sir SheoNarayan ,

I was working on the project and taking a example from your article. Sir i am bit comfused on
one thing that how to use siteMap dynamically as you share in your article and how to save page
url in database dynamically.

wating for reply Sir.
Regards,
Atul

Regards,
Atul Dhiman
"Necessity is the mother of Invention"

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response