<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bineethavinod's Weblog</title>
	<atom:link href="http://bineethavinod.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bineethavinod.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 23 Jun 2008 05:36:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bineethavinod.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bineethavinod's Weblog</title>
		<link>http://bineethavinod.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bineethavinod.wordpress.com/osd.xml" title="Bineethavinod&#039;s Weblog" />
	<atom:link rel='hub' href='http://bineethavinod.wordpress.com/?pushpress=hub'/>
		<item>
		<title>generating  alpha numeric  password  using  stored procedure</title>
		<link>http://bineethavinod.wordpress.com/2008/06/23/generating-alpha-numeric-password-using-stored-procedure/</link>
		<comments>http://bineethavinod.wordpress.com/2008/06/23/generating-alpha-numeric-password-using-stored-procedure/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:32:04 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/?p=24</guid>
		<description><![CDATA[  CREATE PROC random_password ( @len int = 8, --Length of the password to be generated @password_type char(7) = 'simple' --Default is to generate a simple password with lowecase letters. --Pass anything other than 'simple' to generate a complex password. --The complex password includes numbers, special characters, upper case and lower case letters ) AS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=24&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">CREATE PROC random_password</span>
<span style="font-size:x-small;">(</span>
<span style="font-size:x-small;">@len int = 8, --Length of the password to be generated</span>
<span style="font-size:x-small;">@password_type char(7) = 'simple' </span>
<span style="font-size:x-small;">--Default is to generate a simple password with lowecase letters. </span>
<span style="font-size:x-small;">--Pass anything other than 'simple' to generate a complex password. </span>
<span style="font-size:x-small;">--The complex password includes numbers, special characters, upper case and lower case letters</span>
<span style="font-size:x-small;">)</span>
<span style="font-size:x-small;">AS</span>
<span style="font-size:x-small;">/*************************************************************************************************</span>
<span style="font-size:x-small;"><span>               </span>Copyright © 2001 Narayana Vyas Kondreddi. All rights reserved.</span>
<span><span style="font-size:x-small;">                                          </span></span>
<span style="font-size:x-small;">Purpose:<span>       </span>To generate a random password</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">Written by:<span>    </span>Narayana Vyas Kondreddi</span>
<span style="font-size:x-small;"><span>               </span>http://vyaskn.tripod.com</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">Tested on: <span>    </span>SQL Server 7.0 and SQL Server 2000</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">Date modified:<span> </span>March-29-2001 01:15 PM</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">Email: <span>        </span>vyaskn@hotmail.com</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">Examples:</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">To generate a simple password with a length of 8 characters:</span>
<span style="font-size:x-small;">EXEC random_password</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">To generate a simple password with 6 characters:</span>
<span style="font-size:x-small;">EXEC random_password 6</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">To generate a complex password with 8 characters:</span>
<span style="font-size:x-small;">EXEC random_password @Password_type = 'complex'</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">To generate a comples password with 6 characters:</span>
<span style="font-size:x-small;">EXEC random_password 6, 'complex'</span>
<span style="font-size:x-small;">*************************************************************************************************/</span>
<span style="font-size:x-small;">BEGIN</span>
<span style="font-size:x-small;">DECLARE @password varchar(25), @type tinyint, @bitmap char(6)</span>
<span style="font-size:x-small;">SET @password='' </span>
<span style="font-size:x-small;">SET @bitmap = 'uaeioy' </span>
<span style="font-size:x-small;">--@bitmap contains all the vowels, which are a, e, i, o, u and y. These vowels are used to generate slightly readable/rememberable simple passwords</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">WHILE @len &gt; 0</span>
<span style="font-size:x-small;">BEGIN</span>
<span style="font-size:x-small;"><span>        </span>IF @password_type = 'simple' --Generating a simple password</span>
<span style="font-size:x-small;"><span>        </span>BEGIN</span>
<span style="font-size:x-small;"><span>        </span>IF (@len%2) = 0<span>  </span>--Appending a random vowel to @password</span>
<span><span style="font-size:x-small;">               </span></span>
<span style="font-size:x-small;"><span>               </span>SET @password = @password + SUBSTRING(@bitmap,CONVERT(int,ROUND(1 + (RAND() * (5)),0)),1)</span>
<span style="font-size:x-small;"><span>        </span>ELSE --Appending a random alphabet</span>
<span style="font-size:x-small;"><span>               </span>SET @password = @password + CHAR(ROUND(97 + (RAND() * (25)),0))</span>
<span><span style="font-size:x-small;">               </span></span>
<span style="font-size:x-small;"><span>        </span>END</span>
<span style="font-size:x-small;"><span>        </span>ELSE --Generating a complex password</span>
<span style="font-size:x-small;"><span>        </span>BEGIN</span>
<span style="font-size:x-small;"><span>               </span>SET @type = ROUND(1 + (RAND() * (3)),0)</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;"><span>               </span>IF @type = 1 --Appending a random lower case alphabet to @password</span>
<span style="font-size:x-small;"><span>                       </span>SET @password = @password + CHAR(ROUND(97 + (RAND() * (25)),0))</span>
<span style="font-size:x-small;"><span>               </span>ELSE IF @type = 2 --Appending a random upper case alphabet to @password</span>
<span style="font-size:x-small;"><span>                       </span>SET @password = @password + CHAR(ROUND(65 + (RAND() * (25)),0))</span>
<span style="font-size:x-small;"><span>               </span>ELSE IF @type = 3 --Appending a random number between 0 and 9 to @password</span>
<span style="font-size:x-small;"><span>                       </span>SET @password = @password + CHAR(ROUND(48 + (RAND() * (9)),0))</span>
<span style="font-size:x-small;"><span>               </span>ELSE IF @type = 4 --Appending a random special character to @password</span>
<span style="font-size:x-small;"><span>                       </span>SET @password = @password + CHAR(ROUND(33 + (RAND() * (13)),0))</span>
<span style="font-size:x-small;"><span>        </span>END</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;"><span>        </span>SET @len = @len - 1</span>
<span style="font-size:x-small;">END</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">SELECT @password --Here's the result</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;">END</span>
<span style="font-size:x-small;"> </span>
<span style="font-size:x-small;"> </span></pre>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times New Roman;"> </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=24&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2008/06/23/generating-alpha-numeric-password-using-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>stored procedure  for  creating  a  random  password in sql</title>
		<link>http://bineethavinod.wordpress.com/2008/06/23/stored-procedure-for-creating-a-random-password-in-sql/</link>
		<comments>http://bineethavinod.wordpress.com/2008/06/23/stored-procedure-for-creating-a-random-password-in-sql/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:28:28 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/?p=23</guid>
		<description><![CDATA[CREATE PROC random_password ( @len int = 8, --Length of the password to be generated @password_type char(7) = 'simple' --Default is to generate a simple password with lowecase letters. --Pass anything other than 'simple' to generate a complex password. --The complex password includes numbers, special characters, upper case and lower case letters ) AS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=23&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><span style="font-size:x-small;">CREATE PROC random_password</span>
<span style="font-size:x-small;">(</span>
<span style="font-size:x-small;">@len int = 8, --Length of the password to be generated</span>
<span style="font-size:x-small;">@password_type char(7) = 'simple' </span>
<span style="font-size:x-small;">--Default is to generate a simple password with lowecase letters. </span>
<span style="font-size:x-small;">--Pass anything other than 'simple' to generate a complex password. </span>
<span style="font-size:x-small;">--The complex password includes numbers, special characters, upper case and lower case letters</span>
<span style="font-size:x-small;">)</span>
<span style="font-size:x-small;">AS</span></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=23&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2008/06/23/stored-procedure-for-creating-a-random-password-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How  many  users  are  using  a  site  at  a  same time?</title>
		<link>http://bineethavinod.wordpress.com/2008/06/23/how-many-users-are-using-a-site-at-a-same-time/</link>
		<comments>http://bineethavinod.wordpress.com/2008/06/23/how-many-users-are-using-a-site-at-a-same-time/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:13:27 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/?p=21</guid>
		<description><![CDATA[  When a site runs then how we can find that in a single time, how many users are using the site? In this article I am going to show how we can trap that how many users are hitting the site. For this I used Global.asax. In Global.asax we find many method such as  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=21&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="div2" class="PaddingLeft5"><span style="font-size:x-small;"></p>
<p align="justify"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">When a site runs then how we can find that in a single time, how many users are using the site? In this article I am going to show how we can trap that how many users are hitting the site.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"><br />
For this I used Global.asax. In Global.asax we find many method such as<span>  </span></span></p>
<div class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Application_Start, Application_End, Session_Start, Session_End etc.</span></div>
<p><span style="font-size:10pt;font-family:Verdana;"></p>
<div><span style="font-size:10pt;font-family:Verdana;">I used here Application_Start and Session_Start method.</span></div>
<p></span><span style="font-size:10pt;font-family:Verdana;">In Application_Start method I declare a varaible of Aplication Type like as:</p>
<p></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;">void</span><span style="font-size:10pt;font-family:Verdana;"> Application_Start(<span style="color:#0000ff;">object</span> sender, <span style="color:#008080;">EventArgs</span> e) </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>Application[<span style="color:#800000;">"User"</span>] = 0;</span></p>
<p class="MsoNormal" style="margin:0;">
<div class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">}</span></div>
<p><span style="font-size:10pt;font-family:Verdana;">After declaring it, I used Session_Start Method like as:</p>
<p><span style="color:#0000ff;">void</span> Session_Start(<span style="color:#0000ff;">object</span> sender, <span style="color:#008080;">EventArgs</span> e)</p>
<p></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;"><span>    </span>int</span><span style="font-size:10pt;font-family:Verdana;"> count;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>    count</span> = (<span style="color:#0000ff;">int</span>)Application[<span style="color:#800000;">"User"</span>];</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>    count</span> = count + 1;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>Application[<span style="color:#800000;">"User"</span>]=count;</span></p>
<p class="MsoNormal" style="margin:0;">
<div class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">}</span></div>
<p><span style="font-size:10pt;font-family:Verdana;">In this Session_Start method I declare a variable of integer type. I type cast the Application[<span style="color:#800000;">"User"</span>] with int to store the value of Application[<span style="color:#800000;">"User"</span>]<span>  </span>in variable count. On running application a new session create. So when new session will create then this Session_start method will call. On every call the value of variable count will increase by 1. With this we can trap the total no. of users, which are hitting the site at a same time.</p>
<p>The number of total users will come on form. For this I do the code on Page_Load like as:<br />
<span style="font-size:x-small;color:#0000ff;"><br />
protected</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">void</span><span style="font-size:x-small;"> Page_Load(</span><span style="font-size:x-small;color:#0000ff;">object</span><span style="font-size:x-small;"> sender, </span><span style="font-size:x-small;color:#008080;">EventArgs</span><span style="font-size:x-small;"> e)<br />
{<br />
    Response.Write(Application[</span><span style="font-size:x-small;color:#800000;">"User"</span><span style="font-size:x-small;">].ToString());<br />
}</span> </p>
<p></span></p>
<p> </p>
<p></span></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=21&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2008/06/23/how-many-users-are-using-a-site-at-a-same-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>ajax tuitorials</title>
		<link>http://bineethavinod.wordpress.com/2007/11/28/ajax-tuitorials/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/28/ajax-tuitorials/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 08:45:26 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/28/ajax-tuitorials/</guid>
		<description><![CDATA[http://www.asp.net/AJAX/Documentation/Live/tutorials<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=16&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.asp.net/AJAX/Documentation/Live/tutorials">http://www.asp.net/AJAX/Documentation/Live/tutorials</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=16&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/28/ajax-tuitorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>retrieving  password  using  forgot  password control</title>
		<link>http://bineethavinod.wordpress.com/2007/11/28/retrieving-password-using-forgot-password-control/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/28/retrieving-password-using-forgot-password-control/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 05:34:16 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/28/retrieving-password-using-forgot-password-control/</guid>
		<description><![CDATA[in  the  web  config  we  have  to  write &#60;system.net&#62;&#60;mailSettings&#62;&#60;smtp deliveryMethod=&#8220;Network&#8220; from=&#8220;bineetha@sprint.co.in&#8220; &#62;&#60;network host=&#8220;192.168.1.83&#8220; defaultCredentials=&#8220;true&#8220; port=&#8220;25&#8220;/&#62;&#60;/smtp&#62;and  inside  the  control &#60;asp:PasswordRecovery ID=&#8221;PasswordRecovery1&#8243; runat=&#8221;server&#8221;&#62; &#60;MailDefinition IsBodyHtml=&#8221;True&#8221; Priority=&#8221;High&#8221; Subject=&#8221;Your password&#8221; BodyFileName=&#8221;~/HtmlBody.txt&#8221;&#62;in  the  html.txt file  we  have  to  specify  the  model  of  email  to  be  received &#60;/MailDefinition&#62;&#60;InstructionTextStyle Font-Italic=&#8221;True&#8221; ForeColor=&#8221;Black&#8221; /&#62; &#60;SuccessTextStyle Font-Bold=&#8221;True&#8221; ForeColor=&#8221;#5D7B9D&#8221; /&#62;&#60;TextBoxStyle Font-Size=&#8221;0.8em&#8221; /&#62; &#60;TitleTextStyle BackColor=&#8221;#5D7B9D&#8221; Font-Bold=&#8221;True&#8221; Font-Size=&#8221;0.9em&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=15&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>in  the  web  config  we  have  to  write</p>
<p><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">system.net</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">mailSettings</font><font size="2" color="#0000ff">&gt;&lt;<font size="2" color="#800000">smtp</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">deliveryMethod</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">Network</font><font size="2">&#8220;</font></font></font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">from</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">bineetha@sprint.co.in</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> &gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">network</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">host</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">192.168.1.83</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">defaultCredentials</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">true</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">port</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">25</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/<font size="2" color="#800000">smtp</font><font size="2" color="#0000ff">&gt;</font></font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">and  inside  the  control</font></p>
<p></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">asp</font><font size="2" color="#0000ff">:</font><font size="2" color="#800000">PasswordRecovery</font><font size="2" color="#000000"> </font><font size="2" color="#ff0000">ID</font><font size="2" color="#0000ff">=&#8221;PasswordRecovery1&#8243;</font><font size="2" color="#000000"> </font><font size="2" color="#ff0000">runat</font><font size="2" color="#0000ff">=&#8221;server&#8221;</font><font size="2" color="#0000ff">&gt;</font></font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"> </font><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">MailDefinition</font><font size="2"> </font><font size="2" color="#ff0000">IsBodyHtml</font><font size="2" color="#0000ff">=&#8221;True&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">Priority</font><font size="2" color="#0000ff">=&#8221;High&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">Subject</font><font size="2" color="#0000ff">=&#8221;Your password&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">BodyFileName</font><font size="2" color="#0000ff">=&#8221;~/HtmlBody.txt&#8221;&gt;</font></font></font><font size="2"><font size="2" color="#0000ff">in  the  html.txt file  we  have  to  specify  the  model  of  email  to  be  received</font></p>
<p></font><font size="2"><font size="2" color="#0000ff">&lt;/</font><font size="2" color="#800000">MailDefinition</font><font size="2" color="#0000ff">&gt;</font></font><font size="2"><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">InstructionTextStyle</font><font size="2"> </font><font size="2" color="#ff0000">Font-Italic</font><font size="2" color="#0000ff">=&#8221;True&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">ForeColor</font><font size="2" color="#0000ff">=&#8221;Black&#8221;</font><font size="2"> </font><font size="2" color="#0000ff">/&gt;</font></font></p>
<p></font><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">SuccessTextStyle</font><font size="2"> </font><font size="2" color="#ff0000">Font-Bold</font><font size="2" color="#0000ff">=&#8221;True&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">ForeColor</font><font size="2" color="#0000ff">=&#8221;#5D7B9D&#8221;</font><font size="2"> </font><font size="2" color="#0000ff">/&gt;</font></font><font size="2"><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">TextBoxStyle</font><font size="2"> </font><font size="2" color="#ff0000">Font-Size</font><font size="2" color="#0000ff">=&#8221;0.8em&#8221;</font><font size="2"> </font><font size="2" color="#0000ff">/&gt;</font></font></p>
<p></font><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">TitleTextStyle</font><font size="2"> </font><font size="2" color="#ff0000">BackColor</font><font size="2" color="#0000ff">=&#8221;#5D7B9D&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">Font-Bold</font><font size="2" color="#0000ff">=&#8221;True&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">Font-Size</font><font size="2" color="#0000ff">=&#8221;0.9em&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">ForeColor</font><font size="2" color="#0000ff">=&#8221;White&#8221;</font><font size="2"> </font><font size="2" color="#0000ff">/&gt;</font></font><font size="2"><font size="2"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">SubmitButtonStyle</font><font size="2"> </font><font size="2" color="#ff0000">BackColor</font><font size="2" color="#0000ff">=&#8221;#FFFBFF&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">BorderColor</font><font size="2" color="#0000ff">=&#8221;#CCCCCC&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">BorderStyle</font><font size="2" color="#0000ff">=&#8221;Solid&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">BorderWidth</font><font size="2" color="#0000ff">=&#8221;1px&#8221;</font></font></p>
<p></font><font size="2"><font size="2" color="#ff0000">Font-Names</font><font size="2" color="#0000ff">=&#8221;Verdana&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">Font-Size</font><font size="2" color="#0000ff">=&#8221;0.8em&#8221;</font><font size="2"> </font><font size="2" color="#ff0000">ForeColor</font><font size="2" color="#0000ff">=&#8221;#284775&#8243;</font><font size="2"> </font><font size="2" color="#0000ff">/&gt;</font></font><font size="2"> </font><font size="2"><font size="2" color="#0000ff">&lt;/</font><font size="2" color="#800000">asp</font><font size="2" color="#0000ff">:</font><font size="2" color="#800000">PasswordRecovery</font><font size="2" color="#0000ff">&gt;</font></font><font size="2">&lt;/<font size="2" color="#800000">mailSettings</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">system.net</font><font size="2" color="#0000ff">&gt;</font></font></p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=15&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/28/retrieving-password-using-forgot-password-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>common errors</title>
		<link>http://bineethavinod.wordpress.com/2007/11/27/common-errors/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/27/common-errors/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:50:43 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/27/common-errors/</guid>
		<description><![CDATA[“Invalid postback or callback argument.  Event validation is enabled using &#60;pages enableEventValidation=&#8221;true&#8221;/&#62; in configuration or &#60;%@ Page EnableEventValidation=&#8221;true&#8221; %&#62; in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=14&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>“Invalid postback or callback argument. </p>
<p>Event validation is enabled using &lt;pages enableEventValidation=&#8221;true&#8221;/&gt; in configuration or</p>
<p>&lt;%@ Page EnableEventValidation=&#8221;true&#8221; %&gt; in a page. </p>
<p>For security purposes, this feature verifies that arguments to postback or callback events</p>
<p>originate from the server control that originally rendered them.  If the data is valid</p>
<p>and expected, use the ClientScriptManager.RegisterForEventValidation method in order to</p>
<p>register the postback or callback data for validation.”<br />
Answer :<br />
&#8212;&#8212;&#8211;</p>
<p># re: EnableEventValidation error on button postback using a multipart form in .NET v2.0 I had a similiar problem. I fixed it by putting my databinding code in the Page_Load event in a !Page.IsPostBack block. I got the solution here:</p>
<p>2]Invalid attempt to read when no data is present<br />
answer<br />
&#8212;&#8212;&#8211;</p>
<p>reader  obj should  use  as  shown  below</p>
<p>sqlReader = sqlCmd.ExecuteReader();<br />
sqlReader.Read();</p>
<p>txtBkNum_brw.Text = sqlReader["BookNumber"].ToString();<br />
txtBookTtl_brw.Text = sqlReader["BookTitle"].ToString();<br />
txtAuth_brw.Text = sqlReader["Author"].ToString();<br />
comboBox1.Text = sqlReader["Category"].ToString();</p>
<p>sqlReader.Close();</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=14&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/27/common-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>uploading  an image</title>
		<link>http://bineethavinod.wordpress.com/2007/11/27/uploading-an-image/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/27/uploading-an-image/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:47:11 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/27/uploading-an-image/</guid>
		<description><![CDATA[using  file  upload  control  we  can  do  that  after  that  we  should  save  the  filename  of  the  image  in  our  database  string imagestring = Path.GetFileName(fileimg.PostedFile.FileName);for  this  we  have  to  import  a  namespace using System.IO;string a = Path.GetFileName(photofile.PostedFile.FileName);             if (a != &#8220;&#8221;)             {                 string filetype = photofile.PostedFile.ContentType;                 int filelength = photofile.PostedFile.ContentLength;                [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=13&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>using  file  upload  control  we  can  do  that </p>
<p>after  that  we  should  save  the  filename  of  the  image  in  our  database </p>
<p><font size="2"><font size="2" color="#0000ff">string</font><font size="2"> imagestring = </font><font size="2" color="#008080">Path</font><font size="2">.GetFileName(fileimg.PostedFile.FileName);</font></font><font size="2"><font size="2">for  this  we  have  to  import  a  namespace</font></p>
<p></font><font size="2"><font size="2" color="#0000ff">using<font size="2"> System.IO;</font></font></font><font size="2"><font size="2" color="#0000ff"><font size="2">string a = Path.GetFileName(photofile.PostedFile.FileName);</font></p>
<p></font><font size="2">            if (a != &#8220;&#8221;)<br />
            {<br />
                string filetype = photofile.PostedFile.ContentType;<br />
                int filelength = photofile.PostedFile.ContentLength;<br />
               // Response.Write(filelength.ToString());<br />
                if (filelength &lt;= 1048567)<br />
                {<br />
                    if (filetype == &#8220;image/pjpeg&#8221; || filetype == &#8220;image/jpg&#8221; || filetype == &#8220;image/gif&#8221;)<br />
                    {<br />
                        photofile.PostedFile.SaveAs(Server.MapPath(&#8220;.&#8221;).ToString() + @&#8221;\image\&#8221; + a);</font></p>
<p><font size="2">}</font></p>
<p><font size="2">}</font></p>
<p><font size="2">}</font></p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=13&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/27/uploading-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>binding  data  in  a drpdown</title>
		<link>http://bineethavinod.wordpress.com/2007/11/27/binding-data-in-a-drpdown/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/27/binding-data-in-a-drpdown/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:31:00 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/27/binding-data-in-a-drpdown/</guid>
		<description><![CDATA[SqlCommand cmd1 = new SqlCommand(selstr1, Con()); SqlDataAdapter ada = new SqlDataAdapter(cmd1); DataSet ds = new DataSet();ada.Fill(ds); ddlProductCategory.DataSource = ds.Tables[0]; ddlProductCategory.DataTextField = &#8220;CategoryName&#8221;;ddlProductCategory.DataValueField = &#8220;CategoryId&#8221;;ddlProductCategory.DataBind();<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=12&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2" color="#008080">SqlCommand</font><font size="2"> cmd1 = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">SqlCommand</font><font size="2">(selstr1, Con());</font><font size="2"> </font><font size="2" color="#008080">SqlDataAdapter</font><font size="2"> ada = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">SqlDataAdapter</font><font size="2">(cmd1);</font><font size="2"> </font><font size="2" color="#008080">DataSet</font><font size="2"> ds = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">DataSet</font><font size="2">();</font><font size="2">ada.Fill(ds);</p>
<p>ddlProductCategory.DataSource = ds.Tables[0];</p>
<p>ddlProductCategory.DataTextField = </font><font size="2" color="#800000">&#8220;CategoryName&#8221;</font><font size="2">;</font><font size="2">ddlProductCategory.DataValueField = <font size="2" color="#800000">&#8220;CategoryId&#8221;</font><font size="2">;ddlProductCategory.DataBind();</p>
<p></font></p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=12&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/27/binding-data-in-a-drpdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>maintaing  a cart</title>
		<link>http://bineethavinod.wordpress.com/2007/11/27/maintaing-a-cart/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/27/maintaing-a-cart/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:26:42 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/27/maintaing-a-cart/</guid>
		<description><![CDATA[ we  have  to  make  a  datatable  like  this  public object makeCart(){ objDT = new System.Data.DataTable(&#8220;Cart&#8221;);objDT.Columns.Add(&#8220;ID&#8221;, typeof(int));objDT.Columns[ "ID"].AutoIncrement = true;objDT.Columns["ID"].AutoIncrementSeed = 1;objDT.Columns.Add( &#8220;Quantity&#8221;, typeof(int));objDT.Columns.Add(&#8220;Product&#8221;, typeof(string));objDT.Columns.Add( &#8220;Cost&#8221;, typeof(decimal));return objDT;} in  the  page  load if (Session["Cart"]==null){ Session["Cart"] = makeCart();} then  in  the  add  to  cart  button  click  protected void btnAddtocart_Click(object sender, EventArgs e){ objDT = (DataTable)Session["Cart"];object Product = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=11&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2" color="#0000ff"> we  have  to  make  a  datatable  like  this </p>
<p>public</font><font size="2"> </font><font size="2" color="#0000ff">object</font><font size="2"> makeCart()</font><font size="2">{</p>
<p>objDT = </font><font size="2" color="#0000ff">new</font><font size="2"> System.Data.</font><font size="2" color="#008080">DataTable</font><font size="2">(</font><font size="2" color="#800000">&#8220;Cart&#8221;</font><font size="2">);</font><font size="2">objDT.Columns.Add(<font size="2" color="#800000">&#8220;ID&#8221;</font><font size="2">, </font><font size="2" color="#0000ff">typeof</font><font size="2">(</font><font size="2" color="#0000ff">int</font><font size="2">));objDT.Columns[</font></p>
<p></font><font size="2" color="#800000">"ID"</font><font size="2">].AutoIncrement = </font><font size="2" color="#0000ff">true</font><font size="2">;</font><font size="2">objDT.Columns[<font size="2" color="#800000">"ID"</font><font size="2">].AutoIncrementSeed = 1;objDT.Columns.Add(</font></p>
<p></font><font size="2" color="#800000">&#8220;Quantity&#8221;</font><font size="2">, </font><font size="2" color="#0000ff">typeof</font><font size="2">(</font><font size="2" color="#0000ff">int</font><font size="2">));</font><font size="2">objDT.Columns.Add(<font size="2" color="#800000">&#8220;Product&#8221;</font><font size="2">, </font><font size="2" color="#0000ff">typeof</font><font size="2">(</font><font size="2" color="#0000ff">string</font><font size="2">));objDT.Columns.Add(</font></p>
<p></font><font size="2" color="#800000">&#8220;Cost&#8221;</font><font size="2">, </font><font size="2" color="#0000ff">typeof</font><font size="2">(</font><font size="2" color="#0000ff">decimal</font><font size="2">));</font><font size="2" color="#0000ff">return</font><font size="2"> objDT;</font><font size="2">}</p>
<p>in  the  page  load</p>
<p><font size="2" color="#0000ff">if</font><font size="2"> (Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">]==</font><font size="2" color="#0000ff">null</font><font size="2">)</font></font><font size="2">{</p>
<p>Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">] = makeCart();</font><font size="2">}</p>
<p></font>then  in  the  add  to  cart  button  click </p>
<p><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> btnAddtocart_Click(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">EventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p>objDT = (</font><font size="2" color="#008080">DataTable</font><font size="2">)Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">];</font><font size="2"><font size="2" color="#0000ff">object</font><font size="2"> Product = lblName.Text;</font></p>
<p></font><font size="2" color="#0000ff">bool</font><font size="2"> blnMatch = </font><font size="2" color="#0000ff">false</font><font size="2">;</font><font size="2"> </font><font size="2" color="#0000ff">foreach</font><font size="2"> (</font><font size="2" color="#008080">DataRow</font><font size="2"> objDR </font><font size="2" color="#0000ff">in</font><font size="2"> objDT.Rows)</font><font size="2">{</p>
<p></font><font size="2" color="#0000ff">if</font><font size="2"> (objDR[</font><font size="2" color="#800000">"Product"</font><font size="2">].Equals(Product))</font><font size="2">{</p>
<p>objDR[</font><font size="2" color="#800000">"Quantity"</font><font size="2">] = (</font><font size="2" color="#0000ff">object</font><font size="2">)(</font><font size="2" color="#008080">Convert</font><font size="2">.ToInt32(objDR[</font><font size="2" color="#800000">"Quantity"</font><font size="2">]) + </font><font size="2" color="#008080">Convert</font><font size="2">.ToInt32(txtQty.Text));</font><font size="2">blnMatch = <font size="2" color="#0000ff">true</font><font size="2">;</font></p>
<p></font><font size="2" color="#0000ff">break</font><font size="2">;</font><font size="2">}</p>
<p>}</p>
<p></font><font size="2" color="#0000ff">if</font><font size="2"> (!blnMatch)</font><font size="2">{</p>
<p>objDR = objDT.NewRow();</p>
<p>objDR[</font><font size="2" color="#800000">"Quantity"</font><font size="2">] = </font><font size="2" color="#008080">Int32</font><font size="2">.Parse(txtQty.Text);</font><font size="2">objDR[<font size="2" color="#800000">"Product"</font><font size="2">] = lblName.Text;objDR[</font></p>
<p></font><font size="2" color="#800000">"Cost"</font><font size="2">] = </font><font size="2" color="#0000ff">decimal</font><font size="2">.Parse(lblPrice.Text);</font><font size="2">objDT.Rows.Add(objDR);</p>
<p>}</p>
<p>Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">] = objDT;</font><font size="2">Response.Redirect(</font><font size="2" color="#800000">&#8220;viewcart.aspx&#8221;</font><font size="2">);</font><font size="2">}</p>
<p></font> then  in  the  view  cart  page</p>
<p><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> Page_Load(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">EventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p></font><font size="2" color="#0000ff">if</font><font size="2"> (!IsPostBack)</font><font size="2">{</p>
<p>cart = (</font><font size="2" color="#008080">DataTable</font><font size="2">)Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">];</font><font size="2">girdCart.DataSource = cart;</p>
<p>girdCart.DataBind();</p>
<p></font><font size="2" color="#0000ff">if</font><font size="2"> (Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">] != </font><font size="2" color="#0000ff">null</font><font size="2">)</font><font size="2">{</p>
<p>total = GetItemTotal();</p>
<p>lblDispalyTot.Text = </font><font size="2" color="#800000">&#8220;Total: $&#8221;</font><font size="2"> + total.ToString();</font><font size="2">}</p>
<p>}</p>
<p>}</p>
<p></font><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> btnContunueShopping_Click(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">EventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p>Response.Redirect(</font><font size="2" color="#800000">&#8220;Home.aspx&#8221;</font><font size="2">);</font><font size="2">}</p>
<p></font><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> girdCart_RowDeleting(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">GridViewDeleteEventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p>cart = (</font><font size="2" color="#008080">DataTable</font><font size="2">)Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">];</font><font size="2">cart.Rows[e.RowIndex].Delete();</p>
<p>girdCart.DataSource = cart;</p>
<p>girdCart.DataBind();</p>
<p>total = GetItemTotal();</p>
<p>lblDispalyTot.Text = </font><font size="2" color="#800000">&#8220;Total: $&#8221;</font><font size="2"> + total.ToString();</font><font size="2" color="#0000ff">if</font><font size="2"> (cart.Rows.Count == 0)</font><font size="2">{</p>
<p>btnEmptyCart_Click(sender,e);</p>
<p>}</p>
<p>}</p>
<p></font><font size="2" color="#0000ff">public</font><font size="2"> </font><font size="2" color="#0000ff">decimal</font><font size="2"> GetItemTotal()</font><font size="2">{</p>
<p></font><font size="2" color="#0000ff">for</font><font size="2"> (intCounter = 0; intCounter &lt;= cart.Rows.Count &#8211; 1; intCounter++)</font><font size="2">{</p>
<p>objDR = cart.Rows[intCounter];</p>
<p>decRunningTotals += (</font><font size="2" color="#0000ff">decimal</font><font size="2">)(</font><font size="2" color="#008080">Convert</font><font size="2">.ToInt32(objDR[</font><font size="2" color="#800000">"Cost"</font><font size="2">]) * </font><font size="2" color="#008080">Convert</font><font size="2">.ToInt32(objDR[</font><font size="2" color="#800000">"Quantity"</font><font size="2">]));</font><font size="2">}</p>
<p></font><font size="2" color="#0000ff">return</font><font size="2"> decRunningTotals;</font><font size="2">}</p>
<p></font><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> btnCheckout_Click(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">EventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p>Response.Redirect(</font><font size="2" color="#800000">&#8220;~/SignIn.aspx&#8221;</font><font size="2">);</font><font size="2">}</p>
<p></font><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> girdCart_RowUpdating(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">GridViewUpdateEventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p></font><font size="2" color="#0000ff">string</font><font size="2"> quantity;</font><font size="2">cart = (</font><font size="2" color="#008080">DataTable</font><font size="2">)Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">];</font><font size="2">objDR = cart.Rows[e.RowIndex];</p>
<p>quantity = ((<font size="2" color="#008080">TextBox</font><font size="2">)girdCart.Rows[e.RowIndex].Cells[1].FindControl(</font><font size="2" color="#800000">&#8220;txtqty&#8221;</font><font size="2">)).Text;objDR[</font></p>
<p></font><font size="2" color="#800000">"Quantity"</font><font size="2">] = </font><font size="2" color="#008080">Convert</font><font size="2">.ToInt32(quantity);</font><font size="2">girdCart.DataSource = cart;</p>
<p>girdCart.DataBind();</p>
<p>total = GetItemTotal();</p>
<p>lblDispalyTot.Text = </font><font size="2" color="#800000">&#8220;Total: $&#8221;</font><font size="2"> + total.ToString();</font><font size="2">}</p>
<p></font><font size="2" color="#0000ff">protected</font><font size="2"> </font><font size="2" color="#0000ff">void</font><font size="2"> btnEmptyCart_Click(</font><font size="2" color="#0000ff">object</font><font size="2"> sender, </font><font size="2" color="#008080">EventArgs</font><font size="2"> e)</font><font size="2">{</p>
<p>Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">] = </font><font size="2" color="#0000ff">null</font><font size="2">;</font><font size="2">cart =(</font><font size="2" color="#008080">DataTable</font><font size="2">) Session[</font><font size="2" color="#800000">"Cart"</font><font size="2">];</font><font size="2">girdCart.DataSource = cart;</p>
<p>girdCart.DataBind();</p>
<p>lblDispalyTot.Text = </font><font size="2" color="#800000">&#8221; &#8220;</font><font size="2">;</font><font size="2">lblCart.Text = <font size="2" color="#800000">&#8220;Your Cart is empty now&#8221;</font><font size="2">;}</p>
<p></font></p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=11&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/27/maintaing-a-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
		<item>
		<title>customised  forms authentication</title>
		<link>http://bineethavinod.wordpress.com/2007/11/27/customised-forms-authentication/</link>
		<comments>http://bineethavinod.wordpress.com/2007/11/27/customised-forms-authentication/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:11:43 +0000</pubDate>
		<dc:creator>bineethavinod</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://bineethavinod.wordpress.com/2007/11/27/customised-forms-authentication/</guid>
		<description><![CDATA[in  customised  forms  authentication   we  can  use  our  database  and  with  login  controls the  webconfig  settings  for  that  is  given  below &#60;connectionStrings&#62;&#60;add name=&#8220;dbstring&#8220; connectionString=&#8220;Data Source=AST020\sqlexpress;Initial Catalog=simpleshoppingcart;uid=sa;pwd=assyst;&#8220;/&#62;&#60;/connectionStrings&#62;&#60;system.web&#62;&#60; membership defaultProvider=&#8220;CustomizedProvider&#8220;&#62;&#60;providers&#62;&#60;add connectionStringName=&#8220;dbstring&#8220; applicationName=&#8220;simpleshoppingcart&#8220; minRequiredPasswordLength=&#8220;5&#8220; minRequiredNonalphanumericCharacters=&#8220;0&#8220; name=&#8220;CustomizedProvider&#8220; type=&#8220;Membership&#8220;/&#62;&#60;/providers&#62;&#60;/ membership&#62;&#60;roleManager enabled=&#8220;true&#8220; defaultProvider=&#8220;CustomizedRoleProvider&#8220;&#62;&#60;providers&#62;&#60;add name=&#8220;CustomizedRoleProvider&#8220; type=&#8220;role&#8220; connectionStringName=&#8220;dbstring&#8220;/&#62;&#60;/ providers&#62;&#60;/roleManager&#62;&#60;authentication mode=&#8220;Forms&#8220;&#62;&#60;forms loginUrl=&#8220;SignIn.aspx&#8220; defaultUrl=&#8220;SignIn.aspx&#8220; name=&#8220;RoleBasedFormAuthentication.ASPXAUTH&#8220;/&#62;&#60;/ authentication&#62;&#60;authorization&#62;&#60; allow users=&#8220;?&#8220;/&#62;&#60;/authorization&#62;after  that  we can   restrict  the  memberes  according  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=10&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>in  customised  forms  authentication   we  can  use  our  database  and  with  login  controls</p>
<p>the  webconfig  settings  for  that  is  given  below</p>
<p><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">connectionStrings</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">add</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">name</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">dbstring</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">connectionString</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">Data Source=AST020\sqlexpress;Initial Catalog=simpleshoppingcart;uid=sa;pwd=assyst;</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">connectionStrings</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">membership</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">defaultProvider</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">CustomizedProvider</font><font size="2">&#8220;</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">providers</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">add</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">connectionStringName</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">dbstring</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">applicationName</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">simpleshoppingcart</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">minRequiredPasswordLength</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">5</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">minRequiredNonalphanumericCharacters</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">0</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">name</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">CustomizedProvider</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">type</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">Membership</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">providers</font><font size="2" color="#0000ff">&gt;&lt;/</font></font></p>
<p></font><font size="2" color="#800000">membership</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">roleManager</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">enabled</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">true</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">defaultProvider</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">CustomizedRoleProvider</font><font size="2">&#8220;</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">providers</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">add</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">name</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">CustomizedRoleProvider</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">type</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">role</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">connectionStringName</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">dbstring</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font></p>
<p></font><font size="2" color="#800000">providers</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">roleManager</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">authentication</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">mode</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">Forms</font><font size="2">&#8220;</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">forms</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">loginUrl</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">SignIn.aspx</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">defaultUrl</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">SignIn.aspx</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">name</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">RoleBasedFormAuthentication.ASPXAUTH</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font></p>
<p></font><font size="2" color="#800000">authentication</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"> </font><font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">users</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">?</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">after  that  we can   restrict  the  memberes  according  to  their  roles</font></p>
<p></font><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">authentication</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">mode</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">Forms</font><font size="2">&#8220;</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">forms</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">loginUrl</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">default.aspx</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">defaultUrl</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">default.aspx</font><font size="2">&#8220;</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">name</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">.ASPX_AUTH_COOKIE</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">authentication</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">deny</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">users</font><font size="2" color="#0000ff">=</font><font size="2">&#8220;</font><font size="2" color="#0000ff">?</font><font size="2">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"><font size="2" color="#0000ff">&lt;</font><font size="2" color="#800000">location</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">path</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">Admin</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">&gt;</font></font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">deny</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">manager</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">deny</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">SWE</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">Admin</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font></p>
<p></font><font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;&lt;/</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">location</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">location</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">path</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">SWE</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">manager</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">SWE</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">Admin</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;&lt;/</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">location</font><font size="2" color="#0000ff">&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">location</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">path</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">manager</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;&lt;</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">allow</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">manager</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;</font></font></p>
<p></font><font size="2" color="#800000">deny</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">SWE</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;</font><font size="2" color="#0000ff">&lt;<font size="2" color="#800000">deny</font><font size="2" color="#0000ff"> </font><font size="2" color="#ff0000">roles</font><font size="2" color="#0000ff">=</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">Admin</font><font size="2" color="#000000">&#8220;</font><font size="2" color="#0000ff">/&gt;&lt;/</font></font><font size="2" color="#0000ff"><font size="2" color="#800000">authorization</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">system.web</font><font size="2" color="#0000ff">&gt;&lt;/</font></font></p>
<p></font><font size="2" color="#800000">location</font><font size="2" color="#0000ff">&gt;</font><font size="2" color="#0000ff">&lt;/<font size="2" color="#800000">configuration</font><font size="2" color="#0000ff">&gt;</font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">we  cam  implement  and  use  membership  provider  class</font></p>
<p></font><font size="2" color="#0000ff">roleprovider  class</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bineethavinod.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bineethavinod.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bineethavinod.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bineethavinod.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bineethavinod.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bineethavinod.wordpress.com&amp;blog=2169110&amp;post=10&amp;subd=bineethavinod&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bineethavinod.wordpress.com/2007/11/27/customised-forms-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fd18036929c8bf0427d8096f7c0a249?s=96&#38;d=identicon" medium="image">
			<media:title type="html">bineethavinod</media:title>
		</media:content>
	</item>
	</channel>
</rss>
