0
Reply

Scripts or .ashx is not working in content pages

Ask a question
Gowri A

Gowri A

10 years ago
706
1
Hello,
      1)  In my master page, head section is as follows..

<html xmlns="http://www.w3.org/1999/xhtml">
     
<head runat="server">
    <title></title>    
            <link href="Styles/autocomplete-jquery.autocomplete.css" rel="stylesheet" />
            <link href="Styles/MasterStyles.css" rel="stylesheet" />
            <script src="Scripts/autocomplete-jquery-1.6.2.min.js" type="text/javascript"></script>
            <script src="Scripts/autocomplete-jquery.autocomplete.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            handlerPath = 'AutoCompleteHandler.ashx';
            $('.searchBox').autocomplete(handlerPath);        
        });
    </script>
    <asp:ContentPlaceHolder ID="DatePickerScriptsAndStyles" runat="server" />
</head>
        2) In master page a textbox is there for search. When i type something in this search
 textbox Autocomplete is working fine for the 1st time i run the application
 3) I had some hyperlink in master page to go to some specific content page but when click on this hyperlink and when i type some in master page textbox autocomplete is not working plz help