<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>DOT NET SQL PREPARATION</title>
	<atom:link href="http://dotnetsqlinterview.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetsqlinterview.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 20 Jul 2008 17:54:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dotnetsqlinterview.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/cfbd9a9d031b3cc5f33d0b01602727b6?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>DOT NET SQL PREPARATION</title>
		<link>http://dotnetsqlinterview.wordpress.com</link>
	</image>
			<item>
		<title>To Read a Assembly file using Reflection in C#.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-read-a-assembly-file-using-reflection-in-cnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-read-a-assembly-file-using-reflection-in-cnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:54:45 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=74</guid>
		<description><![CDATA[using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Web;
using System.IO;
using System.Net;
namespace ConsoleExample
{
class LoadAssembly
{
public void LoadAssembly_FromFile()
{
Assembly Ass = System.Reflection.Assembly.LoadFrom(&#8220;D:\\Parthiban\\ConsoleExample\\CrystalDecisions.Shared.dll&#8221;);
Type Asstype = Ass.GetType();
#region Get Constructor Info
ConstructorInfo[] I = Asstype.GetConstructors();
#endregion
#region Extractiong Properties Info
PropertyInfo[] PrInfo = Asstype.GetProperties();
#endregion
#region Extracting Method Info
MethodInfo[] MeInfo = Asstype.GetMethods();
Console.WriteLine(&#8220;Return Parameter \t&#8221; + MeInfo[0].ReturnType);
Console.WriteLine(&#8220;Name \t&#8221; + MeInfo[0].Name);
Console.WriteLine(&#8220;Module \t&#8221; + MeInfo[0].Module);
Console.WriteLine(&#8220;Method Body \t&#8221; + MeInfo[0].GetMethodBody());
Console.ReadLine();
#endregion
#region Extracting Event Info
EventInfo[] EveInfo = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=74&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Reflection;<br />
using System.Web;<br />
using System.IO;<br />
using System.Net;</p>
<p>namespace ConsoleExample<br />
{<br />
class LoadAssembly<br />
{<br />
public void LoadAssembly_FromFile()<br />
{<br />
Assembly Ass = System.Reflection.Assembly.LoadFrom(&#8220;D:\\Parthiban\\ConsoleExample\\CrystalDecisions.Shared.dll&#8221;);<br />
Type Asstype = Ass.GetType();</p>
<p>#region Get Constructor Info<br />
ConstructorInfo[] I = Asstype.GetConstructors();<br />
#endregion</p>
<p>#region Extractiong Properties Info<br />
PropertyInfo[] PrInfo = Asstype.GetProperties();<br />
#endregion</p>
<p>#region Extracting Method Info<br />
MethodInfo[] MeInfo = Asstype.GetMethods();<br />
Console.WriteLine(&#8220;Return Parameter \t&#8221; + MeInfo[0].ReturnType);<br />
Console.WriteLine(&#8220;Name \t&#8221; + MeInfo[0].Name);<br />
Console.WriteLine(&#8220;Module \t&#8221; + MeInfo[0].Module);<br />
Console.WriteLine(&#8220;Method Body \t&#8221; + MeInfo[0].GetMethodBody());<br />
Console.ReadLine();<br />
#endregion</p>
<p>#region Extracting Event Info<br />
EventInfo[] EveInfo = Asstype.GetEvents();<br />
#endregion<br />
Console.ReadLine();<br />
}<br />
}<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/74/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/74/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=74&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-read-a-assembly-file-using-reflection-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Cookiless Session State in ASP.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/cookiless-session-state-in-aspnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/cookiless-session-state-in-aspnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:53:46 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=72</guid>
		<description><![CDATA[When each user browse a Page the unique Session  Object is created&#8230;.Session Object is idendified by unique session Id.
The Session ID is Sent back to the client in the form of cookies.
Some browser does not support cookies.. So that we can set cooliless=true.
For that&#8230; the Session ID Sent to the URL QueryString.
    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=72&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When each user browse a Page the unique Session  Object is created&#8230;.Session Object is idendified by unique session Id.<br />
The Session ID is Sent back to the client in the form of cookies.</p>
<p>Some browser does not support cookies.. So that we can set cooliless=true.</p>
<p>For that&#8230; the Session ID Sent to the URL QueryString.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=72&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/cookiless-session-state-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Passing Object Reference to a Function</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/passing-object-reference-to-a-function/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/passing-object-reference-to-a-function/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:52:36 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=70</guid>
		<description><![CDATA[While Passing reference to the function any changes made to  that variables inside the Function.That will affect the
Main variable value.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
When we can Pass it object value as variables it just make a Copy of that variables&#8230;&#8230; and than it takes to perform
an operation.But while passing the reference Both variables are refer to the same memory [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=70&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>While Passing reference to the function any changes made to  that variables inside the Function.That will affect the<br />
Main variable value.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
When we can Pass it object value as variables it just make a Copy of that variables&#8230;&#8230; and than it takes to perform<br />
an operation.But while passing the reference Both variables are refer to the same memory location.</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;</p>
<p>namespace Java2s<br />
{<br />
enum constants<br />
{<br />
x=1,<br />
a=2,<br />
b=3<br />
}</p>
<p>class Program<br />
{</p>
<p>static void Main(string[] args)<br />
{<br />
Console.WriteLine(constants.a);<br />
Console.WriteLine(constants.b);<br />
Console.WriteLine(constants.x);<br />
Console.WriteLine(int.MaxValue);<br />
Console.ReadLine();<br />
int a = 1;<br />
int b = 2;<br />
Console.WriteLine(&#8220;Before Reference a&amp;b is   &#8220;+a +  &#8220;   &#8221; +b);<br />
Program Obj = new Program();<br />
Console.WriteLine(Obj.Addition(ref a, ref  b));</p>
<p>Console.WriteLine(&#8220;After Reference a&amp;b is   &#8221; + a + &#8220;   &#8221; + b);<br />
Console.ReadLine();<br />
}<br />
public int Addition(ref int a,ref int b)<br />
{<br />
a = 2;<br />
b = 3;<br />
return (a + b);<br />
}<br />
}</p>
<p>}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/70/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/70/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=70&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/passing-object-reference-to-a-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Overloaded Constructor in C#.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/overloaded-constructor-in-cnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/overloaded-constructor-in-cnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:51:35 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=68</guid>
		<description><![CDATA[A class can have any number of constructor.
OverloadConstructor is nothing but  the Constructor having different set of parameters.
1.Under this type of situation ,how to call one Constructor to another constructor.
For the below Example when creating Object to the Parameter 2 Constructor it automatically redire
-ct to the Parameter 3 Constructor.The Parameter 2 Constructor wont&#8217;t called
///////////////////////////////////////////////////////////////////////////////////////////
using System;
using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=68&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A class can have any number of constructor.</p>
<p>OverloadConstructor is nothing but  the Constructor having different set of parameters.</p>
<p>1.Under this type of situation ,how to call one Constructor to another constructor.</p>
<p>For the below Example when creating Object to the Parameter 2 Constructor it automatically redire<br />
-ct to the Parameter 3 Constructor.The Parameter 2 Constructor wont&#8217;t called</p>
<p>///////////////////////////////////////////////////////////////////////////////////////////<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;</p>
<p>namespace ConsoleExample<br />
{<br />
class OverloadedConstructor<br />
{<br />
int i;<br />
string Name;<br />
string Native;</p>
<p>public OverloadedConstructor()<br />
{<br />
Console.WriteLine(&#8220;No Parameter Constructor&#8221;);<br />
Console.ReadLine();</p>
<p>}<br />
public OverloadedConstructor(string Name, string Native):this(&#8220;Pattukkottai&#8221;)<br />
{<br />
Console.WriteLine(&#8220;2 Parameter Constructor&#8221;);<br />
Console.WriteLine(Name);<br />
Console.WriteLine(Native);<br />
Console.ReadLine();<br />
}<br />
public OverloadedConstructor(string Native)<br />
{<br />
Console.WriteLine(&#8220;1 Parameter Constructor&#8221;);<br />
Console.ReadLine();</p>
<p>}</p>
<p>}<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/68/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/68/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=68&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/overloaded-constructor-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>To Call a Base Class Constructor From  Derived Class Constructor Calling in C#.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-call-a-base-class-constructor-from-derived-class-constructor-calling-in-cnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-call-a-base-class-constructor-from-derived-class-constructor-calling-in-cnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:50:37 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=66</guid>
		<description><![CDATA[class CheckStatic:NewKeyWord
{
public CheckStatic():base()
{
Console.WriteLine(&#8220;I am a Derived Class Constructor&#8221;);
}
public void CheckStatic1()
{
base.GetData1();
}
}
///////////////////////////////////////////
Use the (Base) Keyword to call a Base Class Constructor.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=66&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>class CheckStatic:NewKeyWord<br />
{</p>
<p>public CheckStatic():base()<br />
{<br />
Console.WriteLine(&#8220;I am a Derived Class Constructor&#8221;);<br />
}</p>
<p>public void CheckStatic1()<br />
{<br />
base.GetData1();<br />
}<br />
}<br />
///////////////////////////////////////////</p>
<p>Use the (Base) Keyword to call a Base Class Constructor.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=66&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-call-a-base-class-constructor-from-derived-class-constructor-calling-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic 64-bit Encoding and Decoding in C#.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/basic-64-bit-encoding-and-decoding-in-cnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/basic-64-bit-encoding-and-decoding-in-cnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:49:23 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=64</guid>
		<description><![CDATA[byte[] Keybyte = new byte[Key.Length];
System.Text.ASCIIEncoding Encoding = new System.Text.ASCIIEncoding();
return  Convert.ToBase64String(Encoding.GetBytes(Key) );
///// U can   also use  it to convert  string to Bytes.
Short Method:
string OrderCode = &#8220;Ord12011982&#8243;;
#region Encode
byte[] Enc = ASCIIEncoding.UTF7.GetBytes(OrderCode);
string EncString = Convert.ToBase64String(Enc);
#endregion
#region Decode
byte[] Dec = Convert.FromBase64String(EncString);
string b = ASCIIEncoding.UTF7.GetString(Dec);
#endregion
Tou can al use UTF8,UTF32
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=64&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>byte[] Keybyte = new byte[Key.Length];<br />
System.Text.ASCIIEncoding Encoding = new System.Text.ASCIIEncoding();</p>
<p>return  Convert.ToBase64String(Encoding.GetBytes(Key) );</p>
<p>///// U can   also use  it to convert  string to Bytes.</p>
<p>Short Method:</p>
<p>string OrderCode = &#8220;Ord12011982&#8243;;</p>
<p>#region Encode<br />
byte[] Enc = ASCIIEncoding.UTF7.GetBytes(OrderCode);<br />
string EncString = Convert.ToBase64String(Enc);<br />
#endregion</p>
<p>#region Decode<br />
byte[] Dec = Convert.FromBase64String(EncString);<br />
string b = ASCIIEncoding.UTF7.GetString(Dec);<br />
#endregion</p>
<p>Tou can al use UTF8,UTF32</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=64&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/basic-64-bit-encoding-and-decoding-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>To Change the gridview lines color in ASP.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-change-the-gridview-lines-color-in-aspnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-change-the-gridview-lines-color-in-aspnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:48:08 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=62</guid>
		<description><![CDATA[&#60;asp:DataGrid ID=&#8221;DataGrid1&#8243; runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;False&#8221;
BorderColor=&#8221;Black&#8221; BorderStyle=&#8221;Solid&#8221; BorderWidth=&#8221;1px&#8221; Width=&#8221;300px&#8221; PageSize=&#8221;7&#8243;&#62;
&#60;Columns&#62;
&#60;asp:TemplateColumn ItemStyle-BorderColor=&#8221;blue&#8221; ItemStyle-BorderStyle=&#8221;solid&#8221; ItemStyle-BorderWidth=&#8221;2px&#8221;&#62;
&#60;ItemTemplate&#62;
&#60;center&#62;
&#60;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8217;Hello&#8217;&#62;&#60;/asp:Label&#62;
&#60;/center&#62;
&#60;/ItemTemplate&#62;
&#60;HeaderStyle HorizontalAlign=&#8221;Center&#8221; /&#62;
&#60;/asp:TemplateColumn&#62;
&#60;AlternatingItemStyle BackColor=&#8221;Gainsboro&#8221; BorderColor=&#8221;White&#8221; /&#62;
&#60;HeaderStyle BackColor=&#8221;Gray&#8221; /&#62;
&#60;EditItemStyle BorderColor=&#8221;White&#8221; /&#62;
&#60;ItemStyle BorderColor=&#8221;White&#8221; /&#62;
&#60;/asp:DataGrid&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=62&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&lt;asp:DataGrid ID=&#8221;DataGrid1&#8243; runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;False&#8221;<br />
BorderColor=&#8221;Black&#8221; BorderStyle=&#8221;Solid&#8221; BorderWidth=&#8221;1px&#8221; Width=&#8221;300px&#8221; PageSize=&#8221;7&#8243;&gt;<br />
&lt;Columns&gt;<br />
&lt;asp:TemplateColumn ItemStyle-BorderColor=&#8221;blue&#8221; ItemStyle-BorderStyle=&#8221;solid&#8221; ItemStyle-BorderWidth=&#8221;2px&#8221;&gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;center&gt;<br />
&lt;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8217;Hello&#8217;&gt;&lt;/asp:Label&gt;<br />
&lt;/center&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;HeaderStyle HorizontalAlign=&#8221;Center&#8221; /&gt;<br />
&lt;/asp:TemplateColumn&gt;<br />
&lt;AlternatingItemStyle BackColor=&#8221;Gainsboro&#8221; BorderColor=&#8221;White&#8221; /&gt;<br />
&lt;HeaderStyle BackColor=&#8221;Gray&#8221; /&gt;<br />
&lt;EditItemStyle BorderColor=&#8221;White&#8221; /&gt;<br />
&lt;ItemStyle BorderColor=&#8221;White&#8221; /&gt;<br />
&lt;/asp:DataGrid&gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=62&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-change-the-gridview-lines-color-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Region Based Default Button in ASP.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/region-based-default-button-in-aspnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/region-based-default-button-in-aspnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:47:16 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=60</guid>
		<description><![CDATA[EmailTextBox.Attributes.Add(&#8220;onKeyPress&#8221;, &#8220;javascript:if (event.keyCode == 13) __doPostBack(&#8216;&#8221; + LoginButton.UniqueID + &#8220;&#8216;,&#8221;)&#8221;);
Another one Simple Method is use the Panel inside it put the Default Button Focus To It
&#60;asp:Panel ID=&#8221;Hi&#8221; runat=&#8221;server&#8221; DefaultButton=&#8221;Button1&#8243;&#62;
You can also  kept the focus coding at the Form tag itself
&#60;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;  defaultbutton=&#8221;Button3&#8243; &#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=60&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>EmailTextBox.Attributes.Add(&#8220;onKeyPress&#8221;, &#8220;javascript:if (event.keyCode == 13) __doPostBack(&#8216;&#8221; + LoginButton.UniqueID + &#8220;&#8216;,&#8221;)&#8221;);</p>
<p>Another one Simple Method is use the Panel inside it put the Default Button Focus To It<br />
&lt;asp:Panel ID=&#8221;Hi&#8221; runat=&#8221;server&#8221; DefaultButton=&#8221;Button1&#8243;&gt;</p>
<p>You can also  kept the focus coding at the Form tag itself<br />
&lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;  defaultbutton=&#8221;Button3&#8243; &gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=60&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/region-based-default-button-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>Transaction in C#.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/transaction-in-cnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/transaction-in-cnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:45:47 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=58</guid>
		<description><![CDATA[SqlConnection conn = new SqlConnection(connString);
SqlTransaction trans = conn.BeginTransaction();
try
{
SqlCommand cmd = new SqlCommand(&#8220;MyWriteProc&#8221;,conn, trans);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(&#8230;.
&#8230;
// additional transactioned writes to database
trans.Commit();
}
catch
{
trans.Rollback();
}
When you use ADO.NET manual transactions, you can set the desired isolation
level on the BeginTransacion method as shown in the following code fragment.
SqlConnection conn = new SqlConnection(connString);
SqlTransaction trans = conn.BeginTransaction(IsolationLevel.ReadCommitted);
       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=58&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SqlConnection conn = new SqlConnection(connString);<br />
SqlTransaction trans = conn.BeginTransaction();<br />
try<br />
{<br />
SqlCommand cmd = new SqlCommand(&#8220;MyWriteProc&#8221;,conn, trans);<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
cmd.Parameters.Add(&#8230;.<br />
&#8230;<br />
// additional transactioned writes to database<br />
trans.Commit();<br />
}<br />
catch<br />
{<br />
trans.Rollback();<br />
}<br />
When you use ADO.NET manual transactions, you can set the desired isolation<br />
level on the BeginTransacion method as shown in the following code fragment.</p>
<p>SqlConnection conn = new SqlConnection(connString);<br />
SqlTransaction trans = conn.BeginTransaction(IsolationLevel.ReadCommitted);</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=58&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/transaction-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
		<item>
		<title>To Send an XML stream to another Page in ASP.NET</title>
		<link>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-send-an-xml-stream-to-another-page-in-aspnet/</link>
		<comments>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-send-an-xml-stream-to-another-page-in-aspnet/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:43:55 +0000</pubDate>
		<dc:creator>btechparthi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://dotnetsqlinterview.wordpress.com/?p=56</guid>
		<description><![CDATA[using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Net;
public partial class SendStream : System.Web.UI.Page
{
HttpWebRequest MyRequest;
#region Page_Load
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion
#region Send_Stream
protected void Button1_Click(object sender, EventArgs e)
{
try
{
using(SqlConnection SQLCon = new SqlConnection(&#8220;server=.;database=TEST;user id=sa;password=sa&#8221;))
{
SQLCon.Open();
string Str = &#8220;SELECT * FROM CATEGORY AS CATEGORY&#8221;;
SqlCommand SQLCmd = new SqlCommand(Str, SQLCon);
DataSet Ds = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=56&subd=dotnetsqlinterview&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Collections;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
using System.Data.SqlClient;<br />
using System.IO;<br />
using System.Text;<br />
using System.Xml;<br />
using System.Xml.Serialization;<br />
using System.Net;</p>
<p>public partial class SendStream : System.Web.UI.Page<br />
{</p>
<p>HttpWebRequest MyRequest;<br />
#region Page_Load<br />
protected void Page_Load(object sender, EventArgs e)<br />
{</p>
<p>}<br />
#endregion</p>
<p>#region Send_Stream<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
using(SqlConnection SQLCon = new SqlConnection(&#8220;server=.;database=TEST;user id=sa;password=sa&#8221;))<br />
{</p>
<p>SQLCon.Open();<br />
string Str = &#8220;SELECT * FROM CATEGORY AS CATEGORY&#8221;;<br />
SqlCommand SQLCmd = new SqlCommand(Str, SQLCon);<br />
DataSet Ds = new DataSet();<br />
SqlDataAdapter SQLAdapter = new SqlDataAdapter(SQLCmd);<br />
SQLAdapter.Fill(Ds, &#8220;Category&#8221;);<br />
ASCIIEncoding Encoding = new ASCIIEncoding();<br />
byte[] Data = Encoding.GetBytes(Ds.GetXml());<br />
MyRequest = (HttpWebRequest)WebRequest.Create(&#8220;http://localhost:3665/WEbsite1/ReceiveStream.aspx&#8221;);<br />
MyRequest.Method = &#8220;Post&#8221;;<br />
MyRequest.ContentLength = Data.Length;<br />
MyRequest.ContentType = &#8220;application/xml&#8221;;<br />
MyRequest.KeepAlive = false;<br />
//Send the Stream<br />
using(Stream RequestStream=MyRequest.GetRequestStream())<br />
{<br />
RequestStream.Write(Data, 0, Data.Length);<br />
}<br />
//Read the Response.<br />
string Response_Xml = string.Empty;<br />
using(HttpWebResponse MyResponse=(HttpWebResponse)MyRequest.GetResponse())<br />
{<br />
using (Stream ResponseStream =MyResponse.GetResponseStream())<br />
{<br />
using(StreamReader ResponseStreamReader=new StreamReader(ResponseStream))<br />
{<br />
Response_Xml = ResponseStreamReader.ReadToEnd();<br />
}<br />
}</p>
<p>}</p>
<p>}</p>
<p>}<br />
catch (Exception Ex)<br />
{<br />
throw new Exception(Ex.Message);<br />
}</p>
<p>}<br />
#endregion<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetsqlinterview.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetsqlinterview.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetsqlinterview.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetsqlinterview.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetsqlinterview.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetsqlinterview.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetsqlinterview.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetsqlinterview.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetsqlinterview.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetsqlinterview.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetsqlinterview.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetsqlinterview.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetsqlinterview.wordpress.com&blog=2769727&post=56&subd=dotnetsqlinterview&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetsqlinterview.wordpress.com/2008/07/20/to-send-an-xml-stream-to-another-page-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba4bbc372492b2176513ee9b4d8f89ca?s=96&#38;d=identicon" medium="image">
			<media:title type="html">btechparthi</media:title>
		</media:content>
	</item>
	</channel>
</rss>