style="border: 0; cursor: pointer; cursor: hand; background-color: transparent; text-decoration: underline;"
Thursday, January 20, 2011
Remote validation, a new feature in MVC 3 for single field server side validation
Common scenario like, you want to check a user name if exist before posting all of information to server.
Before MVC 3, this kind of validation can be implemented by either JQuery ajax calling an action in MVC or a web service in webform.
ASP.NET MVC 3 provides a mechanism that can make a remote server call in order to validate a form field without posting the entire form to the server
Wednesday, January 19, 2011
How to implement Textbox auto-complete in ASP.NET web forms?
1. Ajax toolkit: AutoCompleteExtender
Reference:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx
2. JQuery+Web service
http://rayaspnet.blogspot.com/2011/01/how-to-call-aspnet-web-service-from.html
Reference:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx
2. JQuery+Web service
http://rayaspnet.blogspot.com/2011/01/how-to-call-aspnet-web-service-from.html
How to set focus on first enabled textbox in ASP.net by JQuery?
$(document).ready(function () {
$("input:text:visible:first").focus();
});
$("input:text:visible:first").focus();
});
Subscribe to:
Posts (Atom)