ASP.NET from Scratch : Lesson 1
videos

ASP.NET from Scratch: Lesson 1

Tutorial Details
  • Length : 54 minutes
  • Difficulty: Intermediate
This entry is part 1 of 10 in the ASP.NET from Scratch Session
Next »

Nettuts+ is primarily a PHP haven; however, I’m sure we can all agree that there are many fantastic, and technically more powerful languages and frameworks at our disposal. Jeremy McPeak, author of Professional AJAX, and Beginning JavaScript: 4th Edition, will teach you how to build ASP.NET applications from scratch over the course of the next several video tutorials. Enjoy!


Screencast


Other Viewing Options

Thank you, Screencast.com!


Screencast.com

…for providing the hosting for these video tutorials.


Jeremy McPeak is jwmcpeak on Codecanyon
Tags: Videos
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.ralphlauren1968.com/ ralph lauren

    Good job, and well thought out.
    Keep posting stuff like this i really like it
    Great articles & Nice a site….

  • David Swift

    Great..thanks for this!
    lose belly fat

  • Budi Erwanto

    awesome tutorial

    but

    Can somebody help me ??

    i already try this tutorial buat there was an error :

    1. port cannot be parsed, so i try to use 25 as the port ( is this the default port ?) and then this error doesn’t ocure again

    2. after that the host name cannot be blank so i input my localhost name. done

    3. then this error pop up Service not available, closing transmission channel. The server response was: Cannot connect to SMTP server 114.79.33.135 (114.79.33.135:25), connect error 10061

    anyone can enlighten me ?

    i’m using visual studio team suite 2008, os win 7.

    • http://www.nathanielwealth.com Nathaniel Wealth

      Hi Budi,

      Are you sure that is the correct information for your SMTP server? Although the standard is 25, your server may be configured differently. The localhost value wouldn’t work unless you’re running an SMTP server from the same machine.

      I would suggest doing what the author of this tutorial did, create an email address with an email provider that gives you the required information (the server’s address, i.e. smtp.gmail.com and the required port, which I believe for Google is 465 or 587).

      Best of luck,
      Nathaniel Wealth

      • Yoosaf Abdulla

        Hi Nathaniel/Budi,

        The password attribute should not be provided with your general password IF you have enabled the 2 step verification process in your gmail account. In that case you have to generate a application specific password by going into your Gmail account setting. use the generated password and your mail will be sent.

        Thanks,
        Yoosaf

  • http://frugalcoder.us/ Michael J. Ryan

    Would be a nice idea to backtrack and add links to other articles in this series from the first article… even previous/next would be nice as well.

    • http://www.jeffrey-way.com Jeffrey Way

      Done :)

  • mark

    This is better than going school :)
    Thanks a lot ioi

  • Ciwan

    Hi

    Can someone PLEASE help me.

    at 51:21 the Web Config XML file on mine looks very different to the one he has :( I am using Visual Studio 2010. There is no ..etc

    Also when I write the <syst … IntelliSense doesn't work < which means something is wrong but I don't know what !

    Perhaps it is where I am putting the line ! but since it looks different I don't know where to put it.

    Please Help.

    • http://www.nathanielwealth.com Nathaniel Wealth

      Hi Ciwan,

      They did changes with the way new projects are created in 2010 editions of Visual Studio. Also, if you didn’t create a “blank” web application, you may have additional files/folders/settings here and there that could potentially confuse you.

      In regards to your IntelliSense, does it work elsewhere? If so, you may have added a schema value to the tag that you don’t need, schema’s help IntelliSense identify what to show, but in this case you don’t need that because it’s already aware of it in Visual Studio. If there’s an attribute in the tag, remove it. Nothing needs to be in there for this tutorial.

      Best of luck,
      Nathaniel Wealth

      • Ciwan

        Thanks Nathaniel That Worked.

        However I still can’t send Emails. The Tutorial doesn’t mention where I get that SMTP info from !!

        After researching for 2 days .. I have found out that the info can be obtained from my ISP (Virgin Media). Now I have the info, but still I can’t send the email ! I get an error :( Smtp Exception !!

        Will Keep Trying I guess :(

  • http://www.nathanielwealth.com Nathaniel Wealth

    Hi Ciwan,

    Sorry I can’t help you further, it seems as though the SMTP information from your ISP is unavailable. I do recommend you trying with an external email provider however, such as GMail. If you look a few posts above ours here, you’ll see I responded to another person who has what could be the same issue you’re having. See if that helps.

    All the best,
    Nathaniel Wealth

  • Eldar

    Hi, its a nice tutorial but i also got an error.
    I watched your tut and made all like you and got an error Smtp Exception.
    I downloaded your source code and have create a gmail acc then ive insert “port” “host” “User” and “pass” from my new gmail account.
    and again i got an error

    Is it possible that you create an example for gmail ?

  • phemie Bold

    Nice tutorial, but unfortunately my mail wont be sent…..it brings up the exception message; failure sending message. I understand windows 7 dont come with smtp server. could that be responsible? even after downloading free smtp server, same error still occurs so am confused..someone help please.

  • http://www.entdyn.com Korky Kathman

    This is a terrific start! I did wonder, however, why you chose the older Visual Web Developer Express 2008 when the 2010 version is available. In fact, I had a hard time even locating the 2008 versions. I am assuming this won’t make any difference.

    That http://www.microsoft.com/express now forces 2010 downloads.

    Cheers!

  • http://www.johnsplayfield.com John Kamuchau

    Very useful tut . Definitely helped me navigate from PHP to ASP.NET

  • Liz

    Great tutorial! Easy to understand and follow. I haven’t actually tried it myself so i may be returing to this section if i have any issues. Look forward to viewing the rest of the lessions. Can’t wait for more asp.net tutorials in the future!!!!

  • http://www.adevtus.com adevtus

    Nice tut but Windows XP ? That’s lame!

  • http://mokshasolutions.com Moksha

    dotnet framework is far more powerful then compare to php, its nice to see some asp.net mvc tutorial after a long gap.

    thanks

  • http://? Saar Limanovich

    It’s a great tutorial but I have one question:
    I have already started my project (building my site) on WEB FORM USING MASTER PAGE.
    Now, I already used JavaScript for my for some nice features, and mainly for my Sign Up page.
    I used the javascript in order to check that the sign up form is valid by checking stuff like:
    Repet type of password is correct, if the mail addres the client entered is correct(one @ for example), UserName entered is valid and such.
    So after the form is checked by the javascript, and being confirmed that it’s valid for the sending the data to the server, I want the form to be sent to the server.
    How do I call the ASP.NET function through the javascript?
    Thanks for helping in an advens!
    And again, a great tutorial! moving on to the next episodes!

  • http://? Saar Limanovich

    I watched the tutorial again and just one question:
    The email sending is not workin and is says to me:
    “Mission connection failed because the connected party did not properly respond after a period of time, or creating a connection failed because connected host response failed *****:****

    Description: untreated exception occurred during the execution of the current web request. Please review the stack trace element for more information about the error and where it originated in the code.

    Exception Details: System.Net.Sockets.SocketException: Connection attempt failed because the connected party did not properly respond after a period of time, or creating a connection failed because connected host response failed*****:****

    Source Error:

    Row 27: email.To.Add (new MailAddress (“theaviator.com @ gmail.com”, “The Aviator stuff”));
    Line 28: SmtpClient server = new SmtpClient ();
    Row 29: server.Send (email);<—THIS IS THE PROBLEM
    Row 30:
    Row 31:}
    "
    It says that the detail are not correct….What details should i insert into the the web.config?

  • Elia

    Hi,

    Thanks for the tutorial. Great stuff and I really need it.

    Can’t get the mail to work either. I try..

    But then I am told Line 20: MailMessage email = new MailMessage() ‘s specified string is not in the form.

    Any help would be appreciated. I want to move on with the lessons as fast as possible. Thank you.

    • Elia

      Scratch the above. Now having time out issues. Will figure it out.

  • http://alexrodrigues.co.uk/ Alex Rodrigues

    Hey. I really enjoyed this video!
    One thing though, with the 2010 when i select a new web template thing.
    at the top of each file i get this:

    Which seems to apply some sort of extra elements to my page, but when i try to delete them, my site spits an error.

    I wan’t to delete them to add my own header, as they add navigation links and stuff. I tried to find the files so i could edit them, but they don’t seem to be there. maybe i’m missing something. Thanks

  • mcbeav

    Where can i find the server settings such as the PORT, HOST, USERNAME, and PASSWORD, when settings up the email form. I can’t seem to find any information on it, and I am having a hard time. I can’t continue the lesson because much of it is not working without those settings. Can anyone please help?

    Thanks for the tutorial, it is good stuff so far, just wish it explained the settings and where to find them.

  • http://www.dailyrazor.com Tensiond

    Anyone know how to deploy MVC on http://www.dailyrazor.com servers?

  • Yoosaf Abdulla

    This is a great start. I really appreciate the way you describe each progress in the tutorial. I will be following your tutorial very effectively.

  • Ryan Lacey

    Hi Jeremy,

    I couldn’t get the form to submit properly. At first I had the Ssl error which I fixed by enabling Ssl.

    Now when I submit the form, it times out after around a minute. No errors though.
    Any idea why it’s not working?

  • Viji

    Hi,

    I want to learn C#. I read that you recommend “Microsoft Visual C# 2010 Step by Step”.But I could find onlyy has “Microsoft Visual C# 2008 Step by Step” at my nearby library.

    Do you know how much the book differs in each other?

    I want to join the .net working force later this year after a very long break in my IT career.

    Your advice will help.

    Thanks

  • Meh

    I don’t know. More than twenty minutes of listening to talking and not getting into actually writing any code. I feel like every .Net tutorial on Tuts+ is like this. Is it the nature of the framework that I need to be front-loaded with a boring 30 min lecture every time I learn something new???