<?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>Rajnish Blog.......</title>
	<atom:link href="http://rajanswer.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajanswer.wordpress.com</link>
	<description>.Asp.net , JavaScript, Sql Server..</description>
	<lastBuildDate>Sun, 18 Apr 2010 02:56:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rajanswer.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rajnish Blog.......</title>
		<link>http://rajanswer.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rajanswer.wordpress.com/osd.xml" title="Rajnish Blog......." />
	<atom:link rel='hub' href='http://rajanswer.wordpress.com/?pushpress=hub'/>
		<item>
		<title>C# Basic</title>
		<link>http://rajanswer.wordpress.com/2010/04/18/c-basic/</link>
		<comments>http://rajanswer.wordpress.com/2010/04/18/c-basic/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 02:56:09 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[FAQ Dot Net]]></category>
		<category><![CDATA[c# Basic]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=242</guid>
		<description><![CDATA[1.What Is Namespaces ? Namespaces allow you to create a system to organize your code. A good way to organize your namespaces is via a hierarchical system. 2.What are the uses of using keyword? There are two uses of using keyword in C# a) Using as Directive in C# can be used for importing namespaces [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=242&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1.What Is Namespaces ?</strong><br />
Namespaces allow you to create a system to organize your code. A good way to organize your namespaces is via a hierarchical system.</p>
<p><strong>2.What are the uses of using keyword?</strong><br />
<em>There are two uses of using keyword in C#</em><br />
a) Using as Directive in C# can be used for importing namespaces to your classes. Everybody knows this.</p>
<p>b)Another most useful advantage is it can be used in codeblocks what is does is it calls the Dispose() method automatically to release the resources and also automatically implements the try catch blocks for you.Here it is called a using statement.So the advantage is that we dont have to explicitly write a try-catch block and our code looks small.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=242&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2010/04/18/c-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>How many types of cookies are available in asp.net?</title>
		<link>http://rajanswer.wordpress.com/2010/03/10/how-many-types-of-cookies-are-available-in-asp-net/</link>
		<comments>http://rajanswer.wordpress.com/2010/03/10/how-many-types-of-cookies-are-available-in-asp-net/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 18:49:34 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Cookies in ASP.NET]]></category>
		<category><![CDATA[cookie]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=236</guid>
		<description><![CDATA[A cookie is a small amount of datastored either in a text file on the client&#8217;s file system or in-memory in theclient browser session. Cookies are mainly used for tracking data settings. Cookie size is limited to 4096 bytes (4KB). Two type of cookies &#8212; Persistent cookies are stored on your computer hard disk. They [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=236&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A <strong> cookie </strong> is a small amount of datastored either in a text file on the client&#8217;s file system or in-memory in theclient browser session. Cookies are mainly used for tracking data settings. Cookie size is limited to 4096 bytes (4KB). Two type of cookies &#8212;</p>
<p><strong>Persistent</strong> cookies are stored on your computer hard disk. They stay on your hard disk and can be accessed by web servers until they are deleted or have expired. Persistentcookies are not affected by your browser setting that deletes temporary files when you close your browser.</p>
<p><strong>Non-persistent</strong> cookies are saved only while your web browser is running. They can be used by a web server only until you close your browser. They are not saved on your disk. Microsoft Internet Explorer 5.5 can be configured to accept non-persistent cookies but reject persistent cookies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=236&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2010/03/10/how-many-types-of-cookies-are-available-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>Place Of SW Engineer</title>
		<link>http://rajanswer.wordpress.com/2010/02/04/place-of-sw-engineer/</link>
		<comments>http://rajanswer.wordpress.com/2010/02/04/place-of-sw-engineer/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 10:27:53 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[Jokes]]></category>
		<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=234</guid>
		<description><![CDATA[A Priest, a Doctor and a Software Engineer die and go the heavens gate, they hear gods voice and it says &#8221; My sons I am really very sorry but the heaven is full and I can accommodate only one of u. so to choose the rightful person one by one tell me what u [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=234&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A Priest, a Doctor and a Software Engineer die and go the heavens gate, they hear gods voice and it says &#8221; My sons I am really very sorry but the heaven is full and I can accommodate only one of u. so to choose the rightful<br />
person one by one tell me what u have done in ur lifetime.&#8221;</p>
<p>The priest goes up first and says&#8221; well god I am a priest I am ur humble servant and have spent all my life working to<br />
spread ur message.&#8221;</p>
<p>The doctor goes up next and says &#8221; well I am a doctor and I have helped thousands of people recover from there illnesses and saved countless lives.&#8221;</p>
<p>The Software Engineer goes up and says &#8221; well I have spend my full life to Develop,Design,Test the software &#8221; AND<br />
before the Software Engineer could say any further the heavens gate open and god comes out and says to the Software Engineer &amp; Say &#8220;no more son&#8221; come with me coz u have already been through hell.&#8221;</p>
<p>Moral of the story: Software Engineer always land up in heaven cause their mortal life is hell. so all us do anything, our place in heaven is fixed</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=234&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2010/02/04/place-of-sw-engineer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>Customer Care</title>
		<link>http://rajanswer.wordpress.com/2010/02/04/customer-care/</link>
		<comments>http://rajanswer.wordpress.com/2010/02/04/customer-care/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 10:16:24 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[Jokes]]></category>
		<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=232</guid>
		<description><![CDATA[Customer: &#8220;You&#8217;ve got to fix my computer. I urgently need to print document, but the computer won&#8217;t boot properly. &#8221; Tech Support: &#8220;What does it say?&#8221; Customer: &#8220;Something about an error and non-system disk.&#8221; Tech Support: &#8220;Look at your machine. Is there a floppy inside?&#8221; Customer: &#8220;No, but there&#8217;s a sticker saying there&#8217;s an Intel [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=232&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Customer: &#8220;You&#8217;ve got to fix my computer. I urgently need to print document, but the computer won&#8217;t boot properly.</p>
<p>&#8221;  Tech Support: &#8220;What does it say?&#8221;</p>
<p>Customer: &#8220;Something about an error and non-system disk.&#8221;</p>
<p>Tech Support: &#8220;Look at your machine. Is there a floppy inside?&#8221;</p>
<p>Customer: &#8220;No, but there&#8217;s a sticker saying there&#8217;s an Intel inside.&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=232&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2010/02/04/customer-care/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Application State.</title>
		<link>http://rajanswer.wordpress.com/2010/02/02/web-application-state/</link>
		<comments>http://rajanswer.wordpress.com/2010/02/02/web-application-state/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 05:10:30 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[FAQ Dot Net]]></category>
		<category><![CDATA[Web Application State]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/2010/02/02/web-application-state/</guid>
		<description><![CDATA[ Web Application State A Web page is recreated every time it is posted back to the server. In traditional Web programming, this means that all the information within the page and information in the controls is lost with each round trip. To overcome this limitation of traditional Web programming, the ASP.NET page framework includes various [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=228&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> <span style="color:#dc2300;"><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><strong>Web Application State</strong></span></span></span></p>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">A Web page is recreated every time it is posted back to the server. In traditional Web programming, this means that all the information within the page and information in the controls is lost with each round trip. To overcome this limitation of traditional Web programming, the ASP.NET page framework includes various options to help us preserve changes.There are two ways for manage web Application state.</span></span> </p>
<ol>
<li><span style="color:#000000;"><span style="font-size:x-small;">Client-side State Management</span></span></li>
<li><span style="color:#000000;"><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Server-side State Management</span></span></span></li>
</ol>
<h2><span style="color:#dc2300;"><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Client-side State Management</span></span></span></h2>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Cookies</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">A cookie is a small amount of data stored either in a text file on the client&#8217;s file system or in-memory in the client browser session. Cookies are mainly used for tracking data settings. Let’s take an example: say we want to customize a welcome web page; when the user requests the default web page, the application firsts detects if the user has logged in before; we can retrieve the user information from cookies, in this case.</span></span></p>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Hidden Fields</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">The default way of saving the state of data is to use HTML hidden fields. A hidden field stores text data with the HTML </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">&lt;input type="hidden"&gt;</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">. A hidden field will not be visible in the browser, but we can set its properties just like we set properties for other standard controls. When a page is posted to the server, the content of a hidden field is sent in the HTTP </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Form</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> collection along with the values of other controls. In order for hidden field values to be available during page processing, we must submit the page.</span></span></p>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">ViewState</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">The </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Control.ViewState</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> property provides a way for retaining values between multiple requests for the same page. This is the method that the page uses to preserve page and control property values between round trips. When a page is processed, the current state of the page and the controls is hashed into a string and saved in the page as a hidden field. When the page is posted back to the server, the page parses the view state string at page initialization and restores property information in the page.</span></span></p>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Query Strings</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Query strings provide a simple but limited way of maintaining some state information. You can easily pass information from one page to another, but most browsers and client devices impose a 255-character limit on the length of the URL. In addition, the query values are exposed to the Internet via the URL, so in some cases, security may be an issue. A URL with query strings may look like this: </span></span><em><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">http://myapplication.com/listing.aspx?group=1&amp;item=1</span></span></em><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">.</span></span></p>
<h2><span style="color:#dc2300;"><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Server-side State Management</span></span></span></h2>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Application Object</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">The </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Application</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> object provides a mechanism for storing data that is accessible to all code running within the Web application. The ideal data to insert into application state variables is data that is shared by multiple sessions and which does not change often. And just because it is visible to the entire application, you need to use the </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Lock</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> and </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">UnLock</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> methods to avoid having conflict values.</span></span></p>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Session Object</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">The </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Session</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> object can be used for storing session-specific information that needs to be maintained between server round trips and between requests for pages. The </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Session</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> object is on a per-client basis, which means different clients generate different </span></span><code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Session</span></span></code><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"> objects. The ideal data to store in session-state variables is short-lived, sensitive data that is specific to an individual session.</span></span></p>
<h3><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;"><span style="text-decoration:underline;">Using Database</span></span></span></h3>
<p><span style="font-family:Verdana, sans-serif;"><span style="font-size:x-small;">Maintaining state using database is a very common method when storing user-specific information where the information store is large. Database storage is particularly useful for maintaining long-term state or state that must be preserved even if the server must be restarted. The database approach is often used along with cookies. For example, when a user access an application, he might need to enter a username/password to log in. You can look up the user in your database and then pass a cookie to the user. The cookie might contain only the ID of the user in your database. You can then use the cookie in the requests that follow to find the user information in the database, as needed.</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=228&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2010/02/02/web-application-state/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>FAQ ON AP.NET</title>
		<link>http://rajanswer.wordpress.com/2009/12/13/faq-on-ap-net/</link>
		<comments>http://rajanswer.wordpress.com/2009/12/13/faq-on-ap-net/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 07:56:59 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=226</guid>
		<description><![CDATA[1. What are the best practices to follow to secure connection strings in an ASP.NET web application? 1. Always store connection strings in the site&#8217;s Web.config file. Web.config is very secure. Users will not be able to access web.config from the browser. 2. Do not store connection strings as plain text. To help keep the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=226&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1. What are the best practices to follow to secure connection strings in an ASP.NET web application?</strong><br />
<strong>1. </strong>Always store connection strings in the site&#8217;s Web.config file. Web.config is very secure. Users will not be able to access web.config from the browser.<br />
<strong>2.</strong> Do not store connection strings as plain text. To help keep the connection to your database server secure, it is recommended that you encrypt connection string information in the configuration file.<br />
<strong>3.</strong> Never store connection strings in an aspx page.<br />
<strong>4. </strong>Never set connection strings as declarative properties of the SqlDataSource control or other data source controls.<br />
<strong>2. Why “Connecting to SQL Server using Integrated Security” is considered a best practice?</strong><strong><br />
</strong>Connecting to SQL Server using integrated security instead of using an explicit user name and password, helps avoid the possibility of the connection string being compromised and your user ID and password being exposed.<br />
<strong>3. What is the advantage of storing an XML file in the applications App_Data folder?</strong><strong> </strong></p>
<p>The contents of the App_Data folder will not be returned in response to direct HTTP requests.<br />
<strong>4. What is Script injection?</strong><strong> </strong><br />
A script injection attack attempts to send executable script to your application with the intent of having other users run it. A typical script  injection attack sends script to a page that stores the script in a database, so that another user who views the data inadvertently runs the code.<br />
<strong>5. What is SQL injection?</strong><strong><br />
</strong>A SQL injection attack attempts to compromise your database by creating SQL commands that are executed instead of, or in addition to, the commands that you have built into your application.</p>
<p><strong>6. What are the best practices to keep in mind when accepting user input on a web application?</strong><strong><br />
<strong>1.</strong></strong> Always use validation controls whenever possible to limit user input to acceptable values.<br />
<strong>2.</strong> Always check the IsValid property of the aspx page. Run the server side code only if the IsValid property value is true. A value of false means that one or more validation controls have failed a validation check.<br />
<strong>3.</strong> Always perform server side validation irrespective of client side validation  being performed or not. This will protect your web application even if the client has by passed the client side validation by disabling  javascript in the web browser.<br />
<strong>4. </strong>Also make sure to re validate  user input in the business logic  layer of your application.<br />
<strong>7. What are the steps to follow to avoid Script Injection attacks?</strong><strong><br />
<strong>1.</strong></strong> Encode user input with the HtmlEncode method. This method turns HTML into its text representation.<br />
<strong>2.</strong> If you are using the GridView control with bound fields, set the BoundField object&#8217;s HtmlEncode property to true. This causes the GridView control to encode user input when the row is in edit mode.<br />
<strong>8. What are the steps to follow to avoid SQL Injection attacks?</strong><strong><br />
</strong>Always use parameterized queries or stored procedures instead of creating SQL commands by concatenating strings together.<br />
<strong>9. Can you encrypt view state data of an aspx page?</strong><strong> </strong><br />
Yes, you encrypt view state data of an aspx page by setting the page&#8217;s ViewStateEncryptionMode property to true.</p>
<p><strong>10. What do you mean by saying a &#8220;class is a reference type&#8221;? </strong><br />
A class is a reference type means when an object of the class is created, the variable to which the object is assigned holds only a reference to that memory. When the object reference is assigned to a new variable, the new variable refers to the original object. Changes made through one variable are reflected in the other variable because they both refer to the same data.<br />
<strong>11. What do you mean by saying a &#8220;struct is a value type&#8221;?</strong><strong><br />
</strong>A struct is a value type mean when a struct is created; the variable to which the struct is assigned holds the struct&#8217;s actual data. When the struct is assigned to a new variable, it is copied. The new variable and the original variable therefore contain two separate copies of the same data. Changes made to one copy do not affect the other copy.<br />
<strong>12. When do you generally use a class over a struct? </strong><br />
A class is used to model more complex behavior, or data that is intended to be modified after a class object is created. A struct is best suited for small data structures that contain primarily data that is not intended to be modified after the struct is created.<br />
<strong>13. List the 5 different access modifiers in C#?</strong><strong><br />
<strong>1.</strong></strong> public<br />
<strong>2.</strong> protected<br />
<strong>3.</strong> internal<br />
<strong>4.</strong> protected internal<br />
<strong>5.</strong> private<br />
<strong>14. If you donot specify an access modifier for a method, what is the default access modifier?</strong><strong><br />
</strong>private<br />
<strong>15. Classes and structs support inheritance. Is this statement true or false? </strong><br />
False, Only classes support inheritance. structs donot support inheritance.<br />
<strong>16. If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?</strong><strong> </strong><br />
Yes, the derived class will automatically contain all the public, protected, and internal members of the base class except its constructors and destructors.<br />
<strong>17. Can you create an instance for an abstract class? </strong><br />
No, you cannot create an instance for an abstract class.</p>
<p><strong>18. How do you prevent a class from being inherited by another class?</strong><strong><br />
</strong>Use the sealed keyword to prevent a class from being inherited by another class.<br />
<strong>19. Classes and structs can be declared as static, Is this statement true or false? </strong><br />
False, only classes can be declared as static and not structs.<br />
<strong>20. Can you create an instance of a static class?</strong><strong><br />
</strong>No, you cannot create an instance of a static class.<br />
<strong>21. Can a static class contain non static members? </strong><br />
No, a static class can contain only static members.</p>
<p><strong>22. Is the following code legal?</strong><br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{<br />
public static void Main()   {   }<br />
public void Sum(int FirstNumber, int SecondNumber)<br />
{    int Result = FirstNumber + SecondNumber;   }<br />
public int Sum(int FirstNumber, int SecondNumber)<br />
{    int Result = FirstNumber + SecondNumber;   }<br />
}<br />
}<br />
No, The above code does not compile. You cannot overload a method based on the return type. To overload a method in C# either the number or type of parameters should be different. In general the return type of a method is not part of the signature of the method for the purposes of method overloading. However, it is part of the signature of the method when determining the compatibility between a delegate and the method that it points to.<br />
<strong>23. What is the difference between method parameters and method arguments. Give an example?</strong><br />
In the example below FirstNumber and SecondNumber are method parameters where as FN and LN are method arguments. The method definition specifies the names and types of any parameters that are required. When calling code calls the method, it provides concrete values called arguments for each parameter. The arguments must be compatible with the parameter type but the argument name (if any) used in the calling code does not have to be the same as the parameter named defined in the method.<br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{<br />
public static void Main()<br />
{    int FN = 10;    int SN = 20;    //FN and LN are method arguments<br />
int Total = Sum(FN, SN);    Console.WriteLine(Total);<br />
}<br />
//FirstNumber and SecondNumber are method parameters<br />
public static int Sum(int FirstNumber, int SecondNumber)<br />
{    int Result = FirstNumber + SecondNumber;    return Result;    }<br />
}<br />
}<br />
<strong>24. Explain the difference between passing parameters by value and passing parameters by reference with an example?</strong><br />
We can pass parameters to a method by value or by reference. By default all value types are passed by value where as all reference types are passed by reference. By default, when a value type is passed to a method, a copy is passed instead of the object itself. Therefore, changes to the argument have no effect on the original copy in the calling method.An example is shown below.<br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{<br />
public static void Main()<br />
{    int I = 10;    int K = Function(I);     Console.WriteLine(&#8220;I = &#8221; + I);    Console.WriteLine(&#8220;K = &#8221; + K);   }<br />
public static int Function(int Number)<br />
{    int ChangedValue = Number + 1;    return ChangedValue;   }<br />
}}</p>
<p>By default, reference types are passed by reference. When an object of a reference type is passed to a method, the reference points to the original object, not a copy of the object. Changes made through this reference will therefore be reflected in the calling method. Reference types are created by using the class keyword as shown in the example below.<br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{<br />
public static void Main()<br />
{<br />
ReferenceTypeExample Object = new ReferenceTypeExample();<br />
Object.Number = 20;<br />
Console.WriteLine(&#8220;Original Object Value = &#8221; + Object.Number);<br />
Function(Object);<br />
Console.WriteLine(&#8220;Object Value after passed to the method= &#8221; + Object.Number);<br />
}<br />
public static void Function(ReferenceTypeExample ReferenceTypeObject)<br />
{    ReferenceTypeObject.Number = ReferenceTypeObject.Number + 5;   }<br />
}<br />
class ReferenceTypeExample<br />
{   public int Number;  }<br />
}<br />
<strong>25. Can you pass value types by reference to a method?</strong><br />
Yes, we can pass value types by by reference to a method. An example is shown below.<br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{<br />
public static void Main()<br />
{    int I = 10;    Console.WriteLine(&#8220;Value of I before passing to the method = &#8221; + I);<br />
Function(ref I);    Console.WriteLine(&#8220;Value of I after passing to the method by reference= &#8221; + I);<br />
}<br />
public static void Function(ref int Number)<br />
{    Number = Number + 5;   }<br />
}<br />
}<br />
<strong>26. If a method&#8217;s return type is void, can you use a return keyword in the method?</strong><br />
Yes, Even though a method&#8217;s return type is void, you can use the return keyword to stop the execution of the method as shown in the example below.<br />
using System;<br />
namespace Demo<br />
{<br />
class Program<br />
{</p>
<p>public static void Main()<br />
{    SayHi();   }<br />
public static void SayHi()<br />
{    Console.WriteLine(&#8220;Hi&#8221;);    return;    Console.WriteLine(&#8220;This statement will never be executed&#8221;);   }<br />
}<br />
}</p>
<p><strong>27. Explain polymorphism in C# with a simple example? </strong><br />
Polymorphism allows you to invoke derived class methods through a base class reference during run-time. An example is shown below.<br />
<em>using System;</em><br />
<em>public class DrawingObject</em><br />
<em>{</em><br />
<em>public virtual void Draw()</em><br />
<em>{ Console.WriteLine(&#8220;I am a drawing object.&#8221;); }</em><br />
<em>}</em><br />
<em>public class Triangle : DrawingObject</em><br />
<em>{ </em></p>
<p><em>public override void Draw() </em></p>
<p><em>{ Console.WriteLine(&#8220;I am a Triangle.&#8221;); }</em><br />
<em>}</em><br />
<em>public class Circle : DrawingObject</em><br />
<em>{ </em></p>
<p><em>public override void Draw() { Console.WriteLine(&#8220;I am a Circle.&#8221;); }</em><br />
<em>}</em><br />
<em>public class Rectangle : DrawingObject</em><br />
<em>{</em><br />
<em>public override void Draw()</em><br />
<em>{ Console.WriteLine(&#8220;I am a Rectangle.&#8221;); }</em><br />
<em>}</em><br />
<em>public class DrawDemo</em><br />
<em>{</em><br />
<em>public static void Main()</em><br />
<em>{</em><br />
<em>DrawingObject[] DrawObj = new DrawingObject[4];</em><br />
<em>DrawObj[0] = new Triangle();</em><br />
<em>DrawObj[1] = new Circle();</em><br />
<em>DrawObj[2] = new Rectangle();</em><br />
<em>DrawObj[3] = new DrawingObject();</em><br />
<em>foreach (DrawingObject drawObj in DrawObj)</em><br />
<em>{ drawObj.Draw(); }</em><br />
<em>}</em><br />
<em>}</em><br />
<strong>28. When can a derived class override a base class member? </strong><br />
A derived class can override a base class member only if the base class member is declared as virtual or abstract.<br />
<strong>29. What is the difference between a virtual method and an abstract method? </strong><br />
A virtual method must have a body where as an abstract method should not have a body.<br />
<strong>30. Can fields inside a class be virtual?</strong><strong><br />
</strong>No, Fields inside a class cannot be virtua. Only methods, properties, events and indexers can be virtual.<br />
<strong>31. Give an example to show for hiding base class methods? </strong><br />
Use the new keyword to hide a base class method in the derived class as shown in the example below.<br />
<em>using System;</em><br />
<em>public class BaseClass</em><br />
<em>{</em><br />
<em>public virtual void Method()</em><br />
<em>{ Console.WriteLine(&#8220;I am a base class method.&#8221;); }</em><br />
<em>}</em><br />
<em>public class DerivedClass : BaseClass</em><br />
<em>{</em></p>
<p><em>public new void Method()</em><br />
<em>{ Console.WriteLine(&#8220;I am a child class method.&#8221;); }</em><br />
<em>public static void Main()</em><br />
<em>{ DerivedClass DC = new DerivedClass(); DC.Method(); }</em><br />
<em>}</em><br />
<strong>32. Can you access a hidden base class method in the derived class? </strong><br />
Yes, Hidden base class methods can be accessed from the derived class by casting the instance of the derived class to an instance of the base class as shown in the example below.<br />
<em>using System;</em><br />
<em>public class BaseClass</em><br />
<em>{</em><br />
<em>public virtual void Method()</em><br />
<em>{ Console.WriteLine(&#8220;I am a base class method.&#8221;); }</em><br />
<em>}</em><br />
<em>public class DerivedClass : BaseClass</em><br />
<em>{ </em></p>
<p><em>public new void Method()</em><br />
<em>{ Console.WriteLine(&#8220;I am a child class method.&#8221;); }</em><br />
<em>public static void Main()</em><br />
<em>{ DerivedClass DC = new DerivedClass(); ((BaseClass)DC).Method(); }</em><br />
<em>}</em></p>
<p><strong>33. Explain what is an Interface in C#?</strong><br />
An Interface in C# is created using the interface keyword. An example is shown below.<br />
using System;<br />
namespace Interfaces<br />
{<br />
interface IBankCustomer<br />
{  void DepositMoney();  void WithdrawMoney();   }<br />
public class Demo : IBankCustomer<br />
{<br />
public void DepositMoney()<br />
{  Console.WriteLine(&#8220;Deposit Money&#8221;);    }<br />
public void WithdrawMoney()<br />
{  Console.WriteLine(&#8220;Withdraw Money&#8221;);  }<br />
public static void Main()<br />
{  Demo DemoObject = new Demo();  DemoObject.DepositMoney();  DemoObject.WithdrawMoney();  }<br />
}<br />
}<br />
<strong>34. In our example we created IBankCustomer interface. The interface declares 2 methods.</strong><br />
<strong>1.</strong> void DepositMoney();<br />
<strong>2.</strong> void WithdrawMoney();<br />
Notice that method declarations does not have access modifiers like public, private, etc. By default all interface members are public. It is a compile time error to use access modifiers on interface member declarations. Also notice that the interface methods have only declarations and not implementation. It is a compile time error to provide implementation for any interface member. In our example as the Demo class is inherited from the IBankCustomer interface, the Demo class has to provide the implementation for both the methods (WithdrawMoney() and DepositMoney()) that is inherited from the interface. If the class fails to provide implementation for any of the inherited interface member, a compile time error will be generated. Interfaces can consist of methods, properties, events, indexers, or any combination of those four member types. When a class or a struct inherits an interface, the class or struct must provide implementation for all of the members declared in the interface. The interface itself provides no functionality that a class or struct can inherit in the way that base class functionality can be inherited. However, if a base class implements an interface, the derived class inherits that implementation.<br />
<strong>35. Can an Interface contain fields?</strong><br />
No, an Interface cannot contain fields.<br />
<strong>36. What is the difference between class inheritance and interface inheritance?</strong><br />
Classes and structs can inherit from interfaces just like how classes can inherit a base class or struct. However there are 2 differences.<br />
<strong>1.</strong> A class or a struct can inherit from more than one interface at the same time where as A class or a struct cannot inherit from more than one class at the same time. An example depicting the same is shown below.<br />
using System;<br />
namespace Interfaces<br />
{</p>
<p>interface Interface1<br />
{ void Interface1Method();   }<br />
interface Interface2<br />
{  void Interface2Method();   }<br />
class BaseClass1<br />
{</p>
<p>public void BaseClass1Method()<br />
{   Console.WriteLine(&#8220;BaseClass1 Method&#8221;);     }<br />
}<br />
class BaseClass2<br />
{<br />
public void BaseClass2Method()<br />
{   Console.WriteLine(&#8220;BaseClass2 Method&#8221;);    }<br />
}<br />
//Error : A class cannot inherit from more than one class at the same time<br />
//class DerivedClass : BaseClass1, BaseClass2<br />
//{<br />
//}<br />
//A class can inherit from more than one interface at the same time<br />
public class Demo : Interface1, Interface2<br />
{<br />
public void Interface1Method()<br />
{  Console.WriteLine(&#8220;Interface1 Method&#8221;);   }<br />
public void Interface2Method()<br />
{   Console.WriteLine(&#8220;Interface2 Method&#8221;);    }<br />
public static void Main()<br />
{  Demo DemoObject = new Demo();<br />
DemoObject.Interface1Method();<br />
DemoObject.Interface2Method();<br />
}<br />
}<br />
}<br />
<strong>2.</strong> When a class or struct inherits an interface, it inherits only the method names and signatures, because the interface itself contains no implementations.<br />
<strong>37. Can an interface inherit from another interface?</strong><br />
Yes, an interface can inherit from another interface. It is possible for a class to inherit an interface multiple times, through base classes or interfaces it inherits. In this case, the class can only implement the interface one time, if it is declared as part of the new class. If the inherited interface is not declared as part of the new class, its implementation is provided by the base class that declared it. It is possible for a base class to implement interface members using virtual members; in that case, the class inheriting the interface can change the interface behavior by overriding the virtual members.<br />
<strong>38. Can you create an instance of an interface?</strong><br />
No, you cannot create an instance of an interface.<br />
<strong>39. If a class inherits an interface, what are the 2 options available for that class?</strong><br />
<strong>Option 1:</strong> Provide Implementation for all the members inheirted from the interface.<br />
namespace Interfaces<br />
{<br />
interface Interface1<br />
{  void Interface1Method();   }<br />
class BaseClass1 : Interface1<br />
{<br />
public void Interface1Method()<br />
{  Console.WriteLine(&#8220;Interface1 Method&#8221;);    }<br />
public void BaseClass1Method()<br />
{   Console.WriteLine(&#8220;BaseClass1 Method&#8221;);   }<br />
}<br />
}<br />
<strong>Option 2:</strong> If the class does not wish to provide Implementation for all the members inheirted from the interface, then the class has to be marked as abstract.<br />
namespace Interfaces<br />
{<br />
interface Interface1<br />
{      void Interface1Method();   }</p>
<p>abstract class BaseClass1 : Interface1<br />
{      abstract public void Interface1Method();</p>
<p>public void BaseClass1Method()<br />
{    Console.WriteLine(&#8220;BaseClass1 Method&#8221;);    }<br />
}<br />
}<br />
<strong>40. A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both Car and Bus interface?</strong><br />
namespace Interfaces<br />
{<br />
interface Car<br />
{  void Drive();    }<br />
interface Bus<br />
{  void Drive();   }<br />
class Demo : Car,Bus<br />
{   //How to implement the Drive() Method inherited from Bus and Car    }<br />
}<br />
To implement the Drive() method use the fully qualified name as shown in the example below. To call the respective interface drive method type cast the demo object to the respective interface and then call the drive method.<br />
using System;<br />
namespace Interfaces<br />
{<br />
interface Car<br />
{    void Drive();    }<br />
interface Bus<br />
{    void Drive();    }<br />
class Demo : Car,Bus<br />
{</p>
<p>void Car.Drive()</p>
<p>{     Console.WriteLine(&#8220;Drive Car&#8221;);      }<br />
void Bus.Drive()<br />
{    Console.WriteLine(&#8220;Drive Bus&#8221;);       }<br />
static void Main()<br />
{   Demo DemoObject = new Demo();<br />
((Car)DemoObject).Drive();<br />
((Bus)DemoObject).Drive();<br />
}<br />
}<br />
}<br />
<strong>41. What do you mean by &#8220;Explicitly Implemeting an Interface&#8221;. Give an example?</strong><br />
If a class is implementing the inherited interface member by prefixing the name of the interface, then the class is &#8220;Explicitly Implemeting an Interface member&#8221;. The disadvantage of Explicitly Implemeting an Interface member is that, the class object has to be type casted to the interface type to invoke the interface member. An example is shown below.<br />
using System;<br />
namespace Interfaces<br />
{<br />
interface Car<br />
{   void Drive();   }</p>
<p>class Demo : Car<br />
{</p>
<p>// Explicit implementation of an interface member<br />
void Car.Drive()<br />
{   Console.WriteLine(&#8220;Drive Car&#8221;);      }<br />
static void Main()<br />
{   Demo DemoObject = new Demo();<br />
//DemoObject.Drive();<br />
// Error: Cannot call explicitly implemented interface method<br />
// using the class object.<br />
// Type cast the demo object to interface type Car<br />
((Car)DemoObject).Drive();<br />
}<br />
}<br />
}</p>
<p><strong>42. Give an example of using querystrings to send data from one page to another?</strong><br />
Query strings are a very simple and popular technique to pass data from one Web page to the next. You send data as part of the URL. In the below example FName and LName are sent as part of the URL. In the page load of QueryStrings2.aspx we use Request.QueryString to read the values. As we are sending more than one query string we use the &amp; symbol to seperate query strings.<br />
<strong>//Code to send query strings FName and LName as part of the URL</strong><strong><br />
</strong>QueryStrings2.aspx?FName=David&amp;LName=Boon<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
//Code to read Query String values<br />
string FirstName = Request.QueryString["FName"];<br />
string LastName = Request.QueryString["LName"];<br />
Response.Write(&#8220;Data from QueryStrings1.aspx : &#8221; + FirstName + &#8220;, &#8221; + LastName);<br />
}<br />
<strong>43. Give an example to send Query Strings from code? </strong><br />
You can send query strings from server side code using the Response.Redirect() method as shown below.<br />
Response.Redirect(&#8220;QueryStrings2.aspx?FName=David&amp;LName=Boon&#8221;);<br />
<strong>44. What are the advantages of using Query Strings?</strong><strong><br />
<strong>1.</strong></strong> Query strings are easy to implement.<br />
<strong>2.</strong> Browser support for passing values in a query string is nearly universal.<br />
<strong>3.</strong> Query strings are contained in the HTTP request for a specific URL and do not require server resources.<br />
<strong>45. What are the disadvantages of using querystrings to send data from one page to another?</strong><strong><br />
<strong>1.</strong></strong> Query strings are insecure because the information in the query string is directly visible to the user on the address line in the browser.<br />
<strong>2.</strong> Many browsers impose a 255 URL character limit which can limit their flexibility.</p>
<p><strong>46. How do you create an instance of SqlDataReader class?</strong><strong><br />
</strong>To create an instance of SqlDataReader class, you must call the ExecuteReader method of the SqlCommand object, instead of directly using a constructor.<br />
//Error! Cannot use SqlDataReader() constructor<br />
//to create an instance of SqlDataReader class<br />
SqlDataReader ReaderObject = new SqlDataReader();<br />
//Call the ExecuteReader method of the SqlCommand object<br />
SqlCommand CommandObject = new SqlCommand();<br />
SqlDataReader ReaderObject = CommandObject.ExecuteReader();<br />
Creating an instance of SqlDataReader class using SqlDataReader() constructor generates a compile time error &#8211; The type &#8216;System.Data.SqlClient.SqlDataReader&#8217; has no constructors defined.<br />
<strong>47. How do you programatically check if a specified SqlDataReader instance has been closed?</strong><strong><br />
</strong>Use the IsClosed property of SqlDataReader to check if a specified SqlDataReader instance has been closed. If IsClosed property returns true, the SqlDataReader instance has been closed else not closed.<br />
<strong>48. How do you get the total number of columns in the current row of a SqlDataReader instance? </strong><br />
FieldCount property can be used to get the total number of columns in the current row of a SqlDataReader instance.<br />
<strong>49. Give an example for executing a stored procedure with parameters?</strong><strong><br />
</strong>//Create the Connection Object<br />
SqlConnection ConnectionObject = new SqlConnection(ConnectionString);<br />
//Create the Command Object<br />
SqlCommand CommandObject = new SqlCommand(&#8220;StoredProcedureName&#8221;, ConnectionObject);<br />
//Specify to CommandObject that you intend to execute a Stored Procedure<br />
CommandObject.CommandType = CommandType.StoredProcedure;<br />
//Create an SQL Parameter object<br />
SqlParameter ParameterObject = new SqlParameter();<br />
//Specify the name of the SQL Parameter<br />
ParameterObject.ParameterName = &#8220;Parameter1&#8243;;<br />
//Assign the Parameter value<br />
ParameterObject.Value = &#8220;Some Value&#8221;;<br />
//Specify the Database DataType of the Parameter<br />
ParameterObject.DbType = DbType.String;<br />
//Specify the type of parameter &#8211; input-only, output-only, bidirectional<br />
ParameterObject.Direction = ParameterDirection.Input;<br />
//Associate the Parameter to the Command Object<br />
CommandObject.Parameters.Add(ParameterObject);<br />
//Open the connection<br />
ConnectionObject.Open();<br />
//Execute the command<br />
int Records_Affected = CommandObject.ExecuteNonQuery();<br />
//Close the Connection<br />
ConnectionObject.Close();<br />
<strong>50. What is the use of SqlParameter.Direction Property?</strong><strong><br />
</strong>SqlParameter.Direction Property is used to specify the Sql Parameter type &#8211; input-only, output-only, bidirectional, or a stored procedure return value parameter. The default is Input.<br />
<strong>51. How do you retrieve two tables of data at the same time by using data reader? </strong><br />
Include 2 select statements either in a stored procedure or in a select command and call the ExecuteReader() method on the command object. This will automatically fill the DataReader with 2 Tables of data.<br />
The datareader will always return the data from first table only. If you want to get the second table then you need to use ReaderObject.NextResult() method. The NextResult() method will return true if there is another table. The following code shows you how do it.<br />
//Create the SQL Query with 2 Select statements<br />
string SQLQuery = &#8220;Select * from Customers;Select * from Employees;&#8221;;<br />
//Create the Connection Object<br />
SqlConnection ConnectionObject = new SqlConnection(ConnectionString);<br />
//Create the Command Object<br />
SqlCommand CommandObject = new SqlCommand(SQLQuery, ConnectionObject);<br />
//Open the connection<br />
ConnectionObject.Open();<br />
//Execute the command. Now reader object will have 2 tables of data.<br />
SqlDataReader ReaderObject = CommandObject.ExecuteReader();<br />
//Loop thru the tables in the DataReader object<br />
while (ReaderObject.NextResult())<br />
{<br />
while (ReaderObject.Read())<br />
{ //Do Something }<br />
}<br />
//Close the Reader<br />
ReaderObject.Close();<br />
//Close the Connection<br />
ConnectionObject.Close();<br />
<strong>52. What are the advantages of using SQL stored procedures instead of adhoc SQL queries in an ASP.NET web application?</strong><strong> </strong><br />
<strong>1.Better Performance :</strong> As stored procedures are precompiled objects they execute faster than SQL queries. Every time we run a SQL query, the query has to be first compiled and then executed where as a stored procedure is already compiled. Hence executing stored procedures is much faster than executing SQL queries.<br />
<strong>2.Better Security : </strong>For a given stored procedure you can specify who has the rights to execute. You cannot do the same for an SQL query. Writing the SQL statements inside our code is usually not a good idea. In this way you expose your database schema (design) in the code which may be changed. Hence most of the time programmers use stored procedures instead of plain SQL statements.<br />
<strong>3.Reduced Network Traffic : </strong>Stored Procedures reside on the database server. If you have to execute a Stored Procedure from your ASP.NET web application, you just specify the name of the Stored Procedure. So over the network you just send the name of the Stored Procedure. With an SQL query you have to send all the SQL statements over the network to the database server which could lead to increased network traffic.<br />
<strong>53. Can you update the database using DataReader object?</strong><strong><br />
</strong>No, You cannot update the database using DataReader object. DataReader is read-only, foward only. It reads one record at atime. After DataReader finishes reading the current record, it moves to the next record. There is no way you can go back to the previous record.<br />
<strong>54. What is the difference between a DataReader and a DataSet? </strong><br />
<strong>DataReader</strong><strong><br />
<strong>1.</strong></strong> DatReader works on a Connection oriented architecture.<br />
<strong>2.</strong> DataReader is read only, forward only. It reads one record at atime. After DataReader finishes reading the current record, it moves to the next record. There is no way you can go back to the previous record. So using a DataReader you read in forward direction only.<br />
<strong>3.</strong> Updations are not possible with DataReader.<br />
<strong>4.</strong> As DataReader is read only, forward only it is much faster than a DataSet.<br />
<strong>DataSet</strong><strong><br />
<strong>1.</strong></strong> DataSet works on disconnected architecture.<br />
<strong>2.</strong> Using a DataSet you can move in both directions. DataSet is bi directional.<br />
<strong>3.</strong> Database can be updated from a DataSet.<br />
<strong>4.</strong> DataSet is slower than DataReader.<br />
<strong>55. Give an example scenario of using a DataSet and a DataReader?</strong><strong><br />
</strong>If you want to just read and display the data(No updates, deletes, or inserts) then use a DataReader.<br />
If you want to do a batch inserts, updates and deletes then use a DataSet.</p>
<p><strong>56. How do you provide Secure Communication over the world wide web?</strong><br />
Security is not just a matter of identifying users and preventing unauthorized users from accessing your Web applications, but it’s just as important to ensure that sensitive data sent across the Internet can’t be read by others.<br />
To provide secure communication across the Internet, IIS supports a standardized means of encrypting and decrypting Web requests and responses. This cryptography requires that you request an encryption key called a server certificate from an independent third party called a certificate authority.<br />
<strong>57. What is Secure Sockets Layer (SSL)?</strong><br />
<strong>The Secure Sockets Layer (SSL) </strong>is the standard means of ensuring that data sent over the Internet can’t be read by others. When a user requests a secure Web page, the server generates an encryption key for the user’s session and then encrypts the page’s data before sending a response. On the client side, the browser uses that same encryption key to decrypt the requested Web page and to encrypt new requests sent from that page.<br />
<strong>58. Explain the process of secure communication using SSL?</strong><br />
Using SSL in your application requires special authorization from a recognized certificate authority. This authorization comes in the form of a server certificate, which you install in IIS to identify your server. The certificate authority licenses server certificates (for a fee) and acts as a clearinghouse to verify your server’s identity over the Internet.<br />
When a user’s browser begins secure communications, it requests the server certificate and checks it against a list of trusted sites provided by the certificate authority. If the server certificate does not match one of the sites already authorized by the user, or if the server certificate does not match the Web address for which it was registered, or if there are any other problems with the server certificate, the browser displays a warning.<br />
In this way, the certificate authority not only provides encryption for secure data transmission, but it also provides assurance to users that your Web site is authentic.<br />
<strong>59. What is the largest certificate authority?</strong><br />
The largest certificate authority is VeriSign.<br />
<strong>60. What are the steps to follow to use SSL in your Web application?</strong><br />
1. Generate a certificate request from IIS.<br />
2. Request a certificate from a certificate authority.<br />
3. Install the certificate on the server using IIS.<br />
4. Install the certificate on browsers if you are using a test certificate.<br />
5. Use the Secure Hypertext Transfer Protocol (HTTPS) when accessing secure pages in your application.<br />
<strong>61. What should you do before you can request a server certificate from a certificate authority?</strong><br />
Before you can request a server certificate from a certificate authority, you must generate a certificate request from IIS. The certificate request contains encrypted information about your server that the certificate authority uses to identify your server over the Internet.<br />
<strong>62. What are the steps to follow to generate a certificate request from the IIS?</strong><br />
1. Select Default Web Site in the console tree of the IIS, and then choose Properties from the Action menu. IIS displays the Default Web Site Properties dialog box.<br />
2. Click the Directory Security tab in the Properties dialog box, and then click Server Certificate. IIS starts the Web Server Certificate Wizard.<br />
3. Step through the wizard by reading each screen and clicking Next. The wizard instructions are straightforward.<br />
4. When you click Finish at the end, the wizard creates an encrypted text file with the .cer file extension. That file is the certificate request that you send to the certificate authority.<br />
<strong>63. Why do you have to select Default Web Site when generating a Certificate Request from IIS?</strong><br />
IIS requires that a certificate be created at the server root before secure communications can be created or configured for subordinate sites on the server. That’s why you have to select Default Web Site (or the root Web site if you have renamed it). After you have installed a server certificate at the root, you can repeat the process for subordinate sites if you want separate certificates for those sites.<br />
<strong>64. What is the file extension of a server certificate?</strong><br />
.cer<br />
<strong>65. What are the steps to follow to install the Certificate to enable SSL for your Web applications?</strong><br />
To install a server certificate in IIS:<br />
1. Select Default Web Site in the console tree of the IIS snap-in, and then choose Properties from the Action menu. IIS displays the Default Web Site Properties dialog box.<br />
2. Click the Directory Security tab in the Properties dialog box, and then click Server Certificate. IIS starts the Web Server Certificate Wizard.<br />
3. Click Next, and select Process The Pending Request And Install The Certificate.<br />
4. Click Next, and enter the name of the certificate file.<br />
5. Click Next, and then click Finish to complete the installation.<br />
<strong>66. What is the protocol on which secure pages are generally requested?</strong><br />
HTTPS, the protocol HTTPS is what initializes the secure communication. When you’ve begun secure communication, it continues until you specify a nonsecure site.<br />
<strong>67. What are the steps to follow to make a web page secure in a web application?</strong><br />
To require secure communication for a Web page using IIS, follow these steps<br />
1. Select the folder or file that requires secure communication, and then choose Properties from the Action menu. IIS displays the Properties dialog box.<br />
2. Click the Directory Security tab, and then click Edit in the Secure Communications group. IIS displays the Secure Communications dialog box.<br />
3. Select the Require Secure Channel (SSL) check box, and click OK.<br />
<strong>68. Can a user access secure web page over HTTP protocol instead of HTTPS?</strong><br />
No, When you require secure communication for a Web page, that page can’t be viewed using HTTP. The user must type in or click a link using HTTPS, otherwise, access will be denied.</p>
<p><strong>69. List all the files in a directory</strong><strong> </strong><strong>on a web form. The files must be displayed in a gridview control. The name of the file and create date must be displayed.</strong><br />
<strong>Answer:</strong> Create a new web form. Drag and drop a gridview control from the toolbox onto the webform.<br />
<strong>2.</strong> Create 2 bound fields for the gridview. One bound field will display the file name and the other will display the create date.<br />
<strong>3.</strong> The HTML for your web form should be as shown below.<br />
&lt;%@ Page AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;ListFiles.aspx.cs&#8221; Inherits=&#8221;ListFiles&#8221; %&gt;<br />
&lt;html&gt;<br />
&lt;head runat=&#8221;server&#8221;&gt;<br />
&lt;title&gt;List all the files in a directory&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form runat=&#8221;server&#8221;&gt;<br />
&lt;asp:GridView runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;False&#8221;&gt;<br />
&lt;Columns&gt;<br />
&lt;asp:BoundField DataField=&#8221;FileName&#8221; HeaderText=&#8221;File Name&#8221;&gt;&lt;/asp:BoundField&gt;<br />
&lt;asp:BoundField DataField=&#8221;DateCreated&#8221; HeaderText=&#8221;Date&#8221; DataFormatString=&#8221;{0:d}&#8221;&gt;&lt;/asp:BoundField&gt;<br />
&lt;/Columns&gt;<br />
&lt;/asp:GridView&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<strong>4.</strong> In the code behind file write a function which can <strong>get the list of files from the directory and bind to the gridview</strong>. The function is as shown below.<br />
private void LoadFiles()<br />
{<br />
/* Create an instance of DirectoryInfo class for enumarating through the directory. */<br />
System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(Server.MapPath(&#8220;FilesDirectory&#8221;));<br />
/* Call the GetFiles() instance method of the DirectoryInfo class object, which will return a files list from the current directory */<br />
System.IO.FileInfo[] fiFiles = dirInfo.GetFiles();<br />
/* Create a DataTable which can be used as the datasource for the gridview */<br />
DataTable dtFileList = new DataTable(&#8220;Files&#8221;);<br />
/* Create a DataColumn for file name */<br />
DataColumn dcFileName = new DataColumn(&#8220;FileName&#8221;);<br />
/* Create a DataColumn for file create date */<br />
DataColumn dcDateCreated = new DataColumn(&#8220;DateCreated&#8221;, typeof(DateTime));<br />
/* Add the 2 data columns to the data table */<br />
dtFileList.Columns.Add(dcFileName);<br />
dtFileList.Columns.Add(dcDateCreated);<br />
/* Now loop through each FileInfo object and get the file name and file create date */<br />
foreach (System.IO.FileInfo f in fiFiles)<br />
{<br />
DataRow dtNewRow = dtFileList.NewRow();<br />
/* Get the file name using FileInfo object &#8220;Name&#8221; property */<br />
dtNewRow["FileName"] = f.Name.ToString();<br />
/* Get the file create date and time using FileInfo object &#8220;CreationTime&#8221; property */<br />
dtNewRow["DateCreated"] = f.CreationTime.ToShortDateString();<br />
/* Add the row to the DataTable */<br />
dtFileList.Rows.Add(dtNewRow);<br />
}<br />
/* Set the datatable as the DataSource for the gridview and call the DataBind() method */<br />
GridView1.DataSource = dtFileList;<br />
GridView1.DataBind();<br />
}<br />
<strong>5.</strong> Finally call the LoadFiles() method on the page load event handler as shown below.<br />
protected void Page_Load(object sender, EventArgs e)<br />
{ LoadFiles(); }<br />
<strong>Testing the application:</strong><strong><br />
<strong>1.</strong></strong> Right click on the project name in solution explorer, and left click on &#8220;NewFolder&#8221;<br />
<strong>2.</strong> Rename the &#8220;NewFolder&#8221; to &#8220;FilesDirectory&#8221;<br />
<strong>3.</strong> Drag and Drop some files into the directoy.<br />
<strong>4.</strong> Then run the application. All the files in the &#8220;FilesDirectory&#8221; folder will be shown in the gridview.</p>
<p><strong>70. </strong><strong>The XML file below has a list of employees. Your job is to bind the employee IDs and Names to a dropdownlist. ID must be dropdownlist value field and name must be the dropdownlist Text field. Also, only the active employees must be binded to the dropdownlist and the names should be in the ascending order. When I select a name from the dropdownlist, the name and ID of the selected employee must be printed on the webform.</strong><br />
<strong>Employees.xml</strong><strong><br />
</strong>&lt;Employees&gt;<br />
&lt;Employee&gt;<br />
&lt;Name&gt;David&lt;/Name&gt;<br />
&lt;ID&gt;101&lt;/ID&gt;<br />
&lt;IsActive&gt;true&lt;/IsActive&gt;<br />
&lt;/Employee&gt;<br />
&lt;Employee&gt;<br />
&lt;Name&gt;Tom&lt;/Name&gt;<br />
&lt;ID&gt;102&lt;/ID&gt;<br />
&lt;IsActive&gt;true&lt;/IsActive&gt;<br />
&lt;/Employee&gt;<br />
&lt;Employee&gt;<br />
&lt;Name&gt;Rick&lt;/Name&gt;<br />
&lt;ID&gt;103&lt;/ID&gt;<br />
&lt;IsActive&gt;false&lt;/IsActive&gt;<br />
&lt;/Employee&gt;<br />
&lt;Employee&gt;<br />
&lt;Name&gt;Mark&lt;/Name&gt;<br />
&lt;ID&gt;104&lt;/ID&gt;<br />
&lt;IsActive&gt;true&lt;/IsActive&gt;<br />
&lt;/Employee&gt;<br />
&lt;/Employees&gt;<br />
<strong>Code sample:</strong><strong><br />
</strong>protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
DataSet DS = new DataSet();<br />
DS.ReadXml(Server.MapPath(&#8220;Employees.xml&#8221;));<br />
DataView DV = DS.Tables["Employee"].DefaultView;<br />
DV.RowFilter = &#8220;IsActive=&#8217;true&#8217;&#8221;;<br />
DV.Sort = &#8220;Name asc&#8221;;<br />
DropDownList1.DataSource = DV;<br />
DropDownList1.DataValueField = &#8220;ID&#8221;;<br />
DropDownList1.DataTextField = &#8220;Name&#8221;;<br />
DropDownList1.DataBind();<br />
}<br />
}<br />
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
Response.Write(&#8220;Name Is : &#8221; + DropDownList1.SelectedItem.Text + &#8221; and ID is &#8221; + DropDownList1.SelectedItem.Value);<br />
}<br />
<strong>Code Explanation:</strong><strong><br />
<strong>1.</strong></strong> Read the XML data from Employees.xml file into a DataSet. We make use of the ReadXml() method. ReadXml method loads the XML data into the dataset DS. <strong>DS.ReadXml(Server.MapPath(&#8220;Employees.xml&#8221;));</strong><br />
<strong>2.</strong> Now you have the Data in a relational format in the dataset. Create a DataView on the employees table in the DataSet. The DefaultView property of DataTable returns the DataView.<br />
<strong>DataView DV = DS.Tables["Employee"].DefaultView;</strong><br />
<strong>3.</strong> After you have created the DataView, apply the RowFilter, to select only the active employees. You apply the RowFilter as shown below.<br />
<strong>DV.RowFilter = &#8220;IsActive=&#8217;true&#8217;&#8221;; </strong><br />
<strong>4.</strong> Now sort the data in the DataView in ascending order. We sort the data on the Name column. You can apply the sort expression on a dataview as shown below.<br />
<strong>DV.Sort = &#8220;Name asc&#8221;;</strong><br />
<strong>5.</strong> Finally set the DataSource, DataValueField and DataTextField properties of the dropdownlist and call the DataBind() method as shown in the below code.<br />
<em><strong>DropDownList1.DataSource = DV;</strong></em><strong><br />
<em>DropDownList1.DataValueField = &#8220;ID&#8221;;</em><br />
<em>DropDownList1.DataTextField = &#8220;Name&#8221;;</em><br />
<em>DropDownList1.DataBind();</em><strong> </strong></strong><br />
Untill now we have seen how to bind an XML file to dropdownlist. We have also seen how to create a DataView on DataTable. DataView is used for sorting and filtering the data. Now we have to get the SelecteValue and SelectedItem Text of a dropdownlist. To achieve this, follow the below steps.<br />
<strong>1.</strong> Set the autopostback property of the dropdownlist to true. So, when ever a selection in the dropdownlist changes, the webform is posted back to the server automatically.<br />
<strong>2.</strong> In the DropDownList1_SelectedIndexChanged event handler we can capture the employee name and id using the DropDownList1.SelectedItem.Text and DropDownList1.SelectedItem.Value properties as shown below.<br />
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
Response.Write(&#8220;Name Is : &#8221; + DropDownList1.SelectedItem.Text + &#8221; and ID is &#8221; + DropDownList1.SelectedItem.Value);<br />
}<br />
<strong>Note:</strong> If you have noticed, we binded the XML file to the dropdownlist only during the initial page load and not during every post back. We do this check by using if(!IsPostBack) property of the page.</p>
<p><strong>71. </strong><strong>Please write a sample program that parses the string into a series of substrings where the delimiter between the substrings is &#8220;^*!%~&#8221; and then reassembles the strings and delimiters into a single new string where each of the substrings is in the reverse order from the original string. The method must return the final string.</strong><br />
<strong>Original String:</strong><strong><br />
</strong>Token A^*!%~Token B^*!%~Token C^*!%~Token D^*!%~Token E<br />
<strong>Output String: </strong><br />
Token E^*!%~Token D^*!%~Token C^*!%~Token B^*!%~Token A<br />
<strong>72. The code sample below shows how to solve the above question:</strong><strong><br />
</strong>using System;<br />
using System.Text;<br />
namespace GenericsSample<br />
{<br />
class Program<br />
{<br />
static void Main()<br />
{<br />
string strOriginalString = &#8220;Token A^*!%~Token B^*!%~Token C^*!%~Token D^*!%~Token E&#8221;;<br />
string[] strSeperator = new string[1];<br />
strSeperator[0] = &#8220;^*!%~&#8221;;<br />
string[] strArrayIndividualStrings = strOriginalString.Split(strSeperator, StringSplitOptions.RemoveEmptyEntries);<br />
int intLengthOfStringArray = strArrayIndividualStrings.Length;<br />
StringBuilder sbOutputString = new StringBuilder();<br />
for (int i = (intLengthOfStringArray &#8211; 1); i &gt;= 0; i&#8211;)<br />
{ sbOutputString.Append(strArrayIndividualStrings[i] + strSeperator[0]);}<br />
Console.WriteLine(&#8220;Original String : &#8221; + strOriginalString);<br />
Console.WriteLine(&#8220;Output String : &#8221; + sbOutputString.ToString());<br />
Console.ReadLine();<br />
}<br />
}<br />
}<br />
<strong>73. Explanation of the above sample program:</strong><strong><br />
</strong><strong>1.</strong> We take the original string into a string variable strOriginalString. I named this variable as strOriginalString. str indicates that the variable is of string datatype. This will give a good impression to the person who reviews your code bcos you are following the coding standards.<br />
<strong>2.</strong> I then store the string delimiter &#8220;^*!%~&#8221; in strSeperator variable. strSeperator is of string array data type. This is bcos the split function expects string array or character array as seprator.<br />
<strong>3.</strong> I then split the strOriginalString into a string array using the split function.<br />
<strong>4.</strong> I created a variable sbOutputString to store the Output string. sbOutputString data type is StringBuilder.<br />
<strong>5.</strong> I then loop thru the array from the highest index to 0 and retrieve the individual strings and append to the sbOutputString. As the output string is changing as we loop thru the array it is good to use StringBuilder rather than System.String. Strings of type System.Text.StringBuilder are mutable where as strings of type System.String are immutable. If a string is manipulated many times always use StringBuilder over System.String.<br />
<strong>6.</strong> Two good things to remember from this example are, follow the coding standards in naming the variables and always use StringBuilder class over Strings where we manipulate a particular string many times.</p>
<p><strong>74. </strong><strong>Create a simple web page, that can read and write to an XML file. The XML file has a list of email ids. The sample web form should have the following functionality. You have 30 minutes to code and test.</strong><br />
<strong>1.</strong> A TextBox to accept a valid email id.<br />
<strong>2.</strong> A submit button. When you click the submit button, the email id entered in the TextBox must be saved to the XML file.<br />
<strong>3.</strong> If I donot enter anything in the TextBox and click the submit button, the application should show a validation message stating &#8220;Email is required&#8221;.<br />
<strong>4.</strong> If I enter an invalid email, the application should show a message &#8220;Invalid Email&#8221;.<br />
<strong>5.</strong> If javascript is enabled the validation should happen on the client browser without postback. If javascript is disabled the validation should happen on the web server.<br />
<strong>6.</strong> Finally we should have a list box, which will show all the existing email ids in the XML file. When you submit a new email, the listbox should be reloaded showing the newly added email along with already existing email ids.<br />
<strong>Answer: </strong><br />
<strong>1.</strong> Create a webform and add a TextBox, RequiredFieldValidator, RegularExpressionValidator, Button and a ListBox.<br />
<strong>2.</strong> Set the RequiredFieldValidator &#8220;ErrorMessage&#8221; property to &#8220;Email Required&#8221; and &#8220;ControlToValidate&#8221; property to &#8220;EmailTextBox&#8221; and &#8220;Display&#8221; property to &#8220;Dynamic&#8221; as shown below.<br />
&lt;asp:RequiredFieldValidator runat=&#8221;server&#8221; ErrorMessage=&#8221;Email Required&#8221; ControlToValidate=&#8221;EmailTextBox&#8221; Display=&#8221;Dynamic&#8221;&gt;&lt;/asp:RequiredFieldValidator&gt;<br />
<strong>3.</strong> Set the RegularExpressionValidator &#8220;ErrorMessage&#8221; property to &#8220;Invalid Email&#8221; and &#8220;ControlToValidate&#8221; property to &#8220;EmailTextBox&#8221; and &#8220;Display&#8221; property to &#8220;Dynamic&#8221; as shown below.<br />
&lt;asp:RegularExpressionValidator ID=&#8221;EmailRegularExpressionValidator&#8221; runat=&#8221;server&#8221; ErrorMessage=&#8221;Invalid Email&#8221; ControlToValidate=&#8221;EmailTextBox&#8221; Display=&#8221;Dynamic&#8221; ValidationExpression=&#8221;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&#8221;&gt;&lt;/asp:RegularExpressionValidator&gt;<br />
<strong>4.</strong> Set the ListBox, &#8220;DataTextField&#8221; property to &#8220;Email&#8221; and DataValueField property to &#8220;Email&#8221;<br />
<strong>5.</strong> The complete HTML of the web form should be as shown below.<br />
&lt;%@ Page AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;Default.aspx.cs&#8221; Inherits=&#8221;_Default&#8221; %&gt;<br />
&lt;html&gt;<br />
&lt;head runat=&#8221;server&#8221;&gt;<br />
&lt;title&gt;Email List&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form runat=&#8221;server&#8221;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Please enter a valid email:<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:TextBox runat=&#8221;server&#8221;&gt;&lt;/asp:TextBox&gt;<br />
&lt;asp:RequiredFieldValidator runat=&#8221;server&#8221; ErrorMessage=&#8221;Email Required&#8221; ControlToValidate=&#8221;EmailTextBox&#8221; Display=&#8221;Dynamic&#8221;&gt;&lt;/asp:RequiredFieldValidator&gt;<br />
&lt;asp:RegularExpressionValidator ID=&#8221;EmailRegularExpressionValidator&#8221; runat=&#8221;server&#8221; ErrorMessage=&#8221;Invalid Email&#8221; ControlToValidate=&#8221;EmailTextBox&#8221; Display=&#8221;Dynamic&#8221; ValidationExpression=&#8221;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&#8221;&gt;&lt;/asp:RegularExpressionValidator&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:Button runat=&#8221;server&#8221; OnClick=&#8221;Button1_Click&#8221; Text=&#8221;Submit&#8221; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;br /&gt;<br />
Existing Email Ids<br />
&lt;br /&gt;<br />
&lt;asp:ListBox runat=&#8221;server&#8221; Height=&#8221;292px&#8221; Width=&#8221;192px&#8221; DataTextField=&#8221;Email&#8221; DataValueField=&#8221;Email&#8221;&gt;&lt;/asp:ListBox&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<strong>6.</strong> Place the XML file that contains the list of email ids in the root folder of the web application. The sample XML file is shown below.<br />
&lt;?xml version=&#8221;1.0&#8243; standalone=&#8221;yes&#8221;?&gt;<br />
&lt;EmailsList&gt;<br />
&lt;Emails&gt;<br />
&lt;Email&gt;dhex@yahoo.com&lt;/Email&gt;<br />
&lt;/Emails&gt;<br />
&lt;Emails&gt;<br />
&lt;Email&gt;dmexy@aol.com&lt;/Email&gt;<br />
&lt;/Emails&gt;<br />
&lt;Emails&gt;<br />
&lt;Email&gt;dpitt@gmail.com&lt;/Email&gt;<br />
&lt;/Emails&gt;<br />
&lt;Emails&gt;<br />
&lt;Email&gt;mston@microsoft.com&lt;/Email&gt;<br />
&lt;/Emails&gt;<br />
&lt;/EmailsList&gt;<br />
<strong>7.</strong> In the code behind file, write a function the can read the email ids from the XML file into a DataSet. Set this DataSet as the DataSource for the ListBox and call the DataBind() method. The function should be as shown below.<br />
private void LoadExistingEmails()<br />
{<br />
DataSet DS = new DataSet();<br />
DS.ReadXml(Server.MapPath(&#8220;Emails.xml&#8221;));<br />
ListBox1.DataSource = DS;<br />
ListBox1.DataBind();<br />
}<br />
<strong>8.</strong> Call the above LoadExistingEmails() function in the Page_Load event handler as shown in the sample code below.<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
LoadExistingEmails();<br />
}<br />
<strong>9.</strong> Finally, when you click the submit button write to the XML file as shown below.<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
if (Page.IsValid)<br />
{<br />
DataSet DS = new DataSet();<br />
DS.ReadXml(Server.MapPath(&#8220;Emails.xml&#8221;));<br />
DataRow DR = DS.Tables[0].NewRow();<br />
DR["Email"] = EmailTextBox.Text;<br />
DS.Tables[0].Rows.Add(DR);<br />
DS.WriteXml(Server.MapPath(&#8220;Emails.xml&#8221;));<br />
LoadExistingEmails();<br />
}<br />
}<br />
<strong>Points to remember:</strong><strong><br />
<strong>1.</strong></strong> Validation controls work both on the client and on the server.<br />
<strong>2.</strong> If javascript is enabled validations happen on the client browser without posting the page back to the server.<br />
<strong>3.</strong> If javascript is disabled, validations happen on the server. To check if all the validation controls haved passed validation, use Page.IsValid property.<br />
<strong>4.</strong> Page.IsValid returns &#8220;true&#8221; if the page has succeeded validation and &#8220;false&#8221; even if a single validation control has filed validation.<br />
<strong>5.</strong> In our example, we write to the XML file only if Page.IsValid property returns true.<br />
<strong>Testing the sample application: </strong><strong><br />
</strong>To test if the validation controls are working on the server, disable javascript on the client browser. To disable javascript on the client browser follow the below steps.<br />
<strong>1.</strong> Open internet explorer.<br />
<strong>2.</strong> Click on Tools.<br />
<strong>3.</strong> Click on Internet Options. You will see Internet Options dialog page.<br />
<strong>4.</strong> Click on the Security tab.<br />
<strong>5.</strong> On the Security tab, select Local intranet under Select a zone to view or change security settings.<br />
<strong>6.</strong> Click &#8220;Custom Level&#8221; button under &#8220;Security Level for this zone&#8221;<br />
<strong>7.</strong> On the &#8220;Security Setting &#8211; Local Intranet Zone&#8221; dialog page, scroll down to &#8220;Scripting&#8221; section.<br />
<strong>8.</strong> Select &#8220;Disable&#8221; radio button under &#8220;Active scription&#8221; and click &#8220;OK&#8221; button.</p>
<p><strong>75. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process</strong>.<br />
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.</p>
<p><strong>76. What’s the difference between Response.Write() andResponse.Output.Write()?<br />
</strong>Response.Output.Write() allows you to write formatted output.</p>
<p><strong>77. What methods are fired during the page load?<br />
</strong>Init() &#8211; when the page is instantiated<br />
Load() &#8211; when the page is loaded into server memory<br />
PreRender() &#8211; the brief moment before the page is displayed to the user as HTML<br />
Unload() &#8211; when page finishes loading.</p>
<p><strong>78. When during the page processing cycle is ViewState available?</strong><br />
After the Init() and before the Page_Load(), or OnLoad() for a control.</p>
<p><strong>79. What namespace does the Web page belong in the .NET Framework class hierarchy?<br />
</strong>System.Web.UI.Page</p>
<p><strong>80. Where do you store the information about the user’s locale?<br />
</strong>System.Web.UI.Page.Culture</p>
<p><strong>81. What’s the difference between Codebehind=&#8221;MyCode.aspx.cs&#8221; andSrc=&#8221;MyCode.aspx.cs&#8221;?</strong><strong><br />
</strong>CodeBehind is relevant to Visual Studio.NET only.</p>
<p><strong>82. What’s a bubbled event?<br />
</strong>When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.</p>
<p><strong>83. Suppose you want a certain ASP.NET function executed on MouseOver for a certain button.  Where do you add an event handler?</strong><strong><br />
</strong>Add an OnMouseOver attribute to the button.  Example:btnSubmit.Attributes.Add(&#8220;onmouseover&#8221;,&#8221;someClientCodeHere();&#8221;);</p>
<p><strong>84. What data types do the RangeValidator control support?<br />
</strong>Integer, String, and Date.</p>
<p><strong>85. Explain the differences between Server-side and Client-side code?<br />
</strong>Server-side code executes on the server.  Client-side code executes in the client&#8217;s browser.</p>
<p><strong>86. What type of code (server or client) is found in a Code-Behind class?<br />
</strong>The answer is server-side code since code-behind is executed on the server.  However, during the code-behind&#8217;s execution on the server, it can render client-side code such as JavaScript to be processed in the clients browser.  But just to be clear, code-behind executes on the server, thus making it server-side code.</p>
<p><strong>87. Should user input data validation occur server-side or client-side?  Why?<br />
</strong>All user input data validation should occur on the server at a minimum.  Additionally, client-side validation can be performed where deemed appropriate and feasable to provide a richer, more responsive experience for the user.</p>
<p><strong>89. What is the difference between Server.Transfer and Response.Redirect?  Why would I choose one over the other?</strong><strong><br />
</strong>Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client&#8217;s browser.  This provides a faster response with a little less overhead on the server.  Server.Transfer does not update the clients url history list or current url.  Response.Redirect is used to redirect the user&#8217;s browser to another page or site.  This performas a trip back to the client where the client&#8217;s browser is redirected to the new page.  The user&#8217;s browser history list is updated to reflect the new address.</p>
<p><strong>90. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?</strong><strong><br />
</strong>Valid answers are:<br />
·  A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.<br />
·  A DataSet is designed to work without any continuing connection to the original data source.<br />
·  Data in a DataSet is bulk-loaded, rather than being loaded on demand.<br />
·  There&#8217;s no concept of cursor types in a DataSet.<br />
·  DataSets have no current record pointer You can use For Each loops to move through the data.<br />
·  You can store many edits in a DataSet, and write them to the original data source in a single operation.<br />
·  Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.</p>
<p><strong>91. What is the Global.asax used for?</strong><strong><br />
</strong>The Global.asax (including the Global.asax.cs file) is used to implement application and session level events.</p>
<p><strong>92. What are the Application_Start and Session_Start subroutines used for?<br />
</strong>This is where you can set the specific variables for the Application and Session objects.</p>
<p><strong>93. Can you explain what inheritance is and an example of when you might use it?<br />
</strong>When you want to inherit (use the functionality of) another class.  Example: With a base class named Employee, a Manager class could be derived from the Employee base class.</p>
<p><strong>94. Whats an assembly?<br />
</strong>Assemblies are the building blocks of the .NET framework.</p>
<p><strong>95. Describe the difference between inline and code behind.<br />
</strong>Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.</p>
<p><strong>96. Explain what a diffgram is, and a good use for one?<br />
</strong>The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML.  A good use is reading database data to an XML file to be sent to a Web Service.</p>
<p><strong>97. Whats MSIL, and why should my developers need an appreciation of it if at all?<br />
</strong>MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.  MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer.</p>
<p><strong>98. Which method do you invoke on the DataAdapter control to load your generated dataset with data?</strong><strong><br />
</strong>The Fill() method.</p>
<p><strong>99. Can you edit data in the Repeater control?<br />
</strong>No, it just reads the information from its data source<strong>.</strong></p>
<p><strong>100. Which template must you provide, in order to display data in a Repeater control?<br />
</strong>ItemTemplate.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=226&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2009/12/13/faq-on-ap-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>What Is SharePoint ?</title>
		<link>http://rajanswer.wordpress.com/2009/11/13/what-is-sharepoint/</link>
		<comments>http://rajanswer.wordpress.com/2009/11/13/what-is-sharepoint/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:52:51 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=223</guid>
		<description><![CDATA[SharePoint SharePoint is an enterprise information portal, from Microsoft, that can be configured to run Intranet, Extranet and Internet sites. Share point helps team members to connect and exchange information in a collaborative manner. SharePoint is a platform for administrators, developers, and information workers. Microsoft has divided share point products in two parts. WSS (Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=223&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>SharePoint</strong></p>
<ul>
<li>SharePoint is an enterprise information portal, from Microsoft, that can be configured to run Intranet, Extranet and Internet sites.</li>
<li>Share point helps team members to connect and exchange information in a collaborative manner.</li>
<li>SharePoint is a platform for administrators, developers, and information workers.</li>
</ul>
<p><em><strong> Microsoft has divided share point products in two parts.</strong></em></p>
<ul>
<li><strong>WSS</strong> (Windows SharePoint services)</li>
<li><strong>MOS</strong>S (Microsoft Office SharePoint server)</li>
</ul>
<p><strong> Windows SharePoint Services: </strong> is the platform on which all SharePoint Products and Technologies are built. WSS  is for is suitable for small teams, projects and organizations.</p>
<p><strong>Microsoft Office SharePoint server : </strong>MOSS has extra functionalities in other words value added services.<br />
WSS + Additional Functionalities = MOSS</p>
<p><strong>Top 10 Benefits of Windows SharePoint Services</strong></p>
<ul>
<li>Improve team productivity with easy-to-use collaborative tools .</li>
<li>Easily manage documents and help ensure integrity of content .</li>
<li>Get users up to speed quickly .</li>
<li>Deploy solutions tailored to your business processes .</li>
<li>Build a collaboration environment quickly and easily .</li>
<li>Reduce the complexity of securing business information .</li>
<li>Provide sophisticated controls for securing company resources .</li>
<li>Take file sharing to a new level with robust storage capabilities .</li>
<li>Easily scale your collaboration solution to meet business needs .</li>
<li>Provide a cost-effective foundation for building Web-based applications .</li>
</ul>
<p><strong> Top 10 Benefits Microsoft Office SharePoint Server 2007</strong></p>
<ul>
<li>Provide a simple, familiar, and consistent user experience.</li>
<li>Boost employee productivity by simplifying everyday business activities.</li>
<li>Help meet regulatory requirements through comprehensive control over content.</li>
<li>Effectively manage and repurpose content to gain increased business value.</li>
<li>Simplify organization-wide access to both structured and unstructured information across disparate systems.</li>
<li>Connect people with information and expertise.</li>
<li>Accelerate shared business processes across organizational boundaries.</li>
<li>Share business data without divulging sensitive information.</li>
<li>Enable people to make better-informed decisions by presenting business-critical information in one central location.</li>
<li>Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/223/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=223&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2009/11/13/what-is-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>Technical Support</title>
		<link>http://rajanswer.wordpress.com/2009/11/06/technical-support/</link>
		<comments>http://rajanswer.wordpress.com/2009/11/06/technical-support/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:05:45 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[Jokes]]></category>
		<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=197</guid>
		<description><![CDATA[Technical Support: Here are some conversations that actually happened between help desk people and their customers. Customer: &#8220;You&#8217;ve got to fix my computer. I urgently need to print a document, but the computer won&#8217;t boot properly.&#8221; Tech Support: &#8220;What does it say?&#8221; Customer: &#8220;Something about an error and non-system disk.&#8221; Tech Support: &#8220;Look at your machine. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=197&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:verdana;color:#000099;font-size:small;">Technical Support: </span><span style="font-family:verdana;color:#000000;font-size:x-small;">Here are some conversations that actually happened between help desk people and their customers.<br />
<strong>Customer:</strong> &#8220;You&#8217;ve got to fix my computer. I urgently need to print a document, but the computer won&#8217;t boot properly.&#8221;<br />
<strong>Tech Support:</strong> &#8220;What does it say?&#8221;<br />
<strong>Customer:</strong> &#8220;Something about an error and non-system disk.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Look at your machine. Is there a floppy inside?&#8221;<br />
<strong>Customer:</strong> &#8220;No, but there&#8217;s a sticker saying there&#8217;s an Intel inside.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Just call us back if there&#8217;s a problem. We&#8217;re open 24 hours.&#8221;<br />
<strong>Customer:</strong> &#8220;Is that Eastern time?&#8221;<br />
<strong>Tech Support:</strong> &#8220;Ok, now click your left mouse button.&#8221;<br />
<strong>Customer:</strong> (silence) &#8220;But I only have one mouse.&#8221;<br />
<strong>Customer:</strong> &#8220;Excuse me can I use this disk? It has a hole in it.<br />
<strong>Tech Support:</strong> &#8220;Do you have 3 1/2 inch diskettes?&#8221;<br />
<strong>Customer:</strong> &#8220;No, I only have 3 of them.&#8221;<br />
<strong>Tech Support:</strong> &#8220;I need you to right-click on the Open Desktop.&#8221;<br />
<strong>Customer:</strong> &#8220;Ok.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Did you get a pop-up menu?&#8221;<br />
<strong>Customer:</strong> &#8220;No.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Ok. Right click again. Do you see a pop-up menu?&#8221;<br />
<strong>Customer:</strong> &#8220;No.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Ok, sir. Can you tell me what you have done up until this point?&#8221;<br />
<strong>Customer:</strong> &#8220;Sure, you told me to write &#8216;click&#8217; and I wrote &#8216;click&#8217;.&#8221;<br />
<strong>Customer:</strong> &#8220;Now what do I do?&#8221;<br />
<strong>Tech Support:</strong> &#8220;What is the prompt on the screen?&#8221;<br />
<strong>Customer:</strong> &#8220;It&#8217;s asking for &#8216;Enter Your Last Name.&#8217;&#8221;<br />
<strong>Tech Support:</strong> &#8220;Ok, so type in your last name.&#8221;<br />
<strong>Customer:</strong> &#8220;How do you spell that?&#8221;<br />
<strong>Customer:</strong> &#8220;I received the software update you sent, but I am still getting the same error message.&#8221;<br />
<strong>Tech Support:</strong> &#8220;Did you install the update?&#8221;<br />
<strong>Customer:</strong> &#8220;No. Oh, am I supposed to install it to get it to work?&#8221;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=197&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2009/11/06/technical-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
		<item>
		<title>Environment inside a computer professional&#8217;s bedroom</title>
		<link>http://rajanswer.wordpress.com/2009/11/06/environment-inside-a-computer-professionals-bedroom/</link>
		<comments>http://rajanswer.wordpress.com/2009/11/06/environment-inside-a-computer-professionals-bedroom/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:02:13 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[Jokes]]></category>
		<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/2009/11/06/environment-inside-a-computer-professionals-bedroom/</guid>
		<description><![CDATA[A typical environment inside a computer professional&#8217;s bedroom&#8230; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=196&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A typical environment inside a computer professional&#8217;s bedroom&#8230;<img class="alignnone size-full wp-image-195" title="Compaddict1" src="http://rajanswer.files.wordpress.com/2009/11/compaddict11.jpg" alt="Compaddict1" width="350" height="300" /></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=196&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2009/11/06/environment-inside-a-computer-professionals-bedroom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>

		<media:content url="http://rajanswer.files.wordpress.com/2009/11/compaddict11.jpg" medium="image">
			<media:title type="html">Compaddict1</media:title>
		</media:content>
	</item>
		<item>
		<title>String Functions in SQL Server 2005</title>
		<link>http://rajanswer.wordpress.com/2009/11/06/functions-in-sql-server-2005/</link>
		<comments>http://rajanswer.wordpress.com/2009/11/06/functions-in-sql-server-2005/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 06:49:06 +0000</pubDate>
		<dc:creator>rajnishbhargava</dc:creator>
				<category><![CDATA[FAQ SQL SERVER]]></category>
		<category><![CDATA[Function in SQL Server]]></category>
		<category><![CDATA[Sql Server]]></category>
		<category><![CDATA[Functions in SQL Server 2005]]></category>
		<category><![CDATA[SQL Date/Time Functions]]></category>
		<category><![CDATA[SQL Numeric Functions]]></category>
		<category><![CDATA[SQL String Functions]]></category>

		<guid isPermaLink="false">http://rajanswer.wordpress.com/?p=167</guid>
		<description><![CDATA[Functions in SQL Server 2005 SQL Server built-in functions are either deterministic or nondeterministic. Functions are deterministic when they always return the same result any time they are called by using a specific set of input values. Functions are nondeterministic when they could return different results every time they are called, even with the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=167&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Functions in SQL Server 2005 </strong></p>
<p>SQL Server built-in functions are either <strong><em>deterministic </em></strong>or <strong><em>nondeterministic</em></strong>.</p>
<ul>
<li>Functions are <em><strong>deterministic </strong></em>when they always return the same result any time they are called by using a specific set of input values.</li>
<li>Functions are <em><strong>nondeterministic </strong></em>when they could return different results every time they are called, even with the same specific set of input values.</li>
</ul>
<p><strong>String Functions</strong></p>
<p><strong><em>1.LEN (string) </em></strong>- Returns the number of characters of the specified string expression, excluding trailing blanks.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
Select LEN(&#8216;Raj&#8217;), LEN(&#8216;Raj &#8216;) FROM VENDOR WHEREVendorFName=&#8217;Raj&#8217;<br />
GO<br />
LEN doesn&#8217;t count length of spaces. So result looks like this.<br />
<strong>Output :</strong> 3 , 3</td>
</tr>
</tbody>
</table>
<p><strong><em>2.LTRIM (string) </em></strong>- LTRIM function to return a character expression after removing leading spaces.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
use Vendor<br />
SELECT LTRIM(&#8216; Raj&#8217;)<br />
FROM VENDOR WHERE VendorFName=&#8217;Raj&#8217;<br />
Go<br />
<strong>Output:</strong> Raj</td>
</tr>
</tbody>
</table>
<p><strong>3.</strong> <em><strong>RTRIM (string) </strong></em>- RTRIM function to return a character expression after removing trailing spaces.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor<br />
GO<br />
use Vendor<br />
SELECT LTRIM(&#8216;Raj &#8216;)<br />
FROM VENDOR WHERE VendorFName=&#8217;Raj&#8217; GO<strong> Output: </strong>Raj</td>
</tr>
</tbody>
</table>
<p><strong>4.</strong> <strong><em>LEFT (string, length)</em> &#8211; </strong>Returns the specified number of characters from the beginning of the string.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><strong> </strong><br />
use Vendor<br />
GO<br />
SELECT VendorFName , VendorLName , LEFT( VendorFName , 1 ) + LEFT ( VendorLName , 1 ) AS Initials FROM Vendor<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>5</strong>. <em><strong>RIGTH (string, length) </strong></em>- Returns the specified number of characters from the end of the string.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor<br />
GO<br />
SELECT VendorFName , VendorLName , RIGHT( VendorFName , 1 ) + RIGHT ( VendorLName , 1 ) AS Initials FROM Vendor<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>6.</strong> <strong><em>SUBSTRING (string, start, length)</em> &#8211; </strong>Returns the specified number of characters from the string starting at the specified position.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor<br />
GO<br />
SELECT SUBSTRING ( &#8216;beniwal&#8217; , 2 , 2 ) FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>7.</strong> <em><strong>REPLACE (search, find, replace) </strong></em>- Returns the search string with all occurrences of the find string replaced with the replace string.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor<br />
GO<br />
SELECT REPLACE ( &#8216;Beniwal&#8217; , &#8216;Beniwal&#8217; , &#8216;Choudhary&#8217; ) FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>8.</strong> <strong><em>REVERSE (string)</em> &#8211; </strong>Returns the string with the character in reverse order.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor<br />
GO<br />
SELECT REVERSE ( &#8216;Raj&#8217; ) FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217; GO</td>
</tr>
</tbody>
</table>
<p><strong>9.</strong> <strong><em>CHARINDEX (find, search [, start])</em> &#8211; </strong>Returns an integer that represents the position of the first occurrence of the find string in the search string starting at the specified position. If the starting position isn&#8217;t specified, the search starts at the beginning of the string. If the staring isn&#8217;t found, the functions returns zero.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example: </strong><br />
use Vendor GO<br />
SELECT CHARINDEX ( &#8216;w&#8217; , &#8216;Beniwal&#8217; ) FROM VENDOR WHERE vendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>10.<em> PATINDEX (find, search [, start])</em> &#8211; </strong>PATINDEX is useful with text data types; it can be used in a WHERE clause in addition to IS NULL, IS NOT NULL, and LIKE (the only other comparisons that are valid on text in a WHERE clause). If either pattern or expression is NULL, PATINDEX returns NULL when the database compatibility level is 70. If the database compatibility level is 65 or earlier, PATINDEX returns NULL only when both pattern and expression are NULL.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
SELECT PATINDEX ( &#8216;%Krew%&#8217; , VendorLName ) FROM VENDOR WHERE VendorId = 5<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>11.</strong> <strong><em>LOWER (string)</em> &#8211; </strong>Returns the string converted to lowercase letters.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
SELECT LOWER ( &#8216;Raj&#8217; ) FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>12.</strong> <em><strong>UPPER (string)</strong></em><strong> &#8211; </strong>Returns the string converted to uppercase letters.</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
SELECT UPPER ( &#8216;Raj&#8217; ) FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<p><strong>13.</strong> <strong><em>SPACE (integer) </em>- </strong>Returns the string with the specified number of space characters (blanks).</p>
<table border="1" width="100%" bgcolor="#d1d2e0">
<tbody>
<tr>
<td><strong>Example:</strong><br />
use Vendor<br />
GO<br />
SELECT VendorFName + &#8216;,&#8217; + SPACE ( 2 ) + VendorLName FROM VENDOR WHERE VendorFName = &#8216;Raj&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rajanswer.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rajanswer.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rajanswer.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rajanswer.wordpress.com&amp;blog=9106606&amp;post=167&amp;subd=rajanswer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rajanswer.wordpress.com/2009/11/06/functions-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9febd9470f29b3e5539abd9840d1b6d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rajnish Bhargava</media:title>
		</media:content>
	</item>
	</channel>
</rss>
