I am working on a new project using the Release Candidate of ASP.NET MVC 3 and I needed to enable jQuery unobtrusive validation on an ajax loaded form. Couldn't find information on how to do this so I'm posting example code below.
A simple partial view containing the form to load can look like this:
The javascript which loades the form (only two lines are important):
And Voila! Unobtrusive client validation works perfectly.
I also needed globalization for unobtrusive validation (particularly for numbering format). If you want to know how to achieve it just comment this post and I will be glad to write about it.
wtorek, 30 listopada 2010
poniedziałek, 22 listopada 2010
Niezawodna pomoc na orange.pl
Dzisiaj szybki wpis o tym, jaką świetną, dostosowaną do potrzeb klienta, pomoc można napotkać na orange.pl.
Wszystko wyjaśnią poniższe zrzuty z ekranu:
Mnie te artykuły bardzo pomogły - może Wam również.
Wszystko wyjaśnią poniższe zrzuty z ekranu:
Mnie te artykuły bardzo pomogły - może Wam również.
sobota, 6 listopada 2010
Strongly typed Url.Action() extension method in ASP.NET MVC 2 and 3
Just a quick post on something that I find useful.
Did you ever want to use something like the code shown below?
For that you can simply use an extension method for the Url helper:
For that you will also need to reference the Futures assembly.
Did you ever want to use something like the code shown below?
For that you can simply use an extension method for the Url helper:
For that you will also need to reference the Futures assembly.
Etykiety:
asp.net mvc,
labs
Subskrybuj:
Posty (Atom)



