How to create a baisc CMS in ASP.NET

Discussion in 'ASP .Net' started by, May 21, 2006.

  1. Guest

    I would like to have this functionality to create a basic CMS in
    ASP.NET. What I would like is is all the page names (urls) and content
    be stored in the database. When a user clicks on a link in the website,
    (As there will be no page present physically in file system) all page
    not founds (404 errors) in IIS should be redirected to default.aspx and
    from there, I would like to look up the database and display the page's
    content. Thus I could have as many pages in the database making the
    system dynamic.Has anyone done this in .NET.Pls let me know
    , May 21, 2006
    1. Advertisements

  2. Tasos Vogiatzoglou, May 21, 2006
    1. Advertisements

  3. Darren Kopp Guest

    Check out url rewriting. As long as it has an ASPX extension, you
    should be able to handle the 404 and such through, before IIS.

    Darren Kopp
    Darren Kopp, May 21, 2006
  4. Rob Meade Guest

    "Darren Kopp" wrote ...

    > Check out url rewriting. As long as it has an ASPX extension, you
    > should be able to handle the 404 and such through, before IIS.

    Forgive me if I'm wrong - but doesn't the request hit IIS before .net?
    Therefore, wouldn't having a custom 404 (or other error messages) be handled
    more efficiently by letting IIS manage them (even if you change the custom
    error pages to your own code etc)?

    Again, if I'm wrong please ignore me :eek:)

    Rob Meade, May 21, 2006
  5. Darren Kopp Guest

    IIS will pass the request to the engine if the extension of the
    page you are requesting is set to do so (aspx is set to be passed to by default). this way the .NET framework can handle 404, 500,
    etc type errors (you can define these through the web.config). for
    this reason you can have pages that don't exist seem to return data
    (like mapping shoes.aspx to products.aspx?id=5).

    that i believe is what he is looking for, as he mentions "as the pages
    do not exist", thereby being dynamic, meaning an HTTP Handler through, though you are correct that you could handle this through IIS,
    as what would happen automatically, but doing so through will
    allow you to use the application_error event and so forth.

    hopefully that makes sense :S

    Darren Kopp
    Darren Kopp, May 22, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. raj mandadi
    raj mandadi
    Dec 22, 2003
  2. Ken Williams

    ActiveX with Visual Baisc .NET 2003?

    Ken Williams, Mar 6, 2004, in forum: HTML
    Dick O'Brien
    Mar 6, 2004
  3. Baisc One

    , Apr 24, 2007, in forum: Java
    Eric Sosman
    Apr 26, 2007
  4. Replies:
  5. jonefer

    GetCellValue for Visual Baisc?

    jonefer, May 25, 2007, in forum: ASP .Net Web Controls
    Manish Bafna
    May 25, 2007

Share This Page