Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem importing a project
Message
 
 
À
31/08/2012 19:27:47
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01552146
Message ID:
01552201
Vues:
42
>Whil Hentzen said years ago, "If it's easy for the user, it's hard for the developer". You can set a data annotation for the minimum date, but it won't affect the data picker AT ALL. If you want to limit the selectable dates in the date picker, you need to code it into the javascript. Go with what works.
>
>As for the CDN issue, perhaps it's a different version than what you have locally. It's going to make it faster for the user, but probably not significantly.
>
Thanks, Craig. I understand that setting annotation at present will not automatically set DataPicker MinDate. However, I want to be able to make it work.

I am just not sure at this moment how. Say, setting DataType[DataType.Date] works already automatically with using Date Time Picker after I added the Editor Folder and date.chtml according to .
http://www.asp.net/mvc/tutorials/javascript/using-the-html5-and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc/using-the-html5-and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc-part-4

This works (or almost works as I had to switch to TextBox because of another problem).

I am thinking perhaps creating something similar and assigning the editor I can make it work in the most generic sense also.

Since I am obviously lacking all the understanding and good JavaScript knowledge, I'll put this problem aside for now and do it directly in the view.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform