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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:46:46+00:00 2026-05-27T10:46:46+00:00

I create an asp.net page e.g. default.aspx. I then define a button… <asp:Button ID=btnNew

  • 0

I create an asp.net page e.g. default.aspx.

I then define a button…

<asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_OnClick" /> 

… however I do not define the handler for btnNew_OnClick in code.

ASP.Net will tell me this when I start the page and throw an exception.

Therefore, does it use reflection to check if the class that implements my page has this method ?

Is this efficient if it has to do this each time it parses a page’s markup?

  • 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-05-27T10:46:47+00:00Added an answer on May 27, 2026 at 10:46 am

    Not specifically. This happens when ASP.NET compiles your ASPX markup. ASPX markup is compiled the first time the page is hit on the fly, and stored somewhere in C:\WINDOWS\Microsoft.NET\Framework\vX\Temporary ASP.NET Files.

    The exception to that is if you precompile your pages using aspnet_compiler.exe. However, if you were to pre-compile it you’d see there error there, not when you hit the site.

    Is this efficient if it has to do this each time it parses a page’s markup?

    ASP.NET isn’t parsing the markup on every page view and post back; it’s only parsing it once when it’s compiled. It stored a hash of the page (usually called hash.web somewhere in Temporary ASP.NET Files) and compares the hashes. If the hash is different (the page changed) then it recompiles it. Here is an example of what that compiled code may look like:

    #line 58 "C:\X\UserControls\FilterControl.ascx"
    @__ctrl.Click -= new System.EventHandler(this.btnApply_Click);
    
    #line default
    #line hidden
    
    #line 58 "C:\X\UserControls\FilterControl.ascx"
    @__ctrl.Click += new System.EventHandler(this.btnApply_Click);
    

    This of course gets compiled into an executable assembly. Effectively, what the ASPX compiler is doing is compiling the server side markup into C# code, then compiler that into an assembly.

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

Sidebar

Related Questions

My ASP.NET page has some html: Default.aspx : <h2><asp:Localize meta:resourcekey=lblTitle Text=Welcome to so runat=server></h2>
I am using FckEditor in Create.aspx page in asp.net mvc application. Since I need
I have created a blank asp.net website consisting of a blank default.aspx page, its
I have a javascript function in the default.aspx page of my asp.net website project.
I create a asp.net page and test the code in debug mode step by
i have to create an asp.net page dynamically on runtime. It should work like
When you create an ASP.NET page with no controls and runs it, a view
I need to create a subscription for my SSRS reports in an asp.net page.
I'm creating a login page. I want to create ASP.NET TextBox controls that have
In my asp.net mvc page I create a link that renders as followed: http://localhost:3035/Formula/OverView?colorId=349405&paintCode=744&name=BRILLANT%20SILVER&formulaId=570230

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.