You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OboutSuite/Grid/vb_templates_ddl_databound....

16 lines
710 B

<%@ Page Language="VB" %>
<%@ Register TagPrefix="obout" Namespace="Obout.Grid" Assembly="obout_Grid_NET" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script language="VB" runat="server">
Dim countriesDataSet As DataSet = Nothing
Sub Page_load(ByVal sender As Object, ByVal e As EventArgs)
Dim myConn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("../App_Data/Northwind.mdb"))
myConn.Open()
Dim myComm As OleDbCommand = New OleDbCommand("SELECT DISTINCT ShipCountry FROM Orders ORDER BY ShipCountry ASC", myConn)