URL Remapping, IIS 7.0 Integrated Mode and DB driven Website.

Discussion in 'ASP.NET / ASP.NET Core' started by Endimion, Sep 14, 2008.

  1.  
  2. Hi,
    Wow [​IMG]
    You have something going there, don't give up.
    I haven't seen DB driven rewrites, personally it would worry me.
    I'm not sure about that however.
    Have you searched Dot Net Kicks?
    I submit a lot of UIRL Rewrite articles there.
    http://www.dotnetkicks.com/spy

    Use the Search box and you'll find a bunch of articles.

    Two other tools I have done for the community are these ASP.NET Code Search tools.
    Microsoft: http://search.live.com/macros/wisemx/aspnet/?FORM=OIJG
    Google: http://www.google.com/coop/cse?cx=009244845836111659857%3Albvxsjj8mho

    I'm ashamed to say the Google method above is better, typically.
    Salute,
    Mark
     
  3. Hi Mark.

    May I ask why it would worry you? This was my idea of having a really simple CMS built. If I'm doing something potentially wrong or seriously flawed, do tell me. I will be happilly to learn from the ones that know better.


    And by the way. I got it working on my Dev environment (with integrated IIS). No luck with DASP servers so far :)


    Thanks

    P.S. If I get it working on DASP I will write a really short tutorial about it :)
     
  4. Hi,
    My concern would be the timing if a round trip for records, any procedure, was needed.
    I wouldn't expect anything bad, only possibly sluggish. I'm interested none the less.
    Many of the CMS packages of course do this sort of thing to build content.
    Salute,
    Mark
     
  5. Hello

    Well, for as far as the "Pages" table, which holds the Page level data (Page Title, Virtual path, etc.) I thought that my best shot si to pop it into cache and refresh the cache whenever the structure of the site changes. About the content... Well One possibility I was thinking about, was writting it in a well structured XML files, One for each page. And When my Page__load event fires, It Would parse and load content into the page? Would that be better thanloading the SQL DB Result set?

    One thing about httpmodules. as I have written in my first post. Whenever it fires a 404 error, i see that request expects a Static File Handler. Do I need to add a script map for extensionless URLs in IIS 7.0 as well? As far as I was able to find out, this was only needed in IIS 6.0 and older versions? ma I wrong?

    Best regards.
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    I suggest you staying put on this. Microsoft just released IIS 7's rewriting module. We are testing it and if all goes well, expect it soon.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. YAHOOOOOOOOOOOOOOOOOOOOOOOO


    It works with a charm. There was actually nothing wrong with my httpmodule. The one and only reason above code did not perform was in the way my "Virtual URL's" were being constructed. And module never really got the right request to match it up against the datatable value. Fixed that and now it works like heaven


    THANK YOU.


    P.S. At least I won't lose all my hair before my baby daughter is born in November...... :D


    Endimion
     

Share This Page