Tutorials for c# web sites development (forms, NOT MVC)

nickCroat 111 Reputation points
2022-02-04T19:36:26.567+00:00

Hi,

I wish to change my programming language for websites from VB to C# (not MVC for now.

Can someone suggest me a good online course?
Possible video, but any other will be OK as long as it is free.

I found one excellent course on YouTube:
https://youtu.be/8_eMgS6UszY
But it is very basic but very helpful.
I hope a lot of you have an idea where to find good C# step by step or similar tutorials that can help.

Thank in advance.
Domagoj

Developer technologies C#
{count} votes

3 answers

Sort by: Most helpful
  1. AgaveJoe 30,126 Reputation points
    2022-02-04T20:47:40.057+00:00

    C# and VB share the same .NET libraries. The only difference is the C# syntax which is easily looked up in the C# programming guide. I moved to C# years ago and as I recall I became very comfortable with the C# syntax within a week of programming. It's not a giant learning curve if you understand programming basics. The type declaration, brackets, ending every line with a semicolon, and array [] are the toughest habits to establish when moving from VB.

    so I wish to switch most of my web projects like https://cesaricacroatia.com/ or https://kritikaz.com in fact over 50 of them to c#.

    I don't recommend converting working VB applications to C#. The only reason to update the language is if you plan to migrate the applications to ASP.NET Core; .NET 6.

    I think the best approach is simply starting with latest framework. Go through a few ASP.NET Core tutorials and learn C# along the way. Any new development should be in ASP.NET Core anyway.

    Tutorial: Create a Razor Pages web app with ASP.NET Core
    Get started with ASP.NET Core MVC
    Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8
    ASP.NET Core MVC with EF Core - tutorial series

    0 comments No comments

  2. AgaveJoe 30,126 Reputation points
    2022-02-05T12:49:13.017+00:00

    Which of these 4 tutorials you propose for a start?

    The first two links are beginning level tutorials. The second pair are more advanced and contains standard patterns and best practices. I recommend going through every tutorial. There are a lot of great coding nuggets.

    Since I am more comfortable with web forms why do you think I should switch to MVC? Do you think Microsoft will end support for web forms?

    Web Forms stops at .NET 4.8 and will only receive security updates. Keep in mind that VB has moved forward in .NET 5 and 6. Although not ASP.NET Core. You can create a VB console app for example. In my opinion, it does not make a lot of sense to learn C# in Web Forms. You already know Web Forms and Web Forms is the bottleneck in your learning path.

    I went to 160h of school for MVC couple of months ago and as far as I was able to understand the difference it only comes to almost nothing.

    That's an inaccurate observation for a Web Forms pro with 160 hours of MVC training.

    0 comments No comments

  3. Jose Zero 576 Reputation points
    2022-02-05T16:44:08.75+00:00

    @nickCroat , as you I also have some VB webform projects, they are running fine and have no plan to change anything for now, as far .Net Framework still exist until MS decides not use it on Windows OS.
    On the other hand for new projects, I´m being pushed to C#, so here a series of video tutorials that combined with your knowledge might help with your learning path
    C# Tutorial watch
    Webforms C# watch

    And vbnet_csharp_comparison.html

    Apart discussions about WebForms x MVC and "if your projects fits to", take a look at Blazor Server it is more close to WebForms way and perhaps make your C# learn a little more easy.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.