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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:02:22+00:00 2026-05-30T05:02:22+00:00

Ive been getting back into asp.net web forms and I had a question about

  • 0

Ive been getting back into asp.net web forms and I had a question about the controls.
When I add a control declaratively (ie by dragging and drop a control from the toolbox), for instance a button onto an aspx page, what I expected to occur was for a button object to be declared and instantiated in the designer.cs file
Instead all I can find is

protected global::System.Web.UI.WebControls.Button ButtonTest;

but nowhere can I find the code that created a new button object and assigns it to ButtonTest. Does anybody know where/when this occurs?

  • 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-30T05:02:23+00:00Added an answer on May 30, 2026 at 5:02 am

    It used to work along the lines you describe, back in .NET 1.1 days. The introduction of partial classes allowed that approach to be simplified, so you normally don’t have to directly interact with the generated code.

    If you’d like to see exactly what the framework is doing: the markup gets compiled into a partial class, which contains the declarations for the objects on the page, along with calls to constructors, etc.

    You can’t easily view the auto-generated code from Visual Studio. To see it, enable debugging for your project and look in:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\

    The source code for the compiled file should be in one of the subdirectories there.

    Even easier, if you create a small compilation error in your page, then try to view it in a browser, you should see a link at the bottom of the error page that lets you view the “compilation source.”

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

Sidebar

Related Questions

I've been getting an error recently while debugging an ASP.NET application in Visual Studio
A quick question of perhaps a more speculative nature. I've been getting heavy into
I'm just getting back into Java and I've been trying to figure out how
I've been getting into compiler creation. I've found some terrific beginner stuff and advanced
I've been getting into some assembly lately and its fun as it challenges everything
This question about unit tests sparked another thing that's been bothering me. I've gone
I've written an ASP.NET 2.0 web service which is consumed by a web application
Been a while since I've dealt with ASP.NET and this is the first time
I'm just getting back into C++ after a couple of years of doing a
Ive been trying to get an example Web Service working using SpringWS and Tomcat5.5

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.