<link rel="stylesheet" type="text/css" href="dbnetsuite.css.ashx" /> <script language="JavaScript" src="dbnetsuite.js.ashx"></script>
<script> jQuery(document).ready( init ) function init() { var dbnetgrid1 = new DbNetGrid("dbnetgrid1"); with (dbnetgrid1) { connectionString = "SamplesDatabase" fromPart = "customers" selectModifier = "top 5" initialize() } var dbnetgrid2 = new DbNetGrid("dbnetgrid2"); with (dbnetgrid2) { connectionString = "SamplesDatabase" setColumnExpressions("Country") fromPart = "customers" selectModifier = "distinct" initialize() } } </script>
<table> <tr> <td> <fieldset> <legend>Select Top 5 Customers</legend> <div id="dbnetgrid1"></div> </td> </tr> </table> <table> <tr> <td> <fieldset> <legend>Select Distinct Country</legend> <div id="dbnetgrid2"></div> </fieldset> </td> </tr> </table>