Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    afe
    afe is offline
    Banned
    Join Date
    Sep 2007
    Posts
    146
    Thanks
    43
    Thanked 0 Times in 0 Posts

    asp newbi/ changing things

    Hey everyone, I had a question, can you still have something sort of like php. When you need to change let's say for example a menu, and change it with out doing it manually on every single page with .asp? Also what good things are there with asp? Thanks

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Yes, you can do it by including or executing a page like: menu.asp:
    Code:
    Server.Execute "menu.asp"
    Or
    Code:
    <!--#include file="menu.asp"-->
    Well, if you don't know ASP but want to learn it, you might wanna try learning the new ASP which is ASP.NET. It's much more secured, faster, supports C# and VB.NET coding and has many other advantages.
    I've recently started learning ASP.NET and I really like it. It's very different from what I know in ASP but it has many advantages and it feels nice to be up to date at last (ASP 3.0 is very old now).

    Hope that helped.

  • #3
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Barr --

    At the notion of sounding "old school", Classic ASP isn't going anywhere. ASP.NET, while faster only when IIS has the opportunity to compile the page, is only better when you are looking into high volume websites. Classic ASP and PHP are still your best bet for low volume, database driven pages.

    Now I know that NikkiH and a couple others here will say that I am wrong, so I will state now that the above is my opinion, while still based on facts.

    ASP is not less secure than ASP.NET **IF** you know what you are doing. SQL Injection techniques are just as prevalent in ASP.NET as they are in ASP. You simply need to know how to code against them. ( Did I mention that you have to know what you are looking for and how to guard against it? )

    Simply put -- use what you know, learn what you don't, but at the same time, don't disregard the old school stuff if it does what you need it to do.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #4
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    What I said about ASP.NET wasn't my opinion but facts I've read in many articles. So, umm... That's only what I wanted to say.

  • #5
    afe
    afe is offline
    Banned
    Join Date
    Sep 2007
    Posts
    146
    Thanks
    43
    Thanked 0 Times in 0 Posts
    Ohh, ok.
    However, why would you need to be safe.
    And the code Barrman you gave me, does that also work with asp.net?

  • #6
    afe
    afe is offline
    Banned
    Join Date
    Sep 2007
    Posts
    146
    Thanks
    43
    Thanked 0 Times in 0 Posts
    Also, does css work in asp.net or aspx? Having css layouts?

  • #7
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    ASPX and ASP.Net are the same thing.

    CSS works in anything that runs HTML (ASP, .NET, PHP, HTML, JSP, Ruby, etc)

    Although Include directives work the same in .NET as they do in ASP, they are not called in code in the same way.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •