I have implemented auto complete functionality in my ASP.NET webforms application
This functionality is perfectly working fine on my development machine when run from VS 2010.
I published the application and run it on IIS , but now the autocomplete functionality is not working , I also tried it with web service ,it works on local machine but not on IIS , please note that I have checked and placed all the missing files and folders
which published folder didn't generated , I request your help
This might be a problem with the relative path reference to jason method "Demo.aspx/getdata", you can try with Firebug or any similar console to check if the ajax request is getting fired to the right resource.
Can you try changing url to url:"/Demo.aspx/getdata" and see if it works.?. Coz while you deploy in IIS your path might have changed.
Use below script paths for CDN use, jquery from CDN: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> jquery-ui from CDN: <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
change the protocol if u use https, and change the version number depending on ur requirements
check this site for versions hosted in CDN.
None
0 Points
4 Posts
IIS deployed version not running auto complete functionality
Jul 23, 2013 03:49 AM|LearnerMVC|LINK
Hi,
I have implemented auto complete functionality in my ASP.NET webforms application
This functionality is perfectly working fine on my development machine when run from VS 2010.
I published the application and run it on IIS , but now the autocomplete functionality is not working , I also tried it with web service ,it works on local machine but not on IIS , please note that I have checked and placed all the missing files and folders which published folder didn't generated , I request your help
Member
520 Points
217 Posts
Re: IIS deployed version not running auto complete functionality
Jul 23, 2013 04:06 AM|romy.thomas|LINK
Hi,
This might be a problem with the relative path reference to jason method "Demo.aspx/getdata", you can try with Firebug or any similar console to check if the ajax request is getting fired to the right resource.
Can you try changing url to url: "/Demo.aspx/getdata" and see if it works.?. Coz while you deploy in IIS your path might have changed.
Thanks,
None
0 Points
4 Posts
Re: IIS deployed version not running auto complete functionality
Jul 23, 2013 04:36 AM|LearnerMVC|LINK
Thr Fire bug says theat autocomplete is not a function.
I tried /Demo.aspx/getdata
The Jquery file is present at rootFolder/Scripts/jquery-1.10 in server file system
All-Star
15186 Points
3888 Posts
Re: IIS deployed version not running auto complete functionality
Jul 23, 2013 04:58 AM|raju dasa|LINK
Hi,
You can check if JQuery and JQuery-UI files are loaded or not via firebug - scripts tab.
make sure those 2 files are loading correctly in browser.
alternative u can use any CDN for these 2 files loading.
rajudasa.blogspot.com || rajudasa-tech
None
0 Points
4 Posts
Re: IIS deployed version not running auto complete functionality
Jul 23, 2013 06:13 AM|LearnerMVC|LINK
the jquery files are there in the same folder as in VS
How can I make sure ?
Please let me know some more info regarding CDN ,
All-Star
15186 Points
3888 Posts
Re: IIS deployed version not running auto complete functionality
Jul 24, 2013 01:44 AM|raju dasa|LINK
Hi,
Use below script paths for CDN use,
jquery from CDN:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
jquery-ui from CDN:
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
change the protocol if u use https, and change the version number depending on ur requirements
check this site for versions hosted in CDN.
https://developers.google.com/speed/libraries/devguide#jquery
rajudasa.blogspot.com || rajudasa-tech