Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
Event registration app with QR/Paypal
Home
▼
Thursday, January 20, 2011
How to make form input button look like a regular href link?
style
="
border
: 0;
cursor
: pointer;
cursor
: hand;
background-color
: transparent;
text-decoration
: underline;"
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
http://msdn.microsoft.com/en-us/library/gg508808%28v=vs.98%29.aspx
‹
›
Home
View web version