Posts

Showing posts from September, 2015

How to Pass Datatable in Session C#

First assign datatable into Session.  Session[ "DT" ] = dt;  Response.Redirect( "Page2.aspx" ); In Page2.aspx page Load function call the thease Code to Get Session Table. DataTable dtm = ( DataTable )Session[ "DT" ];

Get Selected Checkbox Value from Gridview in Asp.net C#

In this Blog as Work with in gridview Selected Checkbox ID Value can Get In C#. ASPX Code:    < div style =" width : 104%; height : 243px; max-height : 243px; overflow : auto;">     < asp : GridView ShowHeader ="false" AutoGenerateColumns ="false"                       ID ="chklCategory" runat ="server">   < Columns >                                                                                     < asp : TemplateField >                                                                                         < ItemTemplate >      < asp : CheckBox runat ="server" AutoPostBack ="true" ID ="Checkbox_Category"   Text =' <% # bind("Name") %> ' />                                                                                               < asp : HiddenField runat ="server" ID ="hidCheck" Value

Display Jqplot Line Charts Data from Database

Image
     In this Section We See about Line Charts Using JqPlot. Jqplots provides Line. Pie Doughnut , Bar Charts for Freely.  Aspx Page: <% @ Page Language ="C#" AutoEventWireup ="true" CodeBehind ="jqplot.aspx.cs" Inherits ="BloggerCont.jqplot" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml"> < head runat ="server">     < title ></ title >     < script src ="jqplot/jquery.min.js" type ="text/javascript"></ script >     < link href ="jqplot/jquery.jqplot.css" rel ="stylesheet" type ="text/css" />     < script src ="jqplot/jquery.jqplot.js" type ="text/javascript"></ script >         < script type ="

Display Canvasjs Line Chart using Data from Database

Image
Aspx Page: <% @ Page Language ="C#" AutoEventWireup ="true" CodeBehind ="Canvasjs.aspx.cs" Inherits ="BloggerCont.Canvasjs" %> < html xmlns ="http://www.w3.org/1999/xhtml"> < head runat ="server">     < script src ="jquery-1.7.1.js" type ="text/javascript"></ script >     < script src ="canvasjs.min.js" type ="text/javascript"></ script >     < script type ="text/javascript">         $(document).ready( function () {             Disp();         });         function Disp() {             var dataPts = [];             var var1;             var var2;             $.ajax({                 cache: false ,                 async: false ,                 type: "POST" ,                 dataType: "Json" ,                 contentType: "application/jso