.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Where are control declarations in ASP.NET 2008

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :ASP.Net

Hi All,

I'm migrating from Visual Studio 2005 to 2008 and noticed a bit of a difference in how ASP creates the control code definitions. In Visual Studio 2005 the object declaration could be seen in the code behind but in 2008 I can not find these declarations (I assume its done at runtime?)

Does anyone have any links to documentation on how the new architecture is creating these control declarations?

View Complete Post

More Related Resource Links

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008


I am having problems with a user control. I want my solution to have a separate project for holding my user controls.

The main project can get a reference to this user control project and can import this user control dll into my main project. 

Thanks in advance,

Dheeraj Mittal


Where is the Visual Studio 2008 Web Control Library Template


Does a project exist for grouping user controls? Visual Studio 2005 had this template but it does not appear to exist in 2008.

We will be creating several User Controls and would like them grouped accordingly.


Thanks in advance for any responses.

Graphs stop displaying in Report Viewer Control after upgrade to SSRS 2008 R2

We are seeing an issue where certain graphs and guages are not being displayed within a report rendered in the report viewer control after we upgraded from SSRS 2008 to SSRS 2008R2.  You can see the graphs and guages render and then disappear from the screen when two other graphs are rendered.  When I export the report to Excel or PDF then all of the graphs and guages are rendered properly. There are a total of 3 graphs and 2 guages on the report - when it completes the rendering process, you can only see two of the graphs displayed in the report viewer control - as I said before, you can see all 3 graphs and 2 guages when exporting to Excel or PDF.  Using Internet Explorer v8.  This problem manifest itself right after the upgrade. Has anyone seen a similar issue? 

SSRS 2008: Multiple Sub-Reports with conditional visibility in one List control


MainReport: a List containing two Sub-Reports. The data of the List only has two rows. Set the visibility of the sub-report based on the data.

SubReport1: a textbox showing "Sub Report 1"

SubReport2: a textbox showing "Sub Report 2"

I expect to see SubReport1 in Page 1 and SubReport2 in Page 2.

But I only see SubReport1 in Page 1 and Page 2 is a blank page.

These reports work in SSRS 2005, but not in SSRS 2008.



Report Definition:



<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner

SQL Server 2008 SP2 Windows 7 UAC Prompt Print Control


