|
-
Sep 29th, 2010, 06:51 AM
#1
Thread Starter
Fanatic Member
[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
-
Sep 29th, 2010, 07:03 AM
#2
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
Last edited by motil; Sep 29th, 2010 at 08:14 AM.
Reason: typo :B
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Sep 29th, 2010, 07:49 AM
#3
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
-
Sep 29th, 2010, 08:03 AM
#4
Thread Starter
Fanatic Member
Re: aspx pages : dynamic rendering Vs Creating
 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.
-
Sep 29th, 2010, 08:08 AM
#5
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|