Posts

Showing posts with the label ASP.NET

Image Opacity on Mouse Hover in ASP.NET using jQuery

Image
Introduction Download Creating attractive websites is desired by every web developers and this post will add one more feature in your existing web app. Look at the sample screen that we will achieve in this post. In above screen you can see I've hovered my mouse on second image. Now follow the steps to create it. Step 1 Add the reference of jQuery file in head, for example: < script type ='text/javascript' src ="Scripts/jquery-1.4.1.min.js"></ script > Step 2 Now add jQuery method in the head section, for example: < script type ="text/javascript">     $( function () {         $( '.myImage' ).each( function () {             $( this ).hover(                     function () {                         $( this ).stop().animate({ opacity: 1.0 }, 800);                     },                    function () {                        $( this ).stop().animate({ opacit

Adding selected rows value in ASP.NET using jQuery

Image
Introduction Download If you want to add or find the sum of all value which is being checked by user you need to add some jQuery methods to set it. Here is my sample screen: Follow the steps to develop such system: Step 1 Add the reference of jQuery file in head, for example: < script type ='text/javascript' src ="Scripts/jquery-1.4.1.min.js"></ script > Step 2 Now add jQuery method in the head section, for example: < script type ="text/javascript">     $( function () {         $( 'input:checkbox' ).click( function (e) {             findSum(4);         });         function findSum(ColID) {             total = 0.0;             $( "tr:has(:checkbox:checked) td:nth-child(" + ColID + ")" ).each( function () {                 total += parseFloat($( this ).text());             });             $( '#pTotal' ).text( "Total Amount = &q

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples