[RESOLVED] aspx pages : dynamic rendering Vs Creating
IF we look at the 4guysfromrolla web site (http://www.4guysfromrolla.com ) , each article corresponds
to aspx page with unique name.
I too have a similar requirement.
1. I have a fixed page design, content of which will be dynamically loaded. The dynamic content consists of text and images only ( no user interaction controls) . Each content when rendered is like a document and each document has a unique documentName.
2. The content can come from a database , html file , XML file or stream as the case may be.
3. Home page of the web site lists the hyper links which navigates to the particular aspx page ( the document which is rendered dynamically as mentioned above).
4. Because the format\layout is fixed and only the content changes , I don't want to create a separate aspx page for each document. Besides there are over 1000 such documents and will increase in future.
So I had created a page which receives document name in QueryString and renders the content for the particular document.
5. But the condition is that the document should open with unique name shown in the addressbar , like http://www.MyDocumentRepositary.com/Document1.aspx and it should also appear in google or any other serach results as "http://www.MyDocumentRepositary.com/Document1.aspx"
How do i achieve this.
Thanks
Re: aspx pages : dynamic rendering Vs Creating
I think that friendly url is what you looking for, but i never had the chance to work with this feature so let's wait for the expert :)
Re: aspx pages : dynamic rendering Vs Creating
Hey,
Am I right in thinking that this is what you are after?
http://msdn.microsoft.com/en-us/library/cc668201.aspx
This first appeared in the ASP.Net MVC Framework, but it has since been made available in ASP.Net 4.0 Web Forms.
Gary
Re: aspx pages : dynamic rendering Vs Creating
Quote:
Originally Posted by
motil
I think that friendly url is what you looking for, but i never had the change to work with this feature so let's wait for the expert :)
thanks motil
I didn't know what to search for. I searched for "friendly url asp.net"
I found 2 good articles
http://www.codeproject.com/KB/aspnet/URLMapping.aspx
http://weblogs.asp.net/scottgu/archi...h-asp-net.aspx
Thanks Gary
I still have to read that , but I think that is what I was looking for.
Re: aspx pages : dynamic rendering Vs Creating
The url rewriting article that you found in Scott's blog, is now replaced by Routing in ASP.Net 4.0:
http://weblogs.asp.net/scottgu/archi...-0-series.aspx
Gary