Posts

Showing posts from September, 2011

Delete Multiple Rows from Gridview

The code below is to delete multiple rows form gridview at once. In this example DataTable is used to bind GridView. ----------------------------------------------------------------------------------------------------------------------------------- ASPX Page Code ----------------------------------------------------------------------------------------------------------------------------------- <%@ 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></title>     <style type="text/css">         .style1         {             width: 50%;         }     </style> </head> <body>     <fo

Javascript MD5 Encryption

JavaScript MD5 Encryption Before using the code first download md5.js file from the link below https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B2iokvd3EpXAZTcyY2UwYzAtNjcxNS00MzY1LWE2NDQtNDMxODMxYjE1ZGM0&hl=en_US Extract the folder and you will find the md5.js script file in script folder And below is the code to use the script file. Enter value in textbox to encrypt ant click the below button . <!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>     <title>MD5 Test</title>      <script type="text/javascript" language="javascript" src="script/md5.js"></script> </head> <body>     <div>         Enter value in textbox and press Tab or click anywhere in the page<br /><br />         <i

Get Query String Values With Javascript

Image
JavaScript Code To  Retrieve Query String Values This topic shows you how you can retrieve the query string values from a URL using JavaScript. The code is simple and understandable. Below is the complete code. <!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>Query String using Javascript</title> <script type="text/javascript" language="javascript">     function getquerystring()     {         var qsarr = new Array();                  var qs = location.search.substring(1);         var singleqs = new Array();         var str ="";         qsarr = qs.split('&');         for( i=0; i<qsarr.length; i++)         {             singleqs = qsarr[i].split('=');             str += 'Query String Name