ali raza

C#, .Net ,Asp.net and my thoughts

Category Archives: Java script

How to filter uploader control using client side script in asp.net

For any client side action we have to choose a scripting language to build our logic. Let us go for JavaScript. When use a file control we have to use a button control for doing the uploading action. It is better to refer to Anand’s article CodeSnip: Working with FileUpload Control to get the basic [...]

how to check all check boxes on gridview in asp.net using javascript

please paste the following code in your java script area function CheckAllDataViewCheckBoxes( checkVal) { for(i = 0; i < document.forms[0].elements.length; i++) {elm = document.forms[0].elements[i]if (elm.type == ‘checkbox’) { {elm.checked = checkVal } } } } and following line on the header for ur check boxes field in item tamplate of grid view <input id=’chkAllItems’ type=’checkbox’ [...]

Follow

Get every new post delivered to your Inbox.