Don't depend on intellisense

Posted Sunday, January 22, 2006 7:22 PM by Jean-Paul Smit

Recently I was working with a FormView control which contains several textboxes and a dropdownlist.

I wanted to use databinding to be able to easily insert new entries in a database, but I couldn' figure out how to databind the dropdownlist.

In an example I read about the "selectedValue" property but intellisense didn't show that one.

<asp:DropDownList selectedValue='<%# Bind("CategoryId") %>' ID="ddNewsCategory" runat="server" DataSourceID="odsCategory" DataTextField="Title" DataValueField="CategoryId" />

I tried it anyway and it worked! :-)

When I tried to submit the bug in Visual Studio 2005 professional I found out that someone else already submitted the bug in november 2004 (that was in an express edition) !

Filed under:

Comments

# re: Don't depend on intellisense

Sunday, January 22, 2006 2:19 PM by Ramon Smits

that's because it's a dhtml property and not the property of the asp.net control.

# re: Don't depend on intellisense

Monday, January 23, 2006 1:40 AM by Nathan Pledger

It also doesn't know some straight XHTML, eg. blockquote