Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...