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.
16 lines
828 B
16 lines
828 B
<%@ Page Language="C#" ASPCOMPAT="TRUE" Debug="true" Inherits="OboutInc.oboutAJAXPage"%>
|
|
<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>
|
|
<%@ Import Namespace="System.Data.OleDb" %>
|
|
<script language="C#" runat="server">
|
|
void Page_Load(object sender, EventArgs e) {
|
|
if (!IsCallback)
|
|
{
|
|
obout_ASPTreeView_2_NET.Tree oTree = new obout_ASPTreeView_2_NET.Tree();
|
|
|
|
OleDbConnection oConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath("../App_Data/Products.mdb"));
|
|
oConn.Open();
|
|
|
|
// read the information from the database
|
|
string sQuery = "SELECT NodeID, ParentID, NodeHTML, NodeIcon, NodeLevel, Expanded FROM Category ORDER BY NodeLevel ASC";
|
|
OleDbCommand oCommand = new OleDbCommand(sQuery);
|