About

SubSonic is a .net open source project developed by Rob Conery and a core team of developers including Eric Kemp, Scott Watermasysk, Jon Galloway, Phil Haack, and Gavin Joyce. The current stable release is version 2.0.3. Nightly builds are available in our SVN respository.

Tags

DropDown

A simple, DB-Powered drop down

DropDown is a simple dropdown list that is loaded for you. One of the simplest things to do! If you want a select list of categories, you simply use:
<subsonic:DropDown tableName="Categories" id=elThing runat=server>

With this command SubSonic will query ONLY TWO FIELDS in the Categories table - the primary key and the field in ordinal position 1 (which by our convention should be the descriptor). If you don't like that, you can override what we think and specify "textField=thisOtherColumnName". The point is we don't "SELECT *".

You can also do these things:
Override the prompt text: prompText="--Hi there!--". Our default is "--Please Select--"
Disable a prompt: showPrompt="False". Default is True.

Subscribe