Posts

Showing posts from September, 2013

ASP.Net MVC: Creating an AutoComplete with Images for profile with MVC and Jquery

Sometime we need to create a autocomplete textbox in our projects, whihc containes images of the user. whether its MVc or Asp.net. JqueryUI have a control for this and you can leverage to make your wish fullfil. its need a Array of data. Here is the solution how to do that. You need to take the reference of the latest jqueryui script. On the View < input type ="text" id ="txtUserSearch" /> < script type ="text/javascript">     $(document).ready( function () {         $( '#txtUserSearch' ).autocomplete({             source: ' @ Url.Action( " GetMatchingUser " , "Home" ) ' ,             minLength: 1,             select: function (event, ui) {                 window....

ASP.Net MVC: ASP.NET application giving JavaScript error "_doPostBack is undefined" in IE10.

Introduction  Sometime you will get Javascript error on Production server that "_doPostBack is undefined" erro in IE10. Background Actually every .net build contains definition for application to run on particular browser. but sometime if you system doesn't have latest fixes installed you will get some issues. like above in IE10. It will not come for every application.  This will come in the application where you have a <asp:linkbutton> and it requires Javascript to postback. There come the error in IE10. It will run fine in IE9. I searched lot about this and found a really good  article  from Scott Hanselman's  blog about this, from where i got the solution and sharing it to all who are facing this issue. here is the extract from the blog that resolved my issue. Using the code  To resolve this you have 2 kind of solution. #1. Machine wide   For this fix there is hotfix by microsoft that will update tho...