473,804 Members | 3,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controls lost their connection between Code behind and .aspx page

VS.Net 2005 professional:

When I built my website, I get a long list of errors (not in the error
window, but in the Output window) concerning the declaration of several
controls, like:

C:\vss\Marketin g\Main.aspx.vb( 2275,0): error BC30451: Name 'ckCRM' is not
declared. - it's only a handfull of controls - just 3 and all three are
checkboxes.

they point back to the code where I refer to the control - I checked to see
if I may have accidentally deleted the controls, but they're all there on
the ASPX page.

I only get this when I try to build the website, or publish the website
(which builds it first) - if I build the page, by itself, I get no errors. I
also - completely shut down VS.Net 2005 and deleted all the temporary
ASP.Net files. Also - when I run the site - the page, and all the supposedly
non-declared controls work just great - just as they're supposed to do.

I saw this in 1.1, but it shouldn't happen in 2.0....

What's up?
Sep 14 '06 #1
2 1845
The errors are erroneous. I get them too.

Elmo Watson wrote:
VS.Net 2005 professional:

When I built my website, I get a long list of errors (not in the error
window, but in the Output window) concerning the declaration of several
controls, like:

C:\vss\Marketin g\Main.aspx.vb( 2275,0): error BC30451: Name 'ckCRM' is not
declared. - it's only a handfull of controls - just 3 and all three are
checkboxes.

they point back to the code where I refer to the control - I checked to see
if I may have accidentally deleted the controls, but they're all there on
the ASPX page.

I only get this when I try to build the website, or publish the website
(which builds it first) - if I build the page, by itself, I get no errors. I
also - completely shut down VS.Net 2005 and deleted all the temporary
ASP.Net files. Also - when I run the site - the page, and all the supposedly
non-declared controls work just great - just as they're supposed to do.

I saw this in 1.1, but it shouldn't happen in 2.0....

What's up?
Sep 14 '06 #2
Yeah - but it won't successfully build and it won't successfully publish
because of the problems.
How can I fix it?

"GMartin" <gl************ @gmail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
The errors are erroneous. I get them too.

Elmo Watson wrote:
VS.Net 2005 professional:

When I built my website, I get a long list of errors (not in the error
window, but in the Output window) concerning the declaration of several
controls, like:

C:\vss\Marketin g\Main.aspx.vb( 2275,0): error BC30451: Name 'ckCRM' is
not
declared. - it's only a handfull of controls - just 3 and all three are
checkboxes.

they point back to the code where I refer to the control - I checked to
see
if I may have accidentally deleted the controls, but they're all there
on
the ASPX page.

I only get this when I try to build the website, or publish the website
(which builds it first) - if I build the page, by itself, I get no
errors. I
also - completely shut down VS.Net 2005 and deleted all the temporary
ASP.Net files. Also - when I run the site - the page, and all the
supposedly
non-declared controls work just great - just as they're supposed to do.

I saw this in 1.1, but it shouldn't happen in 2.0....

What's up?

Sep 15 '06 #3

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

Similar topics

3
2654
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event and this causes control B to be created, when this is done the VIEWSTATE is lost for CONTROL B. In the EVENT that causes CONTROL B to be created I have to set
9
2335
by: Frank Rizzo | last post by:
I've got a number of user controls on the web page. How can I pass some data to it? I don't see where the user control is instantiated in the page code-behind page. Thanks.
1
2142
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new to programming, but I am new to ASP.NET and Web application design in general... loved the concept of user controls and dynamically adding them to a page. So what I wound up with was an application that dynamically loads two user controls directly...
3
2615
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the database. To test, I've created two test aspx pages. Test1.aspx contains two buttons. The first button sets values in the session object and then navigates to Test2.aspx. Test2.aspx only displays the values in the session object. The second button...
2
3118
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a reference to the ascx which can contain a reference to a component. can an aspx file contain a reference to an ascx file which contains a reference to a code-behind file? ive tried to do this then load the user-control via LoadControl(), but i...
3
2795
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263
3
1937
by: Mr Newbie | last post by:
I am messing around with Web User Controls at present and (think) I have discovered the following. 1.) The identifier for the control in the code behind must match the ID for the control on the page. 2.) The identifier must be delcared with a minimum access of 'Protected' in order to work. If the above is indeed correct, then I have made the following assumptions
7
2887
by: Alan Silver | last post by:
Hello, I am just looking at VWD and seeing what needs doing to take an existing site I've written by hand and importing it into VWD. I've already discovered that I need to rename my code-behind files to match the .aspx file name so VWD will tie the two together, and I'm now wondering what to do about the location of the code-behind files. Is there any set convention for where the code-behind files live? I have been putting them in the...
2
6487
by: kens | last post by:
I've found some odd behavior in dynamically loaded user controls under ASP.NET 2.0. Specifically, if I load a control dynamically, in the "Page_Load" event, the code-behind for the user control is unable to access any of the web controls on the user control, as they are null. Specifically, I have this user control, TestControl.ascx: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestControl.ascx.cs" Inherits="TestControl" %>...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10569
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.