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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:35:42+00:00 2026-05-13T07:35:42+00:00

I built an empty website on VS 2010. Using the toolbox I put a

  • 0

I built an empty website on VS 2010.
Using the toolbox I put a DataGridView on my default.aspx.
Then I configured the sql query that fills it from the DataSource.
I wanted to see the ADO code that is done under the covers.
But all there is the default.aspx file, and the default.aspx.cs:

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e) {}    
}

this is the aspx:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" 
        GridLines="None" ondatabound="GridView1_DataBound">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Title" ...

the web.config:

<configuration>
 <connectionStrings... 
 <system.web>
  <compilation debug="true" targetFramework="4.0"/>
 </system.web>
 <system.webServer>
  <modules runAllManagedModulesForAllRequests="true"/>
 </system.webServer>
</configuration>

Where did the .designer.cs file gone?
Or maybe the aspx markup is all there is?
And if so how?
And where is the other partial class definition (if I delete the word ‘partial’ VS won’t compile and says that there is another partial class definition) ?

  • 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-13T07:35:43+00:00Added an answer on May 13, 2026 at 7:35 am

    The other part of the class is generated from the markup (.aspx).

    If you want to see the code, a quick way is to first inject an error into the code generated by the markup, using something like <% error %>. After that, when you load the page it will report the error and give you a link you can click on to see the source code.

    However, from your example it looks like all the work is being done by the control, not the page itself.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, it looks like it works correctly as long as… May 16, 2026 at 5:00 pm
  • Editorial Team
    Editorial Team added an answer I know you've already solved this with a POST, but… May 16, 2026 at 5:00 pm
  • Editorial Team
    Editorial Team added an answer Magento Commerce has complex multi layered models (www.magentocommerce.com) which you… May 16, 2026 at 5:00 pm

Trending Tags

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

Top Members

Related Questions

I've built a UserRepository interface to communicate with my LINQ to SQL Data layer,
I have a website which draws white (empty) content/text on IE 7. However, as
Setup I have a website that draws RSS feeds and displays them on the
I have a form in my winforms app that acts as a built-in browser.
I'm currently running Visual Studio Team System 2010 RC and I'm trying to get
I have inherited a Web Application project (3 files per aspx page), along with
The website I'm working on has some fairly complicated routing structures and we're experiencing
I have a simple membership project and teh client wishes that urls be simple
I just found out about BuddyPress (a collection of plugins that convert a WordPress
Was I was previously messing with Silverlight and RIA, I was using a an

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.