<?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>Vijjendra's Blog</title>
	<atom:link href="http://vijjendra.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vijjendra.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 08 Apr 2009 18:09:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vijjendra.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/31ca97b17a6b8a325cdab4673010c06c?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Vijjendra's Blog</title>
		<link>http://vijjendra.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vijjendra.wordpress.com/osd.xml" title="Vijjendra&#039;s Blog" />
	<atom:link rel='hub' href='http://vijjendra.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Encode a password using MD5 in C#</title>
		<link>http://vijjendra.wordpress.com/2009/03/09/encode-a-password-using-md5-in-c-2/</link>
		<comments>http://vijjendra.wordpress.com/2009/03/09/encode-a-password-using-md5-in-c-2/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 15:31:00 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/2009/03/09/encode-a-password-using-md5-in-c-2/</guid>
		<description><![CDATA[Many developers save the password in normal form in Database which is not secure for the user because every one who have the access of the database view your password it is very harmful for the user. To encode the password use the using System.Security.Cryptography namespace; Following is the method to encode the pwd in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=29&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many developers save the password in normal form in Database which is not secure for the user because every one who have the access of the database view your password it is very harmful for the user.<br />
To encode the password use the using System.Security.Cryptography namespace;<br />
Following is the method to encode the pwd in MD5 format.</p>
<p>using System;<br />
using System.Collections;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Xml.Linq;<br />
using System.Collections.Generic;<br />
using System.Security.Cryptography;<br />
// method to encode password<br />
public string EncodePassword(string userpassword)<br />
{<br />
  Byte[] originalPwdBytes;<br />
  Byte[] encodedPwdBytes;<br />
  MD5 md5;<br />
//Instantiate MD5CryptoServiceProvider, get bytes for user&#8217;s original password and encode      password in MD5 format.<br />
  md5 = new MD5CryptoServiceProvider();<br />
  originalPwdBytes= ASCIIEncoding.Default.GetBytes(userpassword);<br />
  encodedPwdBytes= md5.ComputeHash(originalPwdBytes);<br />
  //Convert encoded user password in &#8216;readable&#8221; format.<br />
  return BitConverter.ToString(encodedPwdBytes);<br />
}<br />
My orginal post is <a href="http://www.codeasp.net/blogs/vijjendra/microsoft.net/69/how-to-encode-a-password-using-md5-in-c">here</a><br />
Hope it will helpful &#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=29&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/03/09/encode-a-password-using-md5-in-c-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically Create TextBox in .Net</title>
		<link>http://vijjendra.wordpress.com/2009/03/06/dynamically-create-textbox-in-net/</link>
		<comments>http://vijjendra.wordpress.com/2009/03/06/dynamically-create-textbox-in-net/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 18:58:34 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=25</guid>
		<description><![CDATA[Here we discuss to generate the textox at runtime. To create the textbox at run time for that first we take a server control Panel where we place the runtime generated textbox.Here we use a textbox and button,textbox to define the number of textbox generated at runtime ant generate the textbox on the button click. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=25&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here we discuss to generate the textox at runtime. To create the textbox at run time for that first we take a server control Panel where we place the runtime generated textbox.Here we use a textbox and button,textbox to define the number of textbox generated at runtime ant generate the textbox on the button click.<br />
following is the code for .aspx side:</p>
<div></div>
<p>code for code behind file:<br />
 protected void btnAdd_Click(object sender, EventArgs e)<br />
        {<br />
            for (int i = 0; i &lt; Convert.ToInt32(txtadd.Text); i++)<br />
            {<br />
                TextBox txt = new TextBox();<br />
                txt.Width = 300;<br />
                txt.Height = 50;<br />
                txt.ID = &#8220;txtbox&#8221; + i;<br />
                txt.TextMode = TextBoxMode.MultiLine;<br />
                pnlText.Controls.Add(txt);<br />
            }<br />
        }<br />
On the button click we define the properties of the text box which u want for runtime generated textboxes and add these textbox in the panel where we display the textbox.<br />
This is simplay for enter the value in the given textbox and click on the button and then textboxes is display in the panel.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=25&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/03/06/dynamically-create-textbox-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>Trap enter key in asp.net</title>
		<link>http://vijjendra.wordpress.com/2009/03/06/trap-enter-key-in-aspnet/</link>
		<comments>http://vijjendra.wordpress.com/2009/03/06/trap-enter-key-in-aspnet/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 18:30:47 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=21</guid>
		<description><![CDATA[One famous problem is to call selected button on the enter key.Suppose we have registration page and want when I fill all information and press enter key the submit button call.Another situation is on the login page when we press enter key login button call.In these cases we need to trap the enter key.this can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=21&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="small_font">One famous problem is to call selected button on the enter key.Suppose we have registration page and want when I fill all information and press enter key the submit button call.Another situation is on the login page when we press enter key login button call.In these cases we need to trap the enter key.this can we do in two  ways one for javascript and another from the C#.In C# code we also write the javascript code.<br />
There is many cases like user want to trap the key for whole page i.e on the page when user press enter key the target button(which we want) Call,another way is when user on the inputcontrol(like text box) then press enter key then target bbutton call.<br />
Below is The c# code to trap the enter key for all page</span></p>
<p>// Traps the enter key for all page and call the click event for the specified button control.<br />
// <strong>defaultButton </strong>is the button to click when enter is pressed</p>
<pre>public static void SetPageDefaultButton(Page page, WebControl defaultButton)
 {
   if (!page.Request.Browser.Browser.Equals("Firefox"))
    {
      // if browser is not fire fox.
      page.Form.DefaultButton = defaultButton.UniqueID;
    }
 else
 {
StringBuilder jscript = new StringBuilder();
jscript.Append("&lt;script language=\"javascript\"&gt;");
jscript.Append("&lt;!--");
jscript.Append("function PageDefaultButton(event, target) {");
jscript.Append("if ((event.keyCode == 13 || event.which == 13) &amp;&amp; !(event.target &amp;&amp; (event.target.tagName.toLowerCase() == 'textarea'))) "); jscript.Append("{");
jscript.Append("var defaultButton = document.getElementById(target);");
jscript.Append("if (defaultButton == 'undefined') defaultButton = document.all[target]; ");
jscript.Append("if (defaultButton &amp;&amp; typeof(defaultButton.click) != 'undefined') ");
jscript.Append("{");
jscript.Append("defaultButton.click();");
jscript.Append("event.cancelBubble = true;");
jscript.Append("if (event.stopPropagation) event.stopPropagation();");
jscript.Append("return false;");
jscript.Append("}}");
jscript.Append("return true;");
jscript.Append("}");
jscript.Append("// --&gt;");
jscript.Append("&lt;/script&gt;");
page.Form.Attributes.Add("onkeypress", "javascript:return PageDefaultButton(event,\'" + defaultButton.ClientID + "\')");
page.ClientScript.RegisterClientScriptBlock(string.Empty.GetType(), "PageDefaultButton", jscript.ToString());
 }
 }</pre>
<p>By this function if user press enter key then always call <strong>defaultButton. </strong>call this function on the page load.<br />
If we want when user on the specific input control and then press the enter key the specified button call.<br />
Below is the c# code for that:<strong><br />
</strong>//Traps the enter key for a control and call the click event for the specified button control.<br />
//The control to trap enter key after that input control.<br />
//The client ID of the button to click when enter is pressed</p>
<pre> public static void SetDefaultButton(WebControl inputControl, string buttonClientId)
{
    StringBuilder jscript = new StringBuilder();
    jscript.Append("&lt;script language=\"javascript\"&gt;");
   jscript.Append("&lt;!--");
   jscript.Append("function TrapEnterKey(e,n){");
   jscript.Append("var key;");
   jscript.Append("if(window.event) key = window.event.keyCode;");
   jscript.Append("else key = e.which;");
   jscript.Append("if (key == 13) {");
   jscript.Append("var o=document.getElementById(n);");
   jscript.Append("if(o!=null){");
   jscript.Append("o.click();");
   jscript.Append("return false;");
   jscript.Append("}}");
   jscript.Append("return true;");
   jscript.Append("}");
   jscript.Append("// --&gt;");
   jscript.Append("&lt;/script&gt;");
   inputControl.Attributes.Add("onkeypress", "return TrapEnterKey(event,\'" + buttonClientId + "\')");
   inputControl.Page.ClientScript.RegisterClientScriptBlock(string.Empty.GetType(), "TrapEnterKey", jscript.ToString());
        }</pre>
<p>cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=21&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/03/06/trap-enter-key-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>Server Side Validation on a particular Button Click</title>
		<link>http://vijjendra.wordpress.com/2009/02/26/server-side-validation-on-a-particular-button-click/</link>
		<comments>http://vijjendra.wordpress.com/2009/02/26/server-side-validation-on-a-particular-button-click/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 20:02:53 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=19</guid>
		<description><![CDATA[In ASP.NET there is a server side validation which is very powerful and easy to use for developers and automatically validates the user input. Beginner developer facing problem when they validate a particular section of the page and page has more than one button in this case they are facing problem. suppose we have a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=19&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In ASP.NET there is a server side validation which is very powerful and easy to use for developers and automatically validates the user input. Beginner developer facing problem when they validate a particular section of the page and page has more than one button in this case they are facing problem.<br />
suppose we have a registration page there is two button one for Save and another for Cancel and we want validation only on Save button in this case we face the problem how to restrict validation on the cancel button and it is only working on Save button.</p>
<p><strong>Solution:<br />
</strong>The solution of this problem is to use the <strong>CausesValidation</strong> Property of button control set <strong>false</strong>.<strong><br />
Syntax:</strong><br />
&lt;asp:Button Id=&#8221;btnCancel&#8221; runat=&#8221;server&#8221; Text=&#8221;Cancel&#8221; CausesValidation=&#8221;False&#8221;&gt;&lt;/asp:Button&gt;</p>
<p class="MsoNormal"><span style="font-family:&quot;"> another way is to use the ValidationGroup property.<br />
<strong>Syntax:</strong><br />
&lt;asp:TextBox ID=&#8221;txtBlogName&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:TextBox&gt;<br />
&lt;asp:RequiredFieldValidator ID=&#8221;rfvtxtBlogName&#8221; runat=&#8221;server&#8221; ControlToValidate=&#8221;txtBlogName&#8221; ValidationGroup=&#8221;SaveUpdate&#8221;&gt;&lt;/asp:RequiredFieldValidator&gt;<br />
&lt;asp:Button Id=&#8221;btnSave&#8221; runat=&#8221;server&#8221; Text=&#8221;Save&#8221; ValidationGroup=&#8221;SaveUpdate&#8221;&gt;&lt;/asp:Button&gt;<br />
<strong><br />
ValidationGroup</strong> property is used on Save button where we want to Validate the User Input i.e. <strong>ValidationGroup </strong>is used on that button on which button we want validation after that CausesValidation Property is not required on the Cancel button. if we did not use the ValidationGroup any of Server Validators then that user input field is not validate. so this is require, that every server validation control which is used on the page is contains the ValidationGroup property.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=19&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/02/26/server-side-validation-on-a-particular-button-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate Random Password</title>
		<link>http://vijjendra.wordpress.com/2009/02/24/generate-random-number/</link>
		<comments>http://vijjendra.wordpress.com/2009/02/24/generate-random-number/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 20:18:36 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=13</guid>
		<description><![CDATA[Random password increase the security of website it simply provide the non easily guessable password.Here we generate a set of random digits by combining a set of alphabets and numbers and special characters<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=13&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here we discuss how to generate the random password.<br />
Random password increase the security of website it simply provide the non easily guessable password.Here we generate a set of random digits by combining a set of alphabets and numbers and special characters. After generating the random passsword it is the combination of string,number and special characters. One of the simplest way to generate the random password via GUID(Globally Unigue ID),it is a 128 bit number producing a hexadecimal number. following is a sample code to generate random password via GUID.</p>
<p>public string RandomPassword(int length)<br />
{<br />
string randomPass= Guid.NewGuid().ToString();<br />
randomPass= randomPass.Replace(&#8220;-&#8221;,string.Empty);<br />
return randomPass.Substring(0,length).ToUpper() // this random password contains all character in uppercase.<br />
//if you want ur random password contains all character in lower case then use .ToLower()<br />
}<br />
In this NewGuid().ToString() returns a string of 32 hexadecimals (excluding the &#8220;-&#8221;).<br />
Another way to generate the random number is :</p>
<p>public string RandomPassword(int length)<br />
{<br />
// give character which you want in random generated password.<br />
char[] allowCharacter = &#8220;abcdefgijkmnopqrstwxyzABCDEFGHJKLMNPQRSTWXYZ23456789*$-+?_&amp;=!%{}/&#8221;.ToCharArray();</p>
<p>// create object of random<br />
Random RandChar = new Random();<br />
string randomPassword = &#8220;&#8221;;<br />
for (int i = 0; i &lt; length; i++)<br />
{<br />
randomPassword += allowCharacter[RandChar.Next(0, allowCharacter.Length)];<br />
}<br />
//.ToUpper() for your password is in Uppercase and ToLower() password is in Lower case.<br />
return randomPassword.ToUpper();<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=13&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/02/24/generate-random-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>Maintain Scroll Position of ASP.NET Ajax Rating Control</title>
		<link>http://vijjendra.wordpress.com/2009/02/06/maintain-scroll-position-of-aspnet-ajax-rating-control/</link>
		<comments>http://vijjendra.wordpress.com/2009/02/06/maintain-scroll-position-of-aspnet-ajax-rating-control/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 13:59:15 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=5</guid>
		<description><![CDATA[In ASP.NET&#8217;s Ajax Rating control there is a bug. When user click on the rating control it Jumps on the top of the page because it add # with url. If you put your rating control on the bottom of the page and you click on the rating control it jumps on the top of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=5&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">In ASP.NET&#8217;s Ajax Rating control there is a bug.<br />
When user click on the rating control it Jumps on the top of the page because it add <strong>#</strong> with url.<br />
If you put your rating control on the bottom of the page and you click on the rating control it jumps on the top of the page.This happens because your all image tag are in HTML&#8217;s Anchor <strong>&lt;a&gt;</strong> tag  and its href attribute set to <strong>#</strong>(view page source of ajax rating control).<br />
To remove this problem you need to add following line on the <strong>page load</strong>.</p>
<p style="text-align:left;"><span style="color:blue;"> protected</span> <span style="color:blue;">void</span> Page_Load(<span style="color:blue;">object</span> sender, <span style="color:#2b91af;">EventArgs</span> e)<br />
{<br />
Ratingcontrol.Attributes.Add(<span style="color:#a31515;">&#8220;Onclick&#8221;</span>, <span style="color:#a31515;">&#8220;return false;&#8221;</span>);<br />
}</p>
<p style="text-align:left;">This will create  java script dynamically for onclick event. That java script will override that unwanted jump to top of page.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=5&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/02/06/maintain-scroll-position-of-aspnet-ajax-rating-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
		<item>
		<title>FileUpload inside the Ajax UpdatePanel</title>
		<link>http://vijjendra.wordpress.com/2009/02/06/fileupload-inside-the-ajax-updatepanel/</link>
		<comments>http://vijjendra.wordpress.com/2009/02/06/fileupload-inside-the-ajax-updatepanel/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 13:56:55 +0000</pubDate>
		<dc:creator>vijjendra</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[FileUpload]]></category>
		<category><![CDATA[UpdatePanel]]></category>

		<guid isPermaLink="false">http://vijjendra.wordpress.com/?p=3</guid>
		<description><![CDATA[File upload control is not working when this control is inside the update panel.When we place the file upload control control inside the updatepanel and upload the file then FileUpload1.Hasfile is always false because file upload control is inside updatepanel then your file upload control does not post back. Because the file upload control works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=3&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="small_font">File upload control is not working when this control is inside the update panel.When we place the file upload control control inside the updatepanel and upload the file then FileUpload1.Hasfile is always false because file upload control is inside updatepanel then your file upload control does not post back. Because the file upload control works only when the full page postback. If you want to upload the file then you need to postback the page.So we need to create the PostBackTrigger for the button.</p>
<p>We place &lt;trigger&gt; between &lt;UpdatePanel&gt; and &lt;ContentTemplate&gt;</p>
<p>&lt;asp:UpdatePanel runat=&#8221;server&#8221; id=&#8221;UpdatePanel1&#8243;&gt;<br />
&lt;asp:UpdatePanel runat=&#8221;server&#8221; id=&#8221;UpdatePanel1&#8243;&gt;<br />
&lt;ContentTemplate&gt;<br />
&lt;asp:FileUpload runat=&#8221;server&#8221; id=&#8221;FileUpload1&#8243; /&gt;<br />
&lt;asp:Button runat=&#8221;server&#8221; id=&#8221;btnSubmit&#8221; Text=&#8221;Upload&#8221; /&gt;<br />
&lt;/ContentTemplate&gt;<br />
&lt;Triggers&gt;<br />
&lt;asp:postbacktrigger ControlID=&#8221;btnSubmit&#8221; /&gt;<br />
&lt;/Triggers&gt;<br />
&lt;/asp:UpdatePanel&gt;</p>
<p>Triggers allow us to force a post back.</p>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vijjendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vijjendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vijjendra.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vijjendra.wordpress.com&amp;blog=6478068&amp;post=3&amp;subd=vijjendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vijjendra.wordpress.com/2009/02/06/fileupload-inside-the-ajax-updatepanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ff2991930d863eef9f1e8c631001cd2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vij</media:title>
		</media:content>
	</item>
	</channel>
</rss>
