Forum Moderators: open
Here's the control code:
[2]<asp:DropDownList
DataSource="<%# dsTitles.DefaultView %>"
DataTextField="title_name"
DataValueField="emp_id_title"
ID="emp_id_title"
runat="server"
class="inputTxtbox"
Width="200">
</asp:DropDownList>[/2] Here's the database code:
[2]<MM:DataSet
id="dsTitles"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connEmpdir") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connEmpdir") %>'
CommandText='<%# "SELECT * FROM dbo.titles INNER JOIN employee ON title_id = emp_id_title ORDER BY title_name ASC" %>'
Debug="true"
></MM:DataSet>[/2]