share|improve this answer answered Feb 17 '15 at 13:53 Ansari 1,1271819 add a comment| up vote 0 dow
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions fabric questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android http://stackoverflow.com/questions/28562841/object-expected-error-occurred-in-asp-net-jquery iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese http://www.codeproject.com/Questions/285320/JQuery-Object-Expected-Error Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ JQuery "Object Expected" Error Rate this: Please Sign up or sign in to vote. See more: C# ASP.NET jQuery hi, In my ASP.NET application. I have used JQuery Autocomplete for retrieving database values using Handlers(.ashx). Now the problem is, i used "UpdatePanel" to avoid flickering on Postback. Now those Autocomplete textbox are lost its JQuery reference on each Postback hence i need to rebind those textbox with the corresponding JQuery reference(From my previous post i got it from an developer). Reference : How to Enable JQuery Autocomplete textbox inside Gridview with UpdatePanel?[^] [^] Hence i used the code From the reference : http://forums.asp.net/p/1622254/4164277.aspx[^] But i'm getting error "Object Expected" in very
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/jQuery for the ASP.NET Developer/jQuery and Master Pages - Object expected jQuery and Master Pages - Object expected [Answered]RSS 7 replies Last post Dec 21, 2010 12:59 PM by WilliamSnell ‹ Previous Thread|Next Thread › Print http://forums.asp.net/t/1423185.aspx?jQuery+and+Master+Pages+Object+expected Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply WilliamSnell Member 179 Points 569 Posts jQuery and Master Pages - Object expected May 14, 2009 03:30 PM|WilliamSnell|LINK Here is the layout of my problem: I have a Master Page that is referenced by pages in the root of my site, as well as some pages in an 'Admin' folder. All of that works just fine. I added some jQuery to add object expected some features to an auto-search textbox, and placed the code referencing the jQuery file and the script in the head section of the Master Page. The script looks a little like this: $(document).ready(function() { $('#ctl00_MainNavigation1_SearchTextBox').click(function() { SelectText(this); // Function to call on click event. }); }); I just used the actual id generated by ASP.NET to grab the textbox to avoid the "what's the actual id?" issues. When the home page loads, all is well. When I try object expected error to navigate to one of the pages in the 'Admin' folder, I get an 'Object expected' error. At first I thought it was due to a possible renaming of my textbox, but I checked the source of the page and this was not the case. In fact, I removed all of the script code except the:$(document).ready(function() { });part, and the 'Object expected' error still occurs. I am only setting up the jQueryhere, and it still throws an exception.I have no idea what is causing this. I can ignore the error and continue, but then I lose the added functionality of my textbox. Ihave had issues in the past when referencing Flash movies in a Master Page file that didn't appear in pages contained within folders. I'm not sure if this could be the same type of problem. It's not how hard you push in life, but who you push, that makes the difference between success and running for your life. Reply rtpHarry All-Star 39506 Points 8949 Posts Re: jQuery and Master Pages - Object expected May 14, 2009 04:06 PM|rtpHarry|LINK Have you tried looking at this in firefox? You generally get better js error reporting in it... Actually I have IE8 and it has great js debugging. What are you testing in? What does the script reference to your jQuery.js look like? Have you considered referencing the one hosted on Go