Results 1 to 5 of 5

Thread: [RESOLVED] aspx pages : dynamic rendering Vs Creating

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Resolved [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
    Vishal Marya, MCP .net 3.5
    My Site
    http://www.vstoolsgallery.com/
    http://visualstudiogallery.msdn.micr...b-f87a909b9266





    Please indicate what version of vb you use.
    Please mark your thread resolved using the Thread Tools above.
    -----------------------------------------

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    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

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  4. #4

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Re: aspx pages : dynamic rendering Vs Creating

    Quote Originally Posted by motil View Post
    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.
    Vishal Marya, MCP .net 3.5
    My Site
    http://www.vstoolsgallery.com/
    http://visualstudiogallery.msdn.micr...b-f87a909b9266





    Please indicate what version of vb you use.
    Please mark your thread resolved using the Thread Tools above.
    -----------------------------------------

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width