Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:55:45+00:00 2026-06-10T04:55:45+00:00

I am an ASP.NET MVC 3 noob learning by working my way thru the

  • 0

I am an ASP.NET MVC 3 noob learning by working my way thru the wrox book–but translating the code to VB because I work in a VB shop.

I am trying to translate this C# code into VB to generate a view:

@using (Html.BeginForm(“Search”, “Home”, FormMethod.Get)) {
    <input type=”text” name=”q” />
    <input type=”submit” value=”Search” />
}

It seems like a fairly simple case of just replacing the braces, but I get the following errors from the compiler and can’t figure out why.

@Using (Html.BeginForm("Search", "Home", FormMethod.Get))
      <input type="text" name="q" />            //   '>' expected.  
      <input type="submit" value="Search"/>     //   '>' expected.  
End Using

I’m sure this is a simple sytnax issue, but I don’t know the syntax yet. I’m also trying to understand HTML helpers and razor, so there is a lot of new stuff. Can someone explain!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:55:47+00:00Added an answer on June 10, 2026 at 4:55 am

    You need to mark the beginning of the html markup inside code blocks like inside Using with @ or with <text>.

    @ is for single line:

    @Using (Html.BeginForm("Search", "Home", FormMethod.Get))
          @<input type="text" name="q" /> 
          @<input type="submit" value="Search"/>
    End Using
    

    <text> is for multi line:

    @Using (Html.BeginForm("Search", "Home", FormMethod.Get))
          @<text>
              <input type="text" name="q" />           
              <input type="submit" value="Search"/>    
          </text>
    End Using
    

    For more info see: Combining text, markup, and code in code blocks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET MVC's Html.BeginForm() seems to work with jQuery validation plugin but the validation plugin
I'm starting a new ASP.NET MVC 2 project, but unfortunately I'm a noob dev.
I am an ASP.Net MVC noob. I cannot get checkboxes to render correctly i.e.
i'm totally noob to asp.net mvc and currently i'm writing an web app which
I'm very noob when it comes to ASP.NET MVC. I'm looking at the starter
ASP.NET MVC 3 can generate scaffold code for us(controllers and views). The generated views
Asp.net MVC provides lots of (and very useful) HtmlHelper extensions. But what if I
Stupid Monday morning basic/noob question... Is Page_Load generally called for an ASP.Net MVC app?
ASP.Net MVC 3. I found similar questions/answers, but none seem to fix this issue...
ASP.NET MVC noob here I was writing a quiz application where a user can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.