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/cs_templates_ddl_databound....

16 lines
677 B

<%@ Page Language="C#" %>
<%@ 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="C#" runat="server">
DataSet countriesDataSet = null;
public void Page_Load(object sender, EventArgs e)
{
OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("../App_Data/Northwind.mdb"));
myConn.Open();
OleDbCommand myComm = new OleDbCommand("SELECT DISTINCT ShipCountry FROM Orders ORDER BY ShipCountry ASC", myConn);