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
751 B

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Register TagPrefix="obshow" Namespace="OboutInc.Show" Assembly="obout_Show_Net" %>
<script language="C#" runat="server">
protected void Page_Load(object sender, EventArgs e) {
OleDbConnection oleDBConnetion = new OleDbConnection();
oleDBConnetion.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("../App_Data/Products.mdb") + "; User Id=; Password=";
// gets the datasource for the emails list
OleDbCommand oleDBCommand = new OleDbCommand();
oleDBCommand.Connection = oleDBConnetion;
oleDBCommand.CommandText = "SELECT ProductName, ProductImage, ProductShortDescription, ProductPrice FROM Products where CategoryID = 1";