VWD Compiler Error

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
I've added a gridview to my page, gridview1.

Then in code behind ive added a couple of lines

gridview1.datasource = dtFeedback
gridview1.databind

The IDE finds gridview1 no problem and intellisense works fine.

When I try and run it it fails with build errors, none are shown in the normal window however when I go into the output window. It shows

error BC30451: Name 'GridView1' is not declared.
error BC30451: Name 'GridView1' is not declared

I've tried deleting the Gridview and recreating it but its still the same, i've exited VWD and tried again, still the same!

Thanks
 
This is happening in other projects now, with any controls. I add them to the page, I can see them fine in the code behind and intellisense works perfectly. But as soon as I build the project I get the 'textbox1' is not declared or 'label1' is not declared or whatever?

Has anyone come accross this, my VWD is messed up somehow!
 
Back
Top