<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx</link><description>Ok, I have to admit it: jQuery is awesome. If you haven't started looking at it, I highly recommend that you do. It works wonders in the ASP.NET MVC world. One of the best things about jQuery is the enormous number of plug-ins that are available for adding</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>infoblog &amp;raquo; Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9065441</link><pubDate>Thu, 13 Nov 2008 08:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9065441</guid><dc:creator>infoblog &amp;raquo; Autocompletion Textbox in MVC Using jQuery</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.a-foton.ru/index.php/2008/11/13/autocompletion-textbox-in-mvc-using-jquery/"&gt;http://blog.a-foton.ru/index.php/2008/11/13/autocompletion-textbox-in-mvc-using-jquery/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>http://blog.cwa.me.uk/2008/11/13/the-morning-brew-222/</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9066271</link><pubDate>Thu, 13 Nov 2008 17:12:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9066271</guid><dc:creator>TrackBack</dc:creator><description /></item><item><title>#.think.in infoDose #7 (10th Nov - 15th Nov)</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9104428</link><pubDate>Mon, 17 Nov 2008 01:25:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9104428</guid><dc:creator>#.think.in</dc:creator><description>&lt;p&gt;#.think.in infoDose #7 (10th Nov - 15th Nov)&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9321278</link><pubDate>Thu, 15 Jan 2009 21:03:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9321278</guid><dc:creator>Frank</dc:creator><description>&lt;p&gt;Do u mind published your project on web, and we can download it&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9339811</link><pubDate>Mon, 19 Jan 2009 13:29:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9339811</guid><dc:creator>jitendra</dc:creator><description>&lt;p&gt;how to integrate your code in webservice in asp.net i have tried it but i am unable to do it. and what will come here&lt;/p&gt;
&lt;p&gt;('&amp;lt;%=Url.Action(&amp;quot;LookupTags&amp;quot;, &amp;quot;Utilities&amp;quot;) %&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9393999</link><pubDate>Wed, 04 Feb 2009 02:31:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393999</guid><dc:creator>Janus Knudsen</dc:creator><description>&lt;p&gt;The concept of autocomplete is clear, but unfortunately the details here is blurred. &lt;/p&gt;
&lt;p&gt;Well... actually I think it's a nice example, but it would be even better if you would drill down into the details of Url.Action, also &amp;lt;%= Html.TextBox(&amp;quot;tags&amp;quot;) &amp;nbsp;%&amp;gt; is called postTags in your autocomplete function.&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9394018</link><pubDate>Wed, 04 Feb 2009 02:50:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9394018</guid><dc:creator>Jeremiah.Clark</dc:creator><description>&lt;p&gt;Janus Knudsen: Thanks for pointing out the &amp;quot;tags&amp;quot; naming problem. &amp;nbsp;That has been updated.&lt;/p&gt;
&lt;p&gt;What details exactly are you looking for about the Url.Action piece?&lt;/p&gt;
&lt;p&gt;Thanks for the comments.&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9396418</link><pubDate>Wed, 04 Feb 2009 22:01:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9396418</guid><dc:creator>Janus Knudsen</dc:creator><description>&lt;p&gt;Url.Action is a piece of the MVC afaik :) I was just wondering how a Controller action can get called by a Url?&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9409451</link><pubDate>Tue, 10 Feb 2009 01:32:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9409451</guid><dc:creator>nicc</dc:creator><description>&lt;p&gt;thanx for that very useful summary! i guess i'll save a few hours tomorrow at work, so more time for digging deeper :) i'm using jQuery now for about 8h and love it too!&lt;/p&gt;
&lt;p&gt;@janus: the Url.Action method is part of asp.net MVC helpers. it generates the action link for the action &amp;quot;LookupTags&amp;quot;, using the controller &amp;quot;Utilities&amp;quot; (&amp;quot;Controller&amp;quot; is omitted). this is by (default) convention, since mvc uses code by convention ;). &lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
&lt;p&gt;nicc&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9414145</link><pubDate>Thu, 12 Feb 2009 09:03:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9414145</guid><dc:creator>manjunath prasad</dc:creator><description>&lt;p&gt;how to create autocomplete textbox without using ajax in asp.net.&lt;/p&gt;
&lt;p&gt;it should access the database to display strings to be extended in the textbox...&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9526741</link><pubDate>Wed, 01 Apr 2009 17:06:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9526741</guid><dc:creator>Maccari Claudio</dc:creator><description>&lt;p&gt;if you use an anonimous type like this&lt;/p&gt;
&lt;p&gt; &amp;nbsp;.Select(r =&amp;gt; new { r.Id, t.Tag });&lt;/p&gt;
&lt;p&gt;and Id in an integer you'll get a js error.&lt;/p&gt;
&lt;p&gt;To avoid this error use only string in the dto objects collection&lt;/p&gt;
&lt;p&gt;.Select(r =&amp;gt; new { Id = r.Id.ToString(), t.Tag });&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;Claudio&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9530625</link><pubDate>Fri, 03 Apr 2009 16:10:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9530625</guid><dc:creator>Moim</dc:creator><description>&lt;p&gt;Jeremiah, this is an awesome post!&lt;/p&gt;
&lt;p&gt;I am running an issue, could you help me out with your knowledge..?&lt;/p&gt;
&lt;p&gt;Basically, this autocomplete extension of jQuery depends onto the ready method of the jQueryLibrary. (I am not 100% sure what it does actually, but I can guess it checks wheather the DOM has been loaded, if loaded it does something as an regular &amp;quot;onload&amp;quot; event handler).&lt;/p&gt;
&lt;p&gt;Now, I have an ASP.net MVC application where I am using Ajax to render a partial view (an ascx file) and that file contains the autocomplete textbox.&lt;/p&gt;
&lt;p&gt;As the DOM has been already loaded and I am now modified the DOM with the content of the ascx file in an Ajax fashion, my text boxes into the ascx are not doing anything autocompletion. What could be an alternate or workaround of this problem..?&lt;/p&gt;
&lt;p&gt;Any idea would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Have a nice day&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9724907</link><pubDate>Wed, 10 Jun 2009 23:04:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9724907</guid><dc:creator>Harvey</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;great example, I am using autocomplete for city's which have code values. If a user enters 1 or more city ( names) and click a submit button how do I convert the city name text value in text box to the under lying city code to be sent to a service?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Harvey&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9724908</link><pubDate>Wed, 10 Jun 2009 23:04:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9724908</guid><dc:creator>Harvey</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;great example, I am using autocomplete for city's which have code values. If a user enters 1 or more city ( names) and click a submit button how do I convert the city name text value in text box to the under lying city code to be sent to a service?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Harvey&lt;/p&gt;
</description></item><item><title>re: Autocompletion Textbox in MVC Using jQuery</title><link>http://blogs.msdn.com/miah/archive/2008/11/13/autocompletion-textbox-in-mvc-using-jquery.aspx#9727913</link><pubDate>Fri, 12 Jun 2009 00:41:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727913</guid><dc:creator>Jeremiah.Clark</dc:creator><description>&lt;p&gt;Harvey, &lt;/p&gt;
&lt;p&gt; &amp;nbsp;Thanks for the comment.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I believe that you are looking for the formatResult option. &amp;nbsp;More information about this can be found at the following link (under Options) &lt;a rel="nofollow" target="_new" href="http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions"&gt;http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;This option allows you to format the actual input that will be sent back to the server after a selection is made.&lt;/p&gt;
</description></item></channel></rss>