Archivi del mese: agosto 2014

Javascript parseFloat Culture problem

When you write a page in a italian culture or any culture that use , instead . as a decimal number, parseFloat will truncate the result. So if you need to perform some operation by javascript you need to convert … Continua a leggere

Pubblicato in javascript | Contrassegnato , | Lascia un commento

Execute multiple task and await all have completed

In this example I show how to do multiple call of a web service in async mode. serviceClient my own proxy class to contact the web service. This is the signature: This solution call the service and wait it complete … Continua a leggere

Pubblicato in .Net, c# | Contrassegnato , , , , | 2 commenti

CultureInfo for any thread

Sometimes I need to set the CurrentThread Culture and the UI Culture, to avoid some problem in date or number conversion. By default I work on the same thread, but not today. With only this code you change the culture … Continua a leggere

Pubblicato in .Net, c# | Contrassegnato , , , , | Lascia un commento

Add javascript or css to tr created by asp.net GridView

I don’t like too much use GridView controls but in a existing project I found it applyed. My target was only to attach “onclick” javascript event to the row generated. Inside this event it’s possibile access to the item’s column … Continua a leggere

Pubblicato in Asp.Net, c#, javascript | Contrassegnato , , , | Lascia un commento

How to disable RequiredFieldValidator from javascript

If you have to disable a javascript required field validore because you hide some page part use this code

Pubblicato in Asp.Net, javascript | Contrassegnato , | Lascia un commento