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/Combobox/aspnet_detail_columns.aspx

16 lines
700 B

<%@ Register TagPrefix="obout" Namespace="OboutInc.Combobox" Assembly="obout_Combobox_Net" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script language="C#" runat="server">
void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("../App_Data/continent.mdb"));
myConn.Open();
OleDbCommand myComm;
myComm = new OleDbCommand("SELECT ContinentID, ContinentName FROM Continent ORDER BY ContinentName", myConn);
OleDbDataAdapter da = new OleDbDataAdapter(myComm);