Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2007, 02:09 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Studio Bug?

Ever since I upgraded to VS2005 SP1 I've experienced the problem where I'll add a control, or change the ID of a control in an ASPX page, but the associated codebehind doesn't learn about the change/addition, often until I restart Visual Studio.

Now all of a sudden, no matter what I do, Visual Studio will not believe me that a particular control exists on the page. I'v restarted the machine and Visual Studio several times.

Please HELP!

Aaron

 
Old February 19th, 2007, 12:20 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Small update:

It's definitely related to renaming a control. A textbox in this case. It gives me a bc30456 error: xxxx is not a member of yyyy. I changed the name back, restarted VS and I'm fine. Very weird though, and very frustrating.

Aaron

 
Old February 19th, 2007, 12:24 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

In VS2003 you can get the same problem if, on a web form, you add a control by typing in the physical tag and then switch to your code behind, you will not be able to access that control until you switch to the designer view and the control is rendered on the page. Not sure if this relates to your problem or not.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
 
Old February 19th, 2007, 12:41 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I remember that about VS2003. It was because adding a control to the design view of the page, also added a declaration in a hidden section of the codebehind. If you added it to the html you had to also manually add it to the declarations. It was one of the things I hated about 2003. Since 2005 did away with that model, and indeed most of the painful aspects of 2003, that doesn't apply in this case unfortunately. Thanks for responding though. :)

Aaron






Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio VS. Visual Web Developer expr Astrocloud BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 November 23rd, 2008 03:10 PM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Visual studio 6 or visual studio .NET chaitannyam Visual C++ 1 November 13th, 2005 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.