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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:07:10+00:00 2026-05-10T22:07:10+00:00

Why don’t we get compile errors on inline code errors in asp.net mvc views

  • 0

Why don’t we get compile errors on inline code errors in asp.net mvc views f.eks

<h1><%= ViewData.Model.Title.Tostrig() %></h1> 

The code above will build just fine. Wrong spelling in webform controls will give you an error so I can’t see why this isn’t supported in asp.net mvc

EDIT: Luckily there seem to be a fix included in the first RC for asp.net mvc http://weblogs.asp.net/scottgu/archive/2008/12/19/asp-net-mvc-design-gallery-and-upcoming-view-improvements-with-the-asp-net-mvc-release-candidate.aspx

  • 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. 2026-05-10T22:07:10+00:00Added an answer on May 10, 2026 at 10:07 pm

    The ASPX files in both ASP.NET and ASP.NET MVC are not compiled from the Visual Studio IDE. This is often the cause for ‘false positives’ as you have pointed out.

    I often add the aspnet_compiler as a post build action to find those errors. You will add some time to your build process, but in exchange for the wait you should be able to spot these errors more easily.

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

Sidebar

Ask A Question

Stats

  • Questions 60k
  • Answers 60k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can definitely overlap views. Just add the transparent overlay… May 11, 2026 at 9:32 am
  • added an answer I'd recommend, in this order: Suck the whole of every… May 11, 2026 at 9:32 am
  • added an answer Your Person class should implement IEquatable May 11, 2026 at 9:32 am

Related Questions

Why don't we see C-like languages that allow for callables with polymorphism in the
Why don't databases automatically index tables based on query frequency? Do any tools exist
Why don't we get compile errors on inline code errors in asp.net mvc views
Why don't more mainstream statically typed languages support function/method overloading by return type? I
And why don't they change it? Edit: The reason ask is because I'm new
I think questions like this are the reason why I don't like working with
I don't know why this bothers me so much, but when I create websites,
I don't understand why one method would work and the other would throw a
I don't know why this method returns a blank string: - (NSString *)installedGitLocation {
I don't understand why IList implements IEnumerable taking in consideration that IList implements ICollection

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.