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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    241
    Thanks
    6
    Thanked 0 Times in 0 Posts

    javascript vs asp.net

    I am wanting to make my own website. I am really interested in both asp.net and javascript but really only have the time to learn one at the moment.

    I am somewhat leaning toward asp.net, but mainly because I keep hearing that it better supports different browsers.

    Can anybody clarify why this might be?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Javascript isn't a server side language. Javascript is used for client-side interaction.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Feb 2007
    Location
    Seattle
    Posts
    153
    Thanks
    5
    Thanked 9 Times in 9 Posts
    You could build a complete website in asp.net, the difficulty comes in setting it up on your server. It is much more complicated to implement than a simple html site, or even a site written in a similar server-side language like PHP. There is not yet the support and automation for implementing a site in asp.net that programs like Fantastico offer for popular PHP-based solutions.

    Javascript is fine for running small features on your site, but is not a good solution for an entire website. For one, users can disable javascript on their machines, so features written purely in javascript will be unavailable.

    Start with a simple CSS-based HTML site, add a few javascript features such as Lightbox2 or CurvyCorners, then research server-side creations thru PHP or asp.net. If you want to see what can be done immediately in a PHP site, visit the hosting company Siteground.com. They have a control panel featuring Fantastico, an automated installer that can have a complex site installed for you in literally seconds.

    Gary

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Depends on what you want to do. If you want interactivity, fancy things happening on ya site, then javascript's the way to go. If you want memberships, forums, emails etc then asp's the way to go. You'll eventually learn both anyway.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,462
    Thanks
    0
    Thanked 633 Times in 623 Posts
    If you use JScript as the language within ASP.NET then it is reasonably similar to the JavaScript/JScript that runs client side in web browsers/IE respectively.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What if the user turns off the vbscript (ASP).


  •  

    Posting Permissions

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