Grow your CSS skills. Land your dream job.

ASP and HTML questions

  • # April 4, 2009 at 11:11 pm

    I’ve got a layout coded in html, but I need to turn it into ASP. Does anybody know if there’s a way to do something similar to PHP include except with ASP instead? And also how to create a piece of code that allows people to just change the content without having to touch the html codes in the background?

    # April 6, 2009 at 12:34 am

    Do you want to include a sidebar or header/footer in every page and just your content would change?

    If so check into Master Pages. You can create a layout with a content holder were you could put your content that changes from page to page would go.

    # April 6, 2009 at 4:35 am

    thanks, that’s pretty much what I was looking for.

    # April 7, 2009 at 12:49 am

    Glad I could help. I’m actually learning ASP right now. Still on the fence if I like it or not.

    # April 7, 2009 at 10:50 am

    I’m guessing your both talking about ASP.net rather than classic ASP, as there is no master pages in ASP.

    You can do the following in classic ASP, which is similar to php includes:

    <!–#include file="urfile.asp"–>

    box
    # April 7, 2009 at 10:56 am

    If you are talking about classic ASP and are just starting to learn it… why?? If you have a choice, learn PHP instead.

    # September 1, 2010 at 1:15 pm

    Make one master page and paste the code of the layout there,( things like header,menu, sidebar, footer) paste content place holder where you want content of diff. pages.( may be in between header and footer)

    Then include masterpage in diff. pages (which will contain the content like “about us”).

    # February 4, 2012 at 3:45 am

    Oh wow, it’s been a while. I’ve been so busy I haven’t been back here. But thanks guys. I never got around to finishing what I started when I asked this question (I was flooded with exams) but, thanks!

    @box I was supposed to create a site that would run a server that didn’t support PHP.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".