Controls lost their connection between Code behind and .aspx page

Discussion in 'ASP .Net' started by Elmo Watson, Sep 15, 2006.

  1. Elmo Watson

    Elmo Watson Guest

    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?
     
    Elmo Watson, Sep 15, 2006
    #1
    1. Advertising

  2. Elmo Watson

    GMartin Guest

    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?
     
    GMartin, Sep 15, 2006
    #2
    1. Advertising

  3. Elmo Watson

    Elmo Watson Guest

    Yeah - but it won't successfully build and it won't successfully publish
    because of the problems.
    How can I fix it?



    "GMartin" <> wrote in message
    news:...
    > 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?

    >
     
    Elmo Watson, Sep 15, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ric
    Replies:
    2
    Views:
    724
  2. Paolo Pignatelli
    Replies:
    6
    Views:
    2,223
    Paolo Pignatelli
    Feb 21, 2005
  3. =?Utf-8?B?RGF2aWQgSm9uZXM=?=

    Include file for code behind vb page for .aspx page

    =?Utf-8?B?RGF2aWQgSm9uZXM=?=, May 23, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    5,502
    =?Utf-8?B?RGF2aWQgSm9uZXM=?=
    May 27, 2005
  4. keithb
    Replies:
    1
    Views:
    947
    Bruce Barker
    Mar 29, 2006
  5. A. Atienza

    Passing code/data from code-behind to ASPX page

    A. Atienza, Dec 8, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    337
    Eliyahu Goldin
    Dec 8, 2004
Loading...

Share This Page