473,320 Members | 1,879 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,320 software developers and data experts.

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\Marketing\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 1822
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\Marketing\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.googlegr oups.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\Marketing\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
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...
9
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
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...
3
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...
2
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...
3
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...
3
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...
7
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...
2
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.