Server side controls in client side
Long time ago, When I started to work with ASP.NET 2.0, I was very engry with MS because most of the Server-Side controls changed their names in the client side:'imgbtnFind' in the code-behind became...
View ArticleCheck all CheckBoxes in GridView in client side
'Lists' controls as GridView, DataList or Repeater sometimes have a column with CheckBoxes. It is very usefull to let the user 'Select all' or 'Un Select all'. One way to do it is to loop on the...
View ArticleA Custom Length Validator with server & client side validation
Almost evey TextBox input is going to be stored in Database (if it is not based on XML). In the DB we need to define a maximum length for any characters field, so, we need to be sure that the input...
View ArticleSome basic but useful C# methods implemented in JavaScript
While I was working on a full Ajax interface based on pure ajax calls and not on any framework, I implemented some basic and simple methods that we use all the time in the server code, and just not...
View ArticlePrevent from the user to submit any 'not legal' input, using client side...
We are all know that client validations are good way to validate input, of cource you must re validate in server side also, but the client side will save some wasted post backs. Usually, we validate...
View ArticleHigh performance css minifier
It is known that minifying the JavaScript and CSS files can really reduce the files size and improve the general site performance. Lot of sites (BlogEngine.NET among them) do it on run-time and not...
View ArticleCropping image using jQuery, Jcrop and ASP.NET
Letting the client cropping his images on the site was never an easy task. With jQuery and the plugin Jcrop by Deep Liquid it is easier than ever to do it in ASP.NET site. Here is how to do it: First...
View Article