We recently installed SQL Reporting Services SP2.  When we run Report Manager (i.e http://myserver/reports) and attempt to print a report using the Print control we get UAC prompts for both Vista and Windows 7.  This may not be relevant but if we click Show Information About this Publishers Certificate under UAC prompt it indicates the certificate expired on Feb 22, 2009.  Were the correct CAB files for installing the print control included in SP2?

Most of our clients are running Windows 7/Internet Explorer 8 and are fully patched.  Logged on users are members of local administrators group and the UAC settings are set to default settings.

If we right click IE 8 icon and then "Run As Administrator" we don't get the prompt.  My question is can the UAC prompt somehow be disabled if IE is started without using the "Run As Adminstrator" option and without turning off UAC?


No combobox ajax control visible in Visual Studio 2008 web project


Greetings -

New user to Visual Studio 2008 - one of the reasons for upgrading from 2005 was because I wanted to use the AJAX Toolbox Control for combobox in my web forms. 

Have started a new project, have told it to use .net 3.5 for the project, but when I go to the ajax tooklkit in the toolbox panel there is no combobox.  Could someone please tell me why it isn't there?

Environment - Visual Studio 2008 SP1

Many thanks - OfficeWonk


Updating the AJAX Control Toolkit from VS 2005 to either VS 2008 or VS 2010


At work we've got a ASP.NET app written using VS 2005.  At the time I downloaded and installed the AJAX Control Toolkit from off of this website.  We've been using it ever since, in that website.

Now I'd like to upgrade that website to either VS 2008 or VS 2010, but I'm concerned about the AJAX Control Toolkit.  If memory serves, I think that it came with VS 2008, and I would assume it certainly is a part of VS 2010.  Do I have to remove any reference to the AJAX Control Toolkit, before trying to upgrade it?  Or after upgrading it?  How do I make it reference the AJAX Control Toolkit that's a part of VS 2008/VS 2010?

"Unable to Load Client Print Control" after applying CU8 to 2008 SP1


In our environment, users are unable to Install ActiveX controls themselves. Primarily, this is particularly true in our Citrix environment. Upon applying CU8 to our 2008 SP1 SQL Server that we use to run reports, I'm no longer able to manually register the rsclientprint.dll to register the rll's and ActiveX control for users. Is this a known issue? Is there a new method to acheiving this same task?

Due to the size of our citrix environment, manually installing the activeX control through internet explorer on every one of our Citrix servers is NOT an option.

Any assistance is GREATLY appreciated.

SQL 2008 R2 error on install 1053 The service did not respond to the start or control request in a t


SQL Express 2008 R2

I'm using Windows 7 64bit. During installation with all default settings I receive the above error. After completion I am unable to start the service using services management console, receiving the same error.

I've uninstalled SQL and deleted remaining program files with the same result. I cannot find any other relevant online resources.

Please advise.

how to use/control SQL 2008 express ?


Just installed 2008 express (along with Visual web developer 2010).

How to manage and use SQL Server ? There are no GUI tools (or instructions on command line use) that I can find. In "all programs" there is a "Sql Server" choice that gives Server config manager and server installation center; neither give me mentods for creating db's and tables.  


Using SourceSafe with SQL Server 2008 R2 as source control - how do you keep them in sync?


Currently there are two developers working on a VB.NET desktop application that accesses a number of SQL Server databases. We have recently added SQL Server script files (for stored procedures, tables, agent jobs, views and functions) to SourceSafe (VSS). This finally gives us a way to store sql source code with change tracking, centralized shared access, etc. - a vast improvement over the previous method of manually trying to keep track of all the code components of our database development activity. 

We have a "solution" defined in SQL Server that has three projects: right now we have one project for each of three databases that we are accessing. The projects were created as "SQL Server Scripts" so they have Connections, Queries and Miscellaneous folders. The Queries folders currently contain stored procedures used in each of the three databases. In all we have about 200 stored procedures. 

However, we have not yet figured out a bullet proof way to keep the source in VSS in sync with the code that SQl Server is actually storing and executing. If I open a stored procedure for edit by double-clicking the file shown in the Solution frame, it gives me the stored procedure in VSS. If I edit it and then click on EXECUTE to actually ALTER the procedure in SQL Server and then check-in the

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

In-Depth look at the GridView Control

In the last article we looked at few of the new controls available in Asp.net 2.0. We also talked about Grid View Control which has replaced the Asp.net 1.1 DataGrid control for good. In this article we will examine more features of the Grid View control. In this article we will see some of the common operations that can be performed using the GridView control. Apart from these operations there are many more functions that can be performed on the control and which we will see in the later articles

ASP.NET repeater control - databind with style

even used the inline editing features, which I at the time thought was the coolest way possible to write ASP.NET code ( I managed to write code to hide all other rows and only show the current one - the row being edited). With a nice looking EditTemplate it looked indeed very slick but it really turned into giant and hard to manage code behind files.

Creating Paging for a Repeater Control

A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Using TemplateFields in the GridView Control

The GridView is composed of a set of fields that indicate what properties from the DataSource are to be included in the rendered output along with how the data will be displayed. The simplest field type is the BoundField, which displays a data value as text. Other field types display the data using alternate HTML elements. The CheckBoxField, for example, renders as a checkbox whose checked state depends on the value of a specified data field; the ImageField renders an image whose image source is based upon a specified data field. Hyperlinks and buttons whose state depends on an underlying data field value can be rendered using the HyperLinkField and ButtonField field types.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend