Calculate Sum Of All Selected Checkboxes Using JQuery In Asp.net.

Here we will see how to calculate the sum of a particular which have there checkboxes selected using Jquery. We will access all the checked rows and calculate the sum of column cost and display it.

Code is as follows: Continue reading Calculate Sum Of All Selected Checkboxes Using JQuery In Asp.net.

Advertisements

Check Uncheck All Items In CheckBoxList Using JQuery In Asp.net.

Here we will see how to check uncheck all items in checkboxlist using jQuery. Here we have an additional checkbox (Select All) which will be used to check all the checkboxes that are present in the checkboxlist control. We have also added the functionality where if any of checkbox in checkboxlist is clicked the appropriate result will be reflected.

The code is as follows: Continue reading Check Uncheck All Items In CheckBoxList Using JQuery In Asp.net.

How To Call Javascript Functions From Code Behind in Asp.net

Here we will see how to call javascript finctions from code behind.We need to use ClientScriptManager to do this.In the following example we have called javascript function on Page_Load as well as on button click which shows an alert message.

Code is as follows: Continue reading How To Call Javascript Functions From Code Behind in Asp.net

Upload File Through Fileupload Control Without Refreshing Page In Asp.net.

Here we will see how to upload file using asynchronous postback in ajax update panel control. File upload control inside ajax update panel control will not work with partial postback because upload control needs a full page post back. To achieve this we need to use update panel trigger and do a full postback or partial postback as required. Here we will also have a look how to set the uploaded file to image control immediately after uploading. Continue reading Upload File Through Fileupload Control Without Refreshing Page In Asp.net.

Validate File Extension For Asp.net Fileupload Control On Client Side.

Here we will see how to validate a file extension for asp.net fileupload control on client side. Please also ensure that the extension is validate at server side as server side validation ensures that even if the javaScript client side checking fails still the file is validate at server side.

The code is as follows: Continue reading Validate File Extension For Asp.net Fileupload Control On Client Side.