Weird build error

L

Lisa Calla

My aspnet web was working perfectly fine, then I added a second datalist to
a page. The datalist can be formatted in the designer and everything looks
fine. In the codefile, I can see the datalist after me. and intellesense
works for the control datalist2. Build\Rebuild all reports a failure, but
does not specify the errors. Running the page results in a message box
'There were build errors. Would you like to continue and run the last
successful build?'. There are zero errors shown on the error list. Weird,
right? AND, when I comment out lines in the codefile that reference the
datalist2, the web runs just fine. So we have
the control displays correctly in the designer
Intellesense shows the control's members and methods in the codefile
Rebuilding from the menu fails for some unspecified reason
Running the web fails
But all works correctly when the lines in the codefile referencing the
datalist (ie, datalist2.enabled = true, or anything else) are commented out.

Anyone less confused by this than me?
 
L

Lisa Calla

Viewing the compiler output shows the following error: (which again doesn't
make sense to me) 'DataList2' is not a member of 'EqsWeb'
EqsWeb.aspx is the name of the form. It's perfectly comfortable with
DataList1. DataList2 is clearly in the aspx source with the runat=server
attrib set and no obvious formatting errors (it also shows up just fine in
the designer). I'm just at a loss here.
 
Joined
Aug 17, 2007
Messages
1
Reaction score
0
I also have the same problem

Hi

I was using ASP.NET with vb as code base language. I designed 2 web pages and when I compiled it it was working fine. Then I added a link in that page which points a user to complete his registration. Without adding any information I compiled this page and it was successful too. But after i add database connectivity code and try to compile i got a message saying i have build errors but in debug mode it was written as 0 warning and 0 error. So i don't understand why it is showing build errors?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,132
Latest member
TeresaWcq1
Top