Click here to Skip to main content
15,121,564 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

Im newer to ASP.Net . I have an problem in loading search box in my ASP.Net(C#) project. Its not even shows errors like "Cannot load Script".... its just remains static. Im using "Master Page" in my project. This may cause???

My code is below... Please help me out

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<pre lang="xml"><link href="../../StyleSheets/SearchScript/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script src="../../StyleSheets/SearchScript/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../../StyleSheets/SearchScript/jquery.autocomplete.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function() {

<asp:Content ID="Content2" ContentPlaceHolderID="Adminmaster" Runat="Server">
<asp:TextBox ID="txt_Sup_name" runat="server"></asp:TextBox>
Updated 1-Jul-11 3:15am
J.Karthick 1-Jul-11 8:18am
I made breakpoints inside my "Handler.ashx". Its not even called. Please give me your suggesstions to call "Handler.ashx".
Its works properly while i use the above code in Simple webpage(Default.aspx)(Not in Master page)
DaveAuld 1-Jul-11 8:28am
Have you placed the jquery in the head section of the Master Page?
J.Karthick 1-Jul-11 9:13am
Yes i placed those Script reference...but no luck :(

hey use ajax to call handler(ashx) read response as json and use it as source.
use below link for autocomplete.[^]

for calling ajax using jquery refer below link:
ASP.NET Advanced Generic Handler ASHX[^]
Yahooooo....I found it :D :D

The problem is that "Handler.ashx" is not reachable to my page. Hence i move Handler.ashx to the same folder where my page found.

It works fine now.....

Thanks for your support !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900