<?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>Dotnetraja's Weblog &#187; General</title>
	<atom:link href="http://dotnetraja.wordpress.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetraja.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 11:25:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dotnetraja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4ba1bff7a8d3dcdd355f1044aa421165?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dotnetraja's Weblog &#187; General</title>
		<link>http://dotnetraja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetraja.wordpress.com/osd.xml" title="Dotnetraja&#8217;s Weblog" />
		<item>
		<title>Redirect page with out flickering in donnet</title>
		<link>http://dotnetraja.wordpress.com/2009/10/29/redirect-page-with-out-flickers/</link>
		<comments>http://dotnetraja.wordpress.com/2009/10/29/redirect-page-with-out-flickers/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:03:36 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=65</guid>
		<description><![CDATA[Redirecting from one page to another will get postback flicker. If use the following code it will not get flicker.
 
 
&#60;script type=&#8221;text/javascript&#8221;&#62;
function DoAsyncRequest(){
ajaxObj.Open(
var ajaxObj = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;); &#8220;POST&#8221;, &#8220;http://localhost:5924/Charts/default.aspx&#8221;, false); //ajaxObj.Open(&#8220;POST&#8221;, &#8220;http://www.microsoft.com&#8221;, false);
 
 


ajaxObj.SetRequestHeader(
ajaxObj.Send();
{
document.write(ajaxObj.responseText);
}
}
&#8220;Content-Type&#8221;, &#8220;application/x-www-form-urlencoded&#8221;); if (ajaxObj.status == 200) 

&#160;

&#60;/
script&#62;
// Code behind

&#160;

Button2.OnClientClick =
&#8220;javascript:DoAsyncRequest();return false;&#8221;; 

&#160;
&#160;



       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=65&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">Redirecting from one page to another will get postback flicker. If use the following code it will not get flicker.</span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"> </span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"> </span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">function DoAsyncRequest()</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">{</span></span></div>
<p>ajaxObj.Open(</p>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">var</span></span><span style="font-size:x-small;"> ajaxObj = </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">new</span></span><span style="font-size:x-small;"> ActiveXObject(</span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;Microsoft.XMLHTTP&#8221;</span></span><span style="font-size:x-small;">); </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;POST&#8221;</span></span><span style="font-size:x-small;">, </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;http://localhost:5924/Charts/default.aspx&#8221;</span></span><span style="font-size:x-small;">, </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">false</span></span><span style="font-size:x-small;">); </span><span style="color:#008000;font-size:x-small;"><span style="color:#008000;font-size:x-small;">//ajaxObj.Open(&#8220;POST&#8221;, &#8220;http://www.microsoft.com&#8221;, false);</span></span></span></span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"> </span></span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"> </span></span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"></span></span></span></div>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"></p>
<div><span style="font-size:x-small;">ajaxObj.SetRequestHeader(</span></div>
<div><span style="font-size:x-small;">ajaxObj.Send();</span></div>
<div><span style="font-size:x-small;">{</span></div>
<div><span style="font-size:x-small;">document.write(ajaxObj.responseText);</span></div>
<div><span style="font-size:x-small;">}</span></div>
<p><span style="font-size:x-small;">}</p>
<div><span style="font-size:x-small;"><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;Content-Type&#8221;</span></span><span style="font-size:x-small;">, </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;application/x-www-form-urlencoded&#8221;</span></span><span style="font-size:x-small;">); </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">if</span></span><span style="font-size:x-small;"> (ajaxObj.status == 200) </span></span></div>
<p><span style="font-size:x-small;">
<p>&nbsp;</p>
<p></span></p>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;/</span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">script</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&gt;</span></span></span></span></span></span></span></div>
<div><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">// Code behind</span></span></span></span></span></div>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">
<p>&nbsp;</p>
<p></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;">Button2.OnClientClick =</span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;javascript:DoAsyncRequest();return false;&#8221;</span></span><span style="font-size:x-small;">; </span></span></span></div>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></span></span></p>
<p></span></span></span></span></p>
<p></span></span></span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=65&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2009/10/29/redirect-page-with-out-flickers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Assign a value to a textbox which is in password mode</title>
		<link>http://dotnetraja.wordpress.com/2008/08/20/assign-a-value-to-a-textbox-which-is-in-password-mode/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/20/assign-a-value-to-a-textbox-which-is-in-password-mode/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 13:09:13 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=24</guid>
		<description><![CDATA[Assign a value to a textbox which is in password mode
[ Assign password value to a text box]
 txtPassword.Attributes.Add(&#8220;value&#8221;, password);
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=24&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Assign a value to a textbox which is in password mode<br />
[ Assign password value to a text box]<br />
 txtPassword.Attributes.Add(&#8220;value&#8221;, password);</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=24&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/20/assign-a-value-to-a-textbox-which-is-in-password-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoid duplicate insertion while page refresh</title>
		<link>http://dotnetraja.wordpress.com/2008/08/18/avoid-duplicate-insertion-while-page-refresh/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/18/avoid-duplicate-insertion-while-page-refresh/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 15:52:45 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=16</guid>
		<description><![CDATA[ 

 Whenever you insert one record and after that if u click on refresh, again the same record insert once again. To avoid that we can use the following code in page load. And whereever u want simply u can use 
if (!isrefresh){ }
 
 
 
 

if (Session["postid"] != null &#38;&#38; ViewState["postid"] != null)
{
if (ViewState["postid"].ToString() != Session["postid"
].ToString()) 
 
 



 




IsPageRefresh =

 
 


true;


}
Session["postid"] = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=16&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> </p>
<div><span style="font-size:x-small;"></p>
<div><span style="font-size:x-small;"> Whenever you insert one record and after that if u click on refresh, again the same record insert once again. To avoid that we can use the following code in page load. And whereever u want simply u can use </span></div>
<div><span style="font-size:x-small;">if (!isrefresh){ </span><span style="font-size:x-small;">}</span></div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p></span></div>
<p><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;"> (Session[</span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">] != </span><span style="font-size:x-small;color:#0000ff;">null</span><span style="font-size:x-small;"> &amp;&amp; ViewState[</span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">] != </span><span style="font-size:x-small;color:#0000ff;">null</span><span style="font-size:x-small;">)</span></p>
<p><span style="font-size:x-small;">{</span></p>
<p><span style="font-size:x-small;color:#0000ff;">if</span><span style="font-size:x-small;"> (ViewState[</span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">].ToString() != Session[</span><span style="font-size:x-small;color:#a31515;">"postid"</span></p>
<div><span style="font-size:x-small;">].ToString()) </span></div>
<div><span style="font-size:x-small;"> </span></div>
<p><span style="font-size:x-small;"> </p>
<p></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"></p>
<div></div>
<p> </p>
<p></span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"></span></span></span></div>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"></p>
<div>
<div><span style="font-size:x-small;">IsPageRefresh =</span></div>
</div>
<div><span style="font-size:x-small;"> </span></div>
<p></span></span></span><span style="font-size:x-small;"> </p>
<p></span></span></p>
<div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">true</span><span style="font-size:x-small;">;</span></span></span></div>
</div>
<div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">}</span></span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;">Session[</span></span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">] = System.</span><span style="font-size:x-small;color:#2b91af;">Guid</span><span style="font-size:x-small;">.NewGuid().ToString();</span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;">ViewState[</span></span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">] = Session[</span><span style="font-size:x-small;color:#a31515;">"postid"</span><span style="font-size:x-small;">];</span></div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=16&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/18/avoid-duplicate-insertion-while-page-refresh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
	</channel>
</rss>