Results 1 to 5 of 5

Thread: Sloppy code...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    I have been self-taught to build ASP pages and I'm not 100% sure my coding format is proper. The functionality is there which is why I'm not too worried about it, but I would like to learn the right way before I get too many bad habits. Does anyone know of any tutorials to show the correct formats ASP code should be written in? I would view source code downloaded from other sites but how do I know if that person is coding properly?

    Thanks for any help.
    If you think education is expensive, try ignorance.

  2. #2
    Guest
    For a good book you can go to http://www.wrox.com/

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    I have 3 over their books. Thanks. Most of my code has been learned from there, so I guess it's correct.

    My code looks different because I find it easier to read if I close ASP (%>) to create a table or something like that instead of writing Response.Write which is what the books use. What is the cleanest way to write code? It's a lot harder to find the tables and straight HTML if you use all ASP.
    If you think education is expensive, try ignorance.

  4. #4
    Guest
    The best way is using Response.Write. Thats what Microsoft are saying. But if i am using alot of
    HTML code i will stick to <% %> tags.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    That's kind of what I thought. That is one rule I don't always follow and I'm not sure if / when I will start doing it on a regular basis.
    If you think education is expensive, try ignorance.

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