Link to home
Start Free TrialLog in
Avatar of Dee_Kaur
Dee_Kaur

asked on

i am using a database table to store the content for the webpages in varchar, varbinary etc. How do i use the menu control to display the content dynamically from the content table instead of a url?

I am trying to build an asp.net site but the content is saved in a table for each page. I need the menu control to retrieve the page from the table and display it in default.aspx.

What's the best way to go about doing it?
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

I assume you are referring to a database table?  If so, you need an identifier in your URL, so, it might be something like:

mysite.com?pageToLoad=1234

or

mysite.com?pageToLoad=pageTitle

However, ASP.NET 4 supports a new search engine friendly way to do the same, so that

mysite.com/page/pageTitle

works.  This is detailed here:  http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
and here
http://midnightprogrammer.net/post/URL-Routing-With-ASPNET-4-Web-Forms.aspx
Avatar of Dee_Kaur
Dee_Kaur

ASKER

I am using asp.net 3.5. will it work?
ASKER CERTIFIED SOLUTION
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial