473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

vs2005 not auto adding controls to code behind

hi,

i'm running visual studio 2005 working on asp.net projects. Suddenly
visual studio has stopped automatically adding controls to the
designer code behind. anyone know why or how to fix it? i can add them
manually but that is annoying.

Jul 12 '07 #1
4 1804
I'm not aware that it does...

Visual Studio 2003 added code to the code-behind that built the control in
the same file, where as VS2005 doesn't add it here, but to a cached file
located in the asp.net temporary folder.

Are you getting other errors to suggest this is a problem?
"Charlie Bear" <ch*****@contrapositive.tvwrote in message
news:11*********************@r34g2000hsd.googlegro ups.com...
hi,

i'm running visual studio 2005 working on asp.net projects. Suddenly
visual studio has stopped automatically adding controls to the
designer code behind. anyone know why or how to fix it? i can add them
manually but that is annoying.

Jul 12 '07 #2
On Jul 12, 6:36 am, "Daniel Bass"
<danREMOVEb...@blueCAPSbottle.comFIRSTwrote:
I'm not aware that it does...

Visual Studio 2003 added code to the code-behind that built the control in
the same file, where as VS2005 doesn't add it here, but to a cached file
located in the asp.net temporary folder.

Are you getting other errors to suggest this is a problem?

"Charlie Bear" <char...@contrapositive.tvwrote in message

news:11*********************@r34g2000hsd.googlegro ups.com...
hi,
i'm running visual studio 2005 working on asp.net projects. Suddenly
visual studio has stopped automatically adding controls to the
designer code behind. anyone know why or how to fix it? i can add them
manually but that is annoying.
Just a shot in the dark, but in Windows Forms programming, some
controls do not automatically generate a member in the code behind.
There is property on some controls (labels for example) called
"GenerateMember" and that must be set to true. You might try looking
for that.

Chris

Jul 12 '07 #3
thanks chris, no there isn't a generate member as far as i'm aware.

reagrding the earlier post in 2003 it put control definitions in the
code behind file when you looked at the page in design mode. in 2005
it puts them in a file called [pagename].designer.cs, when you are
looking at the page in design or html mode. this is what has stopped
working. i add controls to the page but they don't get added to the
designer page which means i have to add them by hand if i want to be
able to use them in my code behind file.

Jul 12 '07 #4
think i might have solved it. i deleted the designer file. then added
a new class file with the name of the deleted file. then i closed and
reopened the solution. then i changed one of the control names in
design mode. suddenly all the controls were added!

Jul 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
0
by: C Gatto | last post by:
Hello, In a VS2003 app I have an aspx page (default.aspx) with a PlaceHolder defined (phMain). In my aspx code-behind I am dynamically creating a reference to a web user control...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
1
by: Rich | last post by:
I have a solution that is in development under VS2003 and has been 'ported' to VS2005. The painful experience of running this newer version of VS revolves around one form. This form is very dense...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
2
by: Tim_Mac | last post by:
hi, i have VS2005 professional, and i would like to generate a complete documentation reference for all the classes in my web project. i would have thought this was as simple as a button or build...
0
by: Alan Silver | last post by:
Hello, I have been working on a site in VS2005, and have noticed that the autocomplete has stopped working for asp controls. If I type... <a in an .aspx file, then I get a list of possible...
0
by: John Olbert | last post by:
I have been given the task of finding ways to use legacy ActiveX controls in C# applications under Vs2005/Net2.0. At this time I am trying to use a number of ActiveX controls built with Visual...
3
by: Iluvatar | last post by:
Hi, last week our project upgraded from vs.net 2005 to vs.net 2008. Our project still uses framework 2.0, because the deployment servers are not 3.x ready yet. Everything so far while migrating...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.