", "answerCount": 3, "datePublished": "2016-10-02T11:34+00:00", "author": { "@type": "Person", "name": "kuldeep suman", "url": "https://www.c-sharpcorner.com/members/kuldeep-suman" } , "suggestedAnswer": [ { "@type": "Answer", "text": "http://www.aspsnippets.com/Articles/Implement-jQuery-AutoComplete-in-Content-Page-with-Master-Page-in-ASPNet.aspx", "upvoteCount": 0, "url": "https://www.c-sharpcorner.com/forums/auto-complete-text-box-not-working-in-mastersharp39s-content-page", "datePublished": "2016-10-02T11:37+00:00", "author": { "@type": "Person", "name": "Delpin Susai Raj", "url": "https://www.c-sharpcorner.com/members/delpin-susairaj2" } }, { "@type": "Answer", "text": "Hi, Are you getting any errors? If no please check whether you are getting response from the ajax page by debugging your script. I think the issue is with ajax posting. Just make sure you are getting response from ajax method.", "upvoteCount": 0, "url": "https://www.c-sharpcorner.com/forums/auto-complete-text-box-not-working-in-mastersharp39s-content-page", "datePublished": "2016-10-02T12:38+00:00", "author": { "@type": "Person", "name": "Midhun Tp", "url": "https://www.c-sharpcorner.com/members/midhun-tp" } }, { "@type": "Answer", "text": "i am using jquery", "upvoteCount": 0, "url": "https://www.c-sharpcorner.com/forums/auto-complete-text-box-not-working-in-mastersharp39s-content-page", "datePublished": "2016-10-02T11:46+00:00", "author": { "@type": "Person", "name": "kuldeep suman", "url": "https://www.c-sharpcorner.com/members/kuldeep-suman" } } ] } }
3
Answers

Auto Complete text box not working in Master's content page

&lt;head runat="server"&gt;<br /> &lt;title&gt;AutoComplete Text Box using jQuery in ASP.NET&lt;/title&gt;<br /> &lt;link href="jquery-ui.css" rel="stylesheet" type="text/css" /&gt;<br /> &lt;script src="jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;script src="jquery-ui.min.js" type="text/javascript"&gt;&lt;/script&gt;<br /> <br /> &lt;script type="text/javascript"&gt;<br /> $(document).ready(function() {<br /> SearchText();<br /> });<br /> function SearchText() {<br /> $("#txtEmpName").autocomplete({<br /> source: function(request, response) {<br /> $.ajax({<br /> type: "POST",<br /> contentType: "application/json; charset=utf-8",<br /> url: "Default.aspx/GetEmployeeName",<br /> data: "{'empName':'" + document.getElementById('txtEmpName').value + "'}",<br /> dataType: "json",<br /> success: function(data) {<br /> response(data.d);<br /> },<br /> error: function(result) {<br /> alert("No Match");<br /> }<br /> });<br /> }<br /> });<br /> }<br /> &lt;/script&gt;<br /><br />&lt;/head&gt;

Answers (3)