Open Visual Studio 2010 > Create an ASP.NET site. In the code behind of the Default.aspx page, add the following class which represents a hosting plan:
Now add a GridView control to the aspx page as shown below:
Let us now bind this GridView with the custom Hosting class we created above:
Your GridView should look similar to the following:
All set! It’s time for some jQuery magic now. What we will do is calculate the sum of the ‘AddOn Cost’ column for only those rows that are checked. Use the following jQuery code:
No comments:
Post a Comment