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

<%@ Register Src="aspnet_autosuggest.ascx" TagName="AutoSuggestControl" TagPrefix="uc1" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Page language="c#" Inherits="OboutInc.oboutAJAXPage" %>
<script language="C#" runat="server">
// This method loads the words from the database and creates and XML string
// The XML string will be used to add the options to the combobox
public string OnSuggestOptions(string sText)
{
string sResponse = "";
// Setting the connection
OleDbConnection oConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("../App_Data/A_Words.mdb"));
oConn.Open();