|
DbNetCombo |
Top Previous Next |
|
DbNetCombo is a browser based combo component that can be populated from the database. It can be implemented as either a client-side object or a server-control.
Example client-side implementation code
<script>
jQuery(document).ready( init )
function init()
{
var dbnetcombo1 = new DbNetCombo("dbnetcombo1");
with (dbnetcombo1)
{
connectionString = "SamplesDatabase"
addEmptyOption = true
emptyOptionText = "Please select a customer ...";
sql = "select customerid, companyname from customers order by companyname"
initialize()
}
}
</script>
Example server-side implementation code <DNL:DbNetCombo id="DbNetCombo1" runat="server" AddEmptyOption = "true" EmptyOptionText = "Please select a customer ..." ConnectionString = "SamplesDatabase" Sql = "select customerid, companyname from customers order by companyname" > </DNL:DbNetCombo> |