.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> XML >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Clearing txtbox values as well as label values

Posted By:Athira Sreejith       Posted Date: February 22, 2009    Points: 5    Category: XML    URL: http://www.dotnetspark.com  
 

Clearing txtbox values as well as label values =============================================== runat="server" CausesValidation="false" ImageUrl="~/images/reset.jpg" /> function select_deselectAll (chkVal, idVal) { var frm = document.forms[0]; // Loop through all elements for (i=0; i < frm.length; i++) { // Look for our Header Template's Checkbox if (idVal.indexOf ('chkCheckAll') != -1) { // Check if main checkbox is checked, then select or deselect datagrid checkboxes if(chkVal == true) { frm.elements[i].checked = true; } else { frm.elements[i].checked = false; } // Work here with the Item Template's multiple checkboxes } else if (idVal.indexOf ('chkConfirm') != -1) { // Check if any of the checkboxes are not checked, and then uncheck top select all checkbox if(frm.elements[i].checked == false) { frm.elements[1].checked = false; //Uncheck main select all checkbox } } } }

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend