Note that there are some explanatory texts on larger screens.

plurals
  1. POAutocomplete or filter from a list created by a SQL Command
    primarykey
    data
    text
    <p>How would I include a text box or a command that allows the user to begin typing two or 3 letters in a text box and the result autocomplete and display in the panel?</p> <p>I appreciate all of the help. I am having to include code to a project that uses many components that perform financials for a large university library. This may seem simple to some, but when I have used code that completes the autocomplete, other components log errors. So I am having to code around other funding/financial pages. I apologize if my questions seem to "demonstrate minimal understanding</p> <p>Here is my code:</p> <pre><code> &lt;%@ Page Title="" Language="C#" MasterPageFile="~main.master" %&gt; &lt;script runat="server"&gt; protected void btnAdd_Click(object sender, EventArgs e) { sqlBooks.Insert(); txtNewBook.Text = String.Empty; gvBooks.DataBind(); } &lt;/script&gt; &lt;asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server"&gt; &lt;div id="awindow" &gt; &lt;asp:Panel ID="Panel1" runat="server" CssClass="mainContent"&gt; &lt;div style="width: 100%; float: left"&gt; &lt;asp:Image ID="Image1" runat="server" ImageUrl=" " Width="100%"/&gt; &lt;asp:TextBox runat="server" style="margin-left:5px; float:left;" ID="txtNewTitle" /&gt; &lt;asp:ImageButton runat="server" ID="btnAddTitle" Height="17px" ToolTip="Add New Book" ImageUrl="~insert.png" OnClick="btnAd_Click"/&gt; &lt;/div&gt; &lt;asp:SqlDataSource runat="server" ID="sqlBookLibs" ConnectionString="&lt;%$ ConnectionStrings:dbbooks %&gt;" ProviderName="&lt;%$ ConnectionStrings:AllBooks.ProviderName %&gt;" SelectCommand="SELECT * FROM BookTitles ORDER BY Titles" InsertCommand="BookTitles_GetOrCreate" InsertCommandType="StoredProcedure"&gt; &lt;InsertParameters&gt; &lt;asp:ControlParameter ControlID="txtNewTitle" Name="titlename" /&gt; &lt;/InsertParameters&gt; &lt;/asp:SqlDataSource&gt; &lt;asp:GridView runat="server" ID="gvBooks" DataSourceID="sqlBookTitles" DataKeyNames="BookTitles" AutoGenerateColumns="false"&gt; &lt;Columns&gt; &lt;asp:HyperLinkField HeaderText="Book Name" DataNavigateUrlFormatString="~/BookTitles/Books.aspx?id={0}" DataNavigateUrlFields="PartnerID" DataTextField="BookName" /&gt; &lt;/Columns&gt; &lt;Columns&gt; &lt;asp:HyperLinkField HeaderText="Find Book Titles" DataNavigateUrlFields="" DataTextField="" /&gt; &lt;/Columns&gt; &lt;/asp:GridView&gt; &lt;/asp:Panel&gt; &lt;/div&gt; &lt;/asp:Content&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload