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

  • SEARCH
  • Home
  • 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 8007891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:58:18+00:00 2026-06-04T17:58:18+00:00

We have an asp.net custom control which is used in our webforms asp.net project.

  • 0

We have an asp.net custom control which is used in our webforms asp.net project. I renamed a control’s property and expected to get a compile time error in a place where this property is used as an attribute but it doesn’t happen. Why is it so?

  • 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-04T17:58:19+00:00Added an answer on June 4, 2026 at 5:58 pm

    ASP.NET markup isn’t actually schema-checked, at compile time or even at runtime. You’re perfectly within your rights to write any old tag soup you like – ASP.NET won’t complain unless you explicitly do something that doesn’t make sense.

     <asp:Label runat="server" fjsdkfj="sdjkfldskfls">Hello</asp:Label>
    

    Put the above on an aspx and you will get no complaint at compilation, nor even at runtime – you’ll just get

    <span fjsdkfj="sdjkfldskfls">Hello</span>
    

    send to the browser. However, do

    <asp:Label runat="server" fjsdkfj="sdjkfldskfls" Height="ohdear">Hello</asp:Label>
    

    and at runtime you’ll get a parser error, as ASP.NET attempts to convert ohdear into a height value.

    To find this second type of error earlier, you can use ASP.NET precompilation. To find the first category of errors, I know of no other way than testing – even ReSharper appears not to offer any useful inspection.

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

Sidebar

Related Questions

I have an ASP.NET project which has already some custom fields in it's web.config
I have a custom asp.net control which contains some checkBoxes. I know how to
I have a custom search control on my page (asp.net) which contains a textbox
I have created a simple Asp.Net custom control which automatically combines all the correct
So i have a ASP.NET 4 Custom Control called SafeClickButton which is designed to
I'm building an asp.net cutom control inside which I have two dropdownlists: companyIdSelection and
I have a custom Asp.net control as public class ImageControl : Panel { private
I have a custom asp.net server control to display images.What I need now is
I have an asp.net application which signs users in manually. The custom authentication procedure
simple question... Given I have an ASP.NET site, which uses a [custom] RoleProvider, Is

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.