locked
Please for the love of god where are the vb razor examples and downloads? I can't find them.. :-) RRS feed

  • Question

  • User1555230924 posted

    Hi.. 
    I'm wanting to learn to use VB with Razor pages. I really only do this as a hobby, although I would be glad to get paid if my 
    services were ever wanted, but I can't for the life of me find really but one little page about razor and VB and no other files
    or examples.. Can someone please point me in the right direction? Are there any good books about database and n-tier dev
    with VB and razor? MVC with VB and razor? 
    Thanks in advance. 

    Tim

    Friday, July 12, 2019 1:25 AM

Answers

  • User288213138 posted

    Hi Tim,

    You can refer to this link that talks about using Visual Basic to build the Basic knowledge of ASP.NET MVC 5 Web application

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


    And here a demo about create a basic mvc project with unit tests(Visual basic).

    https://docs.microsoft.com/en-us/previous-versions/aspnet/dd410597(v=vs.100)


    Best Regard,
    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 12, 2019 3:30 AM
  • User-821857111 posted

    I'm wanting to learn to use VB with Razor pages.
    Are you talking about Razor Pages on .NET Core, or the ASP.NET Web Pages framework? If the latter, there are some limited examples: https://docs.microsoft.com/en-us/aspnet/web-pages/overview/getting-started/introducing-razor-syntax-vb. My experience of using VB in ASP.NET Web Pages is that VS provides buggy support in terms of formatting the code. It would go all over the place at times, but VB works. Having said that, Web Pages is an old technology. It's had no significant new features since V2 in abut 2012.

    VB is not supported in Razor Pages. There don't seem to be any plans to officially change this: https://github.com/aspnet/AspNetCore/issues/2738

    I'm responsible for the MVC 5 VB translations that are linked to in the previous reply. They don't get much traffic, despite being linked to from the C# version that forms part of the official MS documentation. As an experiment, I added an extra tutorial to the series, and published both a VB and a C# version. The C# version gets 20 times the traffic that the VB version gets. I suspect that the MS team found that their previous VB tutorials get very little traffic, making it very difficult to justify the investment in time to create an maintain any others. That also seems to be behind the decision not to bother with VB support in ASP.NET Core.

    No one produced a Web Pages book in VB. And you wouldn't want to use Web Pages for n-tier applications.

    Can someone please point me in the right direction?
    Yes. Learn C#. If you want to learn web development, you will need to learn JavaScript at some point. It's syntax is very similar to C#. And learn Razor Pages rather than ASP.NET Web Pages.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 13, 2019 7:27 PM

All replies

  • User288213138 posted

    Hi Tim,

    You can refer to this link that talks about using Visual Basic to build the Basic knowledge of ASP.NET MVC 5 Web application

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


    And here a demo about create a basic mvc project with unit tests(Visual basic).

    https://docs.microsoft.com/en-us/previous-versions/aspnet/dd410597(v=vs.100)


    Best Regard,
    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 12, 2019 3:30 AM
  • User1555230924 posted
    Sam. Thank you kind sir .
    Saturday, July 13, 2019 6:48 PM
  • User-821857111 posted

    I'm wanting to learn to use VB with Razor pages.
    Are you talking about Razor Pages on .NET Core, or the ASP.NET Web Pages framework? If the latter, there are some limited examples: https://docs.microsoft.com/en-us/aspnet/web-pages/overview/getting-started/introducing-razor-syntax-vb. My experience of using VB in ASP.NET Web Pages is that VS provides buggy support in terms of formatting the code. It would go all over the place at times, but VB works. Having said that, Web Pages is an old technology. It's had no significant new features since V2 in abut 2012.

    VB is not supported in Razor Pages. There don't seem to be any plans to officially change this: https://github.com/aspnet/AspNetCore/issues/2738

    I'm responsible for the MVC 5 VB translations that are linked to in the previous reply. They don't get much traffic, despite being linked to from the C# version that forms part of the official MS documentation. As an experiment, I added an extra tutorial to the series, and published both a VB and a C# version. The C# version gets 20 times the traffic that the VB version gets. I suspect that the MS team found that their previous VB tutorials get very little traffic, making it very difficult to justify the investment in time to create an maintain any others. That also seems to be behind the decision not to bother with VB support in ASP.NET Core.

    No one produced a Web Pages book in VB. And you wouldn't want to use Web Pages for n-tier applications.

    Can someone please point me in the right direction?
    Yes. Learn C#. If you want to learn web development, you will need to learn JavaScript at some point. It's syntax is very similar to C#. And learn Razor Pages rather than ASP.NET Web Pages.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 13, 2019 7:27 PM
  • User1555230924 posted

    Thanks so much. I'm only basically doing this for a hobby, so I will probably 
    just learn Webforms then where I know I can use VB and I'm assuming 
    there are more examples. I've never really understood why MS quit 
    or basically quit supporting VB scripting and ASP.Net. There were
    loads of VB programmers back in the day when I worked with the same
    until VB6 and after than it's become way too complicated. I might have to 
    go with another IDE and environment such as Xojo just to make it so much 
    easier. 
    Thanks again. I really appreciate it. 
    Tim

    Sunday, July 21, 2019 5:26 PM
  • User1555230924 posted

    Thank you so much. I really appreciate your help. 

    Regards

    Tim

    Sunday, July 21, 2019 5:27 PM