Name is not declared.

Results 1 to 2 of 2

Thread: Name is not declared.

  1. #1
    Join Date
    Dec 1969

    Default Name is not declared.

    I am creating my first .NET project and everything was going smoothly until I created a page (aspx) using Dreamweaver and added it to my project. After adding the file I added some code to the code behind page that fills a listbox on the page. When I build the project an error is displayed in the task list that says: <BR><BR>"Name &#039;lstBoxName&#039; is not declared"<BR><BR>On my other pages that I created using VS, that doesn&#039;t happen. Where do I have to declare controls?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Name is not declared.

    you declare the controls at the top of the class definition.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts