Archivi tag: Cast

MVC submit Textbox HTTPPost

A little note on MVC ViewBag POST If you realyze a form without a model and you want to get the string in a textbox using the ViewBag remember to cast the property like this Annunci

Pubblicato in .Net, MVC | Contrassegnato , | Lascia un commento

SQL Convert nvarchar to DateTime

Many times I need to convert a date stored in a nvarchar column with this format dd/MM/yyyy will generate error because it will expect the date in atomic format 1985-05-17 an easy way to convert it is this this work … Continua a leggere

Pubblicato in SQL | Contrassegnato , , , | Lascia un commento