locked
Newbie question about Web forms and IIS RRS feed

  • Question

  • User1555230924 posted

    Hello. 

    I used to be a classic asp and visual basic programmer / sql server, etc. I'm new to Webforms, but it seems like it's 
    very similiar to Visual basic? Webforms that is and VB can be used as the language I know which is important
    because I am only doing this for fun and I absolutely do not want to learn C sharp and it's syntax. 
    May I ask where the Webforms in VB examples are located if any? 
    Also, do I need an instance of IIS to run the same and does it come with the latest version of .net? I downoaded
    Visual Studio.net not the core I believe and I wanted to make sure I have all I need. I've used older versions of IIS
    and understand it ok. Can I also use SQLserver express with the same webforms and webforms? 
    Thanks so much in advance. 
    Tim

    Sunday, July 21, 2019 5:21 PM

All replies

  • User1120430333 posted

    I used to be a classic asp and visual basic programmer / sql server, etc. I'm new to Webforms, but it seems like it's
    very similiar to Visual basic? Webforms that is and VB can be used as the language I know which is important
    because I am only doing this for fun and I absolutely do not want to learn C sharp and it's syntax.

    If you're going to go and learn anything, then IMHO you should learn ASP.NET MVC, becuase ASP.NET Webform solutions are becoming legacy solution types and new ASP.NET development is not centered around ASP.NET Webform solutions.

    https://www.mikesdotnetting.com/article/230/getting-started-with-asp-net-mvc-5-using-visual-basic

    May I ask where the Webforms in VB examples are located if any?

    Anything concerning VB.NET is few and far in between, because VB.NET is proprietary to MS and C# is an ISO and ECMA standard in the industry. It's best to take the C# code and go to an online site to convert C# code to VB.NET code. The online sites are free to use.

    Also, do I need an instance of IIS to run the same and does it come with the latest version of .net? I downoaded
    Visual Studio.net not the core I believe and I wanted to make sure I have all I need. I've used older versions of IIS
    and understand it ok. Can I also use SQLserver express with the same webforms and webforms?
    Thanks so much in advance.

    You should be using like one of the Visual Stuido Community Editions, which are free to use, like VS 2017 Community would be a good place to start. It comes with IIS Express that you will use until such time you want VS to use local IIS on your development machine, where you can configure a Visual Stuido project to stop using IIS Express and use local IIS at any them during the development, debug and testing phases. And you'll have to install local IIS on the machine and configure it to use the .NET Framework to use for ASP.NET solutions IIS is hosting.

    https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2017

    You can use MS SQL Server Express.

    This is a Web form VB.NET tutorial.

    https://www.tutorialspoint.com/vb.net/vb.net_web_programming

    Sunday, July 21, 2019 11:04 PM
  • User409696431 posted

    "because I am only doing this for fun and I absolutely do not want to learn C sharp and it's syntax.
    May I ask where the Webforms in VB examples are located if any? "

    To answer the question you actually asked - if you are doing this just for fun there is no reason not to use webforms and VB.Net - you can find webforms documentations in the msdn documentation: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/introduction-and-overview and https://docs.microsoft.com/en-us/aspnet/web-forms/index and you can find vb.net examples by googling for specific webforms control examples in vb.net.  E.g. "msdn vb.net gridview example" returns results including https://code.msdn.microsoft.com/VBASPNETGridView-19039173

    If you have downloaded Visual Studio Community 2017, and selected the correct items during install (including web and vb.net), it will install IIS express and that will automatically be the server used when you view your work in a browser.  You can also set up your site in IIS on your PC (assuming you've installed IIS on your PC), and use that instead of IIS express.

    To get started you can create a sample webforms site in VS 2017 by using "File -> New -> Project" and select "VB -> Web > Previous Versions" and select "Asp.Net Webforms Site"

    As for Webforms being like classic ASP - well, no, not really.

    Monday, July 22, 2019 1:46 AM