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 7804929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:04:03+00:00 2026-06-02T02:04:03+00:00

related: MVC3 Razor using Html.BeginForm problem When I make an HTML form for MVC

  • 0

related: MVC3 Razor using Html.BeginForm problem

When I make an HTML form for MVC 3/VB with the Razor engine, I would expect to be able to do it like this:

@Using Html.BeginForm("Action", "Controller")
    <fieldset>
        @* Other form code and values *@
    </fieldset>
End Using

But if I do that I get “BC32035: Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement.” I need to add an @ character before the opening tag to avoid this error. Can someone explain why?

  • 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-02T02:04:04+00:00Added an answer on June 2, 2026 at 2:04 am

    When using Razor with C#, what you describe is possible, because parser can determine the transition from code to markup because of the explicit ‘<‘ characters in html is not a valid C# token. VB.NET supports inline XML directly in code, so the Razor parser cannot determine that you have transitioned back to markup, so you have to be more explicit.

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

Sidebar

Related Questions

This question relates to ASP.NET MVC3 using the Razor Engine. What I need to
Related post: Populating a select box in a form using related ID in MVC3
my web app is using MVC3 with razor If I am trying to read
I'm using MVC3 & EF4, running into a bit of a problem when trying
In ASP.NET MVC3 This is a regular actionlink at Razor view : <li>@Html.ActionLink(Home, Index,
I have an ASP.NET MVC 3 view using Razor and Knockout.js that is not
I am developing an ASP.NET MVC 3 application using C# and Razor. I have
I’m using MVC3 (with Razor Syntax). Here’s what I’m going for: part of my
I'm using MVC3 with EF (version 4, but not sure if 4.0,4.1,etc). I've been
I'm learning MVC 3 and i've got a problem with one thing. I have

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.