Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
154818 Points
19853 Posts
Moderator
MVP
May 16, 2012 07:37 AM|LINK
Here's the correct syntax for the helper in VB:
@Helper MakeNote(content As String) @<div class="note" style="border: 1px solid black; width: 90%; padding: 5px; margin-left: 15px;"> <p> <strong>Note</strong> @content </p> </div> End Helper
Notice that the parameter is declared in a different way (content As String) in VB, compared to the C# way (string content).
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Converting C#.net to VB.net
May 16, 2012 07:37 AM|LINK
Here's the correct syntax for the helper in VB:
@Helper MakeNote(content As String) @<div class="note" style="border: 1px solid black; width: 90%; padding: 5px; margin-left: 15px;"> <p> <strong>Note</strong> @content </p> </div> End HelperNotice that the parameter is declared in a different way (content As String) in VB, compared to the C# way (string content).
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter