Skip to main content

Posts

Showing posts from 2015

Google Charts API Using Database in ASP.Net

Google Charts API Using Database in ASP.Net This article introduces use of the Google Charts API with a database in ASP.NET. Google has a jQuery API for chart and graph visuals. I have explored a little more and used them with a SQL Server database data and simply plunged chart data with jQuery into an aspx page and it works. Step1 : .aspx <%@ Page Language= "C#" AutoEventWireup= "true" CodeFile= "Default.aspx.cs" Inherits= "_Default" %> <!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>Charts Example</title> </head> <body> <form id= "form1" runat= "server" > <div> <script type= "text/javascript&

CascadingDropDown Sample with Ajax Control Toolkit

CascadingDropDown Sample - Ajax Control Toolkit Step 1 :  aspx page <table>             <tr>                 <td style="width: 80px">Country:                 </td>                 <td>                     <asp:DropDownList ID="ddlCountries" runat="server" Width="150">                     </asp:DropDownList>                     <cc1:CascadingDropDown ID="cdlCountries" TargetControlID="ddlCountries" PromptText="Select Country"                         PromptValue="" ServicePath="myservices.asmx" ServiceMethod="GetCountries" runat="server"                         Category="CountryId" LoadingText="Loading..." />                 </td>             </tr>             <tr>                 <td>State:                 </td>                 <td>  

Authentication ASP.NET_SessionId (Session) along with AuthToken (GUID) cookie

Authentication ASP.NET_SessionID (Session) along with AuthToken (GUID) cookie Introduction ASP.NET Session keeps track of the user by creating a cookie called  ASP.NET_SessionId  in the user browser. This cookie value is checked for every request to ensure that the data being served is specific to that user. In many applications, a Session variable is used to track the logged in user, i.e., if a session variable exists for that user, then the user is logged in, otherwise not. Background Whenever any data is saved into the Session, the  ASP.NET_SessionId  cookie is created in the user’s browser. Even if the user has logged out (means the Session data has been removed by calling the  Session.Abandon() or  Session.RemoveAll()  or  Session.Clear()  method), this  ASP.NET_SessionId  cookie and its value is not deleted from the user browser. This legitimate cookie value can be used by the hijacker to hijack the user session by giving a link that exploits cross site scripting vulner