VS 2005 Beta 1 w/ ASP.NET – level 100

One thing that is very important to know about ASP.NET development:  To get intellisense on web controls, you must have the .aspx file open.  Since the code-behind has changed to code-beside, your code file is not a full class but a partial class, so if you have a textbox in your aspx (txtInput), the variable doesn’t have to be declared in your code file.  You can just type txtInput.Text = “foo”; in your code file, BUT if you only have the code file open, you won’t get intellisense on the TextBox.  To get intellisense for web controls on your web form, open the aspx file.  This threw me for a bit until I figured out this quirk. 

1 comment

  1. Jonathan Bindel

    Jeffrey, I have no doubts that VS 2005 Beta 1 is filled with bugs, however I didn’t experience many and the ones I did weren’t anything huge. I just posted on my experience with the beta.

Comments are closed.