<?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>Beautiful Mind</title>
	<atom:link href="http://salviashish.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://salviashish.wordpress.com</link>
	<description>" Fall in love with the world around you "</description>
	<lastBuildDate>Thu, 14 Jul 2011 12:16:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='salviashish.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Beautiful Mind</title>
		<link>http://salviashish.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://salviashish.wordpress.com/osd.xml" title="Beautiful Mind" />
	<atom:link rel='hub' href='http://salviashish.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Proud to be an Indian?</title>
		<link>http://salviashish.wordpress.com/2011/07/14/proud-to-be-an-indian/</link>
		<comments>http://salviashish.wordpress.com/2011/07/14/proud-to-be-an-indian/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 12:16:07 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=341</guid>
		<description><![CDATA[Seeing what happened yesterday, one of my close friend wrote a mail and expressed his feelings. I thougth to it broadcast his voice on a larger medium. Here how it goes. We feel proud while saying we are Indians, right. BULLSHIT !!!  We feel so proud by saying India is emerging to be great nation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=341&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Seeing what happened yesterday, one of my close friend wrote a mail and expressed his feelings. I thougth to it broadcast his voice on a larger medium.</p>
<p>Here how it goes.</p>
<p>We feel proud while saying we are Indians, right. BULLSHIT !!!</p>
<p> We feel so proud by saying India is emerging to be great nation and we compare ourselves to other nation. </p>
<p>We say we are emerging in technologies, which are outdated or getting faded out.</p>
<p>We say we are the only one nation to have many regilions butinstead of respecting and nurturing it, we fight over religions just to prove that our religion is supreme. Religions were never meant for fighting. They were meant for beliefs and feel the divine in you. They were created to be honest, respectful, helpful, joyful. But instead we divide it. What for??</p>
<p>We say we have rich heritage and great culture, Do you see?, I dont. We label the bending of culture as the progress.</p>
<p>Spoling the heritage by garbaging and and writings your lover names.</p>
<p>We say we have great histroy, great people scarificed lives for the nation. Please dont insult them by saying this. They fought to make india a great nation. Gave lives so that the future INDIANS, irrespective of their families do better and have a good living but now it is our families only.</p>
<p>We so called MODERN INDIAND are SPINLESS.. we don&#8217;t respect ourselves, then we should not expect any government to protect us. </p>
<p>We bend rules and regulations and feel proud of doing it. We people bribe government officers and we say they are corrupt.Government is corrupt, they are bastards and n number of things we say, so why do we select them. We dont vote, or vote just for formality without knowing how the candidate is.. Are you kidding me??</p>
<p>Terrorist attacks, Scams, Bribery, we are the reasons for that. Agree or not that is the fact.</p>
<p>Whenever some unlawful incident happen we blame government or officials . Scam happen blame government. Why?? We selected them and so we bear the fruit.</p>
<p>Incident like yesterday and previous too should have been an eye opener but no, we are in sleep and we want to be like that.</p>
<p>We Indians are known as peaceful people, we claim to have the high spirits and come out incident like yesterday in no time. Is that the reason or are we too coward to even accept the fact we are afraid. We are now habituated to such things. In India there is no values for human life. We have no morals for ourselves and we live like salves to this so called Modern and Corporate world. We are not confident enough to keep our head high and live, We forgot to live.</p>
<p>BHAGAT SINGH fought the whole ruling empire just to have a better living condition being a prisoner and we live like prisoner being free.</p>
<p>GHANDHI picture was printed on the currency so that he could be respected, instead we disrespect him by giving the same money in bribe. </p>
<p>GUYS c&#8217;mon, We are INDIANS, the largest democratic country in the world. We have it in ourselves. It is our country our own motherland and shouldnt be treating it with entire dignity and respect.</p>
<p>KNOW YOUR RIGHT, BE RESPONSIBLE, BE A CHANGE TO SEE CHANGE. It is the time to step ahead. CMON we surely can do better than burning candles and feeling sorry for the lost one. Make every life count.</p>
<p>&#8211;</p>
<p>Bahubali Mody</p>
<p>&#8220;WE HUMANS- we humans, together can make a big diffrence.</p>
<p>So, what life will you choose now?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=341&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2011/07/14/proud-to-be-an-indian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating database using dataset</title>
		<link>http://salviashish.wordpress.com/2009/10/21/updating-database-using-dataset/</link>
		<comments>http://salviashish.wordpress.com/2009/10/21/updating-database-using-dataset/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 11:32:22 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[DataSet]]></category>
		<category><![CDATA[Dataset Delete]]></category>
		<category><![CDATA[Dataset Update]]></category>
		<category><![CDATA[OleDbCommandBuilder]]></category>
		<category><![CDATA[SqlCommandBuilder]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=319</guid>
		<description><![CDATA[Topic Illustrating the use of OleDb or Sql CommandBuilder to update database using dataset.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=319&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This topic illustrates how to update data in a database using a DataSet. It is important to remember      that you can also insert, update, and delete data in a database directly using a <strong>SqlCommand</strong>.</p>
<p>Once the     <strong>DataSet</strong> is loaded, you can modify the data, and the DataSet will track the changes.</p>
<p>The <strong>DataSet</strong> can be considered an in-memory cache of data retrieved from a database. The     <strong>DataSet</strong> consists of a collection of tables, relationships, and     constraints. In this example we will show how to use the <strong>Delete</strong> method on the DataSet to <strong>Delete</strong> rows from the database.The Database values are updated with those from Dataset using <strong>Update</strong> method of <strong>SqlDataAdapter</strong></p>
<p>Below are some simple steps to preform  <strong>Delete</strong> operation on Dataset.</p>
<p><strong>STEP  1 :</strong> Fill the Dataset with the data you required and bind it to grid.</p>
<p><strong>STEP 2:</strong> To Delete a particular row from dataset we required its DatasetIndex, to know the DatasetIndex we perform the delete operation on Grid&#8217;s ItemCommand Event.</p>
<p><em>If e.CommandName = &#8220;Delete&#8221; Then<br />
parentset.Tables(0).Rows(e.Item.DataSetIndex).Delete()<br />
End If<br />
dgUser.DataSource = UpdateDatabase(parentset, &#8220;OleDb&#8221;)<br />
dgUser.DataBind()</em></p>
<p><strong>STEP 3:</strong> <strong> </strong> Create a new instance of OleDbDataAdapter and pass the required parameters, you can either pass OleDbCommand object or write down the Sql statement alongwith the ConnectionString.</p>
<p>Create a instance of OleDbCommandBuilder, it is used to update the changes from Dataset to Database. The parameter required for OleDbCommandBuilder is OleDbDataAdapter with a SELECT Sql statement. The command builder will automatically generate INSERT,UPDATE &amp; DELETE statements for the table and parameters used in SELECT statement.</p>
<p><em><br />
Public Function UpdateDatabase(ByRef dataSet As DataSet, ByVal Provider As String) As DataSet<br />
If Provider = &#8220;OleDb&#8221; Then<br />
Dim dbAdapter As New OleDbDataAdapter(&#8220;SELECT Sql Statement&#8221;,ConnectionString)<br />
Dim objCommandBldr As New OleDbCommandBuilder(dbAdapter)<br />
dbAdapter.Update(dataSet)<br />
ElseIf Provider = &#8220;SQL&#8221; Then<br />
Dim sqlAdapter As New SqlDataAdapter(&#8220;SELECT Sql Statement&#8221;,ConnectionString)<br />
Dim sqlCommandBuilder As New SqlCommandBuilder(sqlAdapter)<br />
sqlAdapter.Update(dataSet)<br />
End If<br />
Return dataSet<br />
End Function</em></p>
<p><strong>STEP 4:</strong> Build &amp; Execute.</p>
<p><em> </em></p>
<p>Here is the <a href="http://www.box.net/shared/4vxgb6lkzs">link </a>to download the sample application which will demonstrate the above behavior.</p>
<p>You can also find a detailed explanation of Updating Database using Dataset over <a title="MSDN Link for updating database using dataset" href="http://msdn.microsoft.com/en-us/library/33y2221y%28VS.71%29.aspx">here</a>.</p>
<p>Enjoy Coding and Keep Learning <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=319&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/10/21/updating-database-using-dataset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>Insert Code Snippet &#8211; Tip Of Week#1</title>
		<link>http://salviashish.wordpress.com/2009/08/14/insert-code-snippet-tip-of-week1/</link>
		<comments>http://salviashish.wordpress.com/2009/08/14/insert-code-snippet-tip-of-week1/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 10:17:21 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tip Of Week]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.Net Tips]]></category>
		<category><![CDATA[Dot Net Tips]]></category>
		<category><![CDATA[Insert Code Snippet]]></category>
		<category><![CDATA[Visual Studio Tips]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=314</guid>
		<description><![CDATA[Hi guys, do you know you can use already ready code inside your visual studio? Yes certainly you can insert code snippets into your code. You can invoke the “Insert Snippet” by using shortcut “ctrl k + ctrl x” You can download some of the code snippets from http://msdn.microsoft.com/ you need to do is install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=314&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi guys, do you know you can use already ready code inside your visual studio? Yes certainly you can insert code snippets into your code. You can invoke the “Insert Snippet” by using shortcut “ctrl k + ctrl x”</p>
<div id="TixyyLink" style="border:medium none;overflow:hidden;color:#000000;background-color:transparent;text-align:left;text-decoration:none;"><img class="aligncenter size-full wp-image-315" title="snippet" src="http://salviashish.files.wordpress.com/2009/08/snippet.jpg?w=500&#038;h=221" alt="snippet" width="500" height="221" /></p>
<p>You can download some of the code snippets from <a href="http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx" target="_blank">http://msdn.microsoft.com/</a> you need to do is install this file at “My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets” location. You can also find some more snippets at http://www.codeplex.com/snippetlibcsharp/Release/ProjectReleases.aspx?ReleaseId=14841 all you need to do is copy this snippet at “My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets” and you are ready to use these ready made code into your visual studio using shortcuts “ctrl k + ctrl x”</p>
<p>You can also insert the snippets by writing a part of it and pressing tab twice. For e.g. to insert a new property in your code type</p>
<p>prop + tab + tab</p>
<p>this will insert a property in your code window.</p>
<p>So keep using this to improve your productivity, and enjoy coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=314&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/08/14/insert-code-snippet-tip-of-week1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>

		<media:content url="http://salviashish.files.wordpress.com/2009/08/snippet.jpg" medium="image">
			<media:title type="html">snippet</media:title>
		</media:content>
	</item>
		<item>
		<title>Be Sunshine Happy :)</title>
		<link>http://salviashish.wordpress.com/2009/08/04/be-sunshine-happy/</link>
		<comments>http://salviashish.wordpress.com/2009/08/04/be-sunshine-happy/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 12:51:05 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Self Development]]></category>
		<category><![CDATA[Happiness]]></category>
		<category><![CDATA[Happy]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=307</guid>
		<description><![CDATA[What makes some people simile and stay sunshine happy, almost all the time? These optimists refuse to get crushed by bad news and spread the sounds of laughter and hope. They are all around us, trying to give those who&#8217;re sulking, frowning and sad, a simple lesson in the pursuit of happyness. Most people are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=307&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What makes some people simile and stay sunshine happy, almost all the time? These optimists refuse to get crushed by bad news and spread the sounds of laughter and hope. They are all around us, trying to give those who&#8217;re sulking, frowning and sad, a simple lesson in the pursuit of happyness.</p>
<p>Most people are happy if their wishlist is fulfilled. But that&#8217;s not real happiness. It&#8217;s a fluctuating happiness index which dips if they fall ill or experience heartbreak. Happy energy wouldn&#8217;t be dependent on outside factors, it has to come from within. There are people, who have everything they desire and are still unhappy. Choose your emotions and thoughts. Free yourself from past baggage, mistakes and regrets. Choose to be happy.</p>
<p>There&#8217;s something about being genuinely happy. Why should your happiness be dependent on tha global economy, your work environment or your spouse&#8217;s behaviour?</p>
<p>Moods sway from dark to happy for everyone. Everyone has the power to be totally happy, which is a cultivated art. Can you be really happy in tough times?</p>
<p>Optimism has nothing to do with the future, rather, it is a description of reality. The real definition of optimism was relevent in good and bad times, you just have to choose to be happy, despite whatever happens.</p>
<p>Live life to full, never pay attention to failures. Every minute whatever you do, you should enjoy by saying yes more than by saying no. Always have faith that&#8217;s the way to open doors. Once you decide you&#8217;ll be happy, that&#8217;s what you &#8216;ll create in your life.</p>
<p>For optimists all experiences are positive, as they bring new opportunity. Hence, happiness is a decision.</p>
<p>Don&#8217;t label situations good or bad. When unhappiness onfronts you, rather than running away, exercise the force of will to run through it. It&#8217;s not just in thought but in action too. If you have to experiment with new ideas, you&#8217;ll experience setbacks. you should not let it intimidate or overwhelm you. Have the will to be happy from inside.</p>
<p>The way to bring happiness is to work honestly and to share. Ther has to be a sense of detachment from external situations.</p>
<p>Work on happiness as a skill to be developed. Let happines be a learnt reaction. You&#8217;ll have to work at being happy. But it&#8217;ll be rewarding and bring you real joy.</p>
<p>Tell yourself every minute. &#8220;It&#8217;s in my power to be happy, no matter what!&#8221;</p>
<p>How to be Sunshine Happy,</p>
<p>- Don&#8217;t label situations or experiences as good or bad.</p>
<p>- Empower yourself to be happy.</p>
<p>- Look within for happiness</p>
<p>- Don&#8217;t get affected by bad news</p>
<p>- Choose your emotions. Keep saying, &#8216;I choose to be happy&#8217;</p>
<p>- Conserve your energy, don&#8217;t let people sap it</p>
<p>- If you&#8217;re hurt, don&#8217;t be dependent on anyone else to heal</p>
<p>- Don&#8217;t indulge in hurt</p>
<p>- Don&#8217;t be imprisoned in you past or have self-pity</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=307&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/08/04/be-sunshine-happy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>Using ParseQueryString to get QueryString Values</title>
		<link>http://salviashish.wordpress.com/2009/07/27/using-parsequerystring-to-get-querystring-values/</link>
		<comments>http://salviashish.wordpress.com/2009/07/27/using-parsequerystring-to-get-querystring-values/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 02:49:55 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[HttpUtility]]></category>
		<category><![CDATA[NameValueCollection Example]]></category>
		<category><![CDATA[ParseQueryString]]></category>
		<category><![CDATA[Querystring]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=300</guid>
		<description><![CDATA[Following is the sample code you can use to parse your querystring and return NameValueCollection protected void Page_Load(object sender, EventArgs e) { String currurl = HttpContext.Current.Request.RawUrl; String querystring = null ; // Check to make sure some query string variables // exist and if not add some and redirect. int iqs = currurl.IndexOf(&#8216;?&#8217;); if (iqs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=300&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following is the sample code you can use to parse your querystring and return NameValueCollection</p>
<p>protected void Page_Load(object sender, EventArgs e)<br />
{<br />
String currurl = HttpContext.Current.Request.RawUrl;<br />
String querystring = null ;</p>
<p>// Check to make sure some query string variables<br />
// exist and if not add some and redirect.<br />
int iqs = currurl.IndexOf(&#8216;?&#8217;);<br />
if (iqs == -1)<br />
{<br />
String redirecturl = currurl + &#8220;?var1=1&amp;var2=2+2%2f3&amp;var1=3&#8243;;<br />
Response.Redirect(redirecturl, true);<br />
}<br />
// If query string variables exist, put them in<br />
// a string.<br />
else if (iqs &gt;= 0)<br />
{<br />
querystring = (iqs &lt; currurl.Length &#8211; 1) ? currurl.Substring(iqs + 1) : String.Empty;<br />
}</p>
<p>// Parse the query string variables into a NameValueCollection.<br />
NameValueCollection qscoll = HttpUtility.ParseQueryString(querystring);</p>
<p>// Iterate through the collection.<br />
StringBuilder sb = new StringBuilder(&#8220;&#8221;);<br />
foreach (String s in qscoll.AllKeys)<br />
{<br />
sb.Append(s + &#8221; &#8211; &#8221; + qscoll[s] + &#8220;&#8221;);<br />
}</p>
<p>// Write the result to a label.<br />
ParseOutput.Text = sb.ToString();</p>
<p>}</p>
<p>This is the front end code ,</p>
<p>&lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt;<br />
Query string variables are:<br />
&lt;asp:label id=&#8221;ParseOutput&#8221; runat=&#8221;server&#8221;&gt;<br />
&lt;/asp:label&gt;&lt;/form&gt;</p>
<p>Hope this Helps <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=300&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/27/using-parsequerystring-to-get-querystring-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>JQuery in Visual Studio</title>
		<link>http://salviashish.wordpress.com/2009/07/18/jquery-in-visual-studio/</link>
		<comments>http://salviashish.wordpress.com/2009/07/18/jquery-in-visual-studio/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 05:53:11 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[DotNet]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=263</guid>
		<description><![CDATA[A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code. jQuery supports this via a nice &#8220;selector&#8221; API that allows developers to query for HTML elements, and then apply &#8220;commands&#8221; to them. One of the characteristics of jQuery [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=263&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code.  jQuery supports this via a nice &#8220;selector&#8221; API that allows developers to query for HTML elements, and then apply &#8220;commands&#8221; to them.  One of the characteristics of jQuery commands is that they can be &#8220;chained&#8221; together &#8211; so that the result of one command can feed into another.  jQuery also includes a built-in set of animation APIs that can be used as commands.  The combination allows you to do some really cool things with only a few keystrokes.</p>
<p>For example, the below JavaScript uses jQuery to find all &lt;div&gt; elements within a page that have a CSS class of &#8220;product&#8221;, and then animate them to slowly disappear:</p>
<p><em>$(&#8220;div.product&#8221;).slideUp(&#8216;slow&#8217;).addClass(&#8220;removed&#8221;);</em></p>
<p>As another example, the JavaScript below uses jQuery to find a specific &lt;table&gt; on the page with an id of &#8220;datagrid1&#8243;, then retrieves every other &lt;tr&gt; row within the datagrid, and sets those &lt;tr&gt; elements to have a CSS class of &#8220;even&#8221; &#8211; which could be used to alternate the background color of each row:</p>
<p><em>$(&#8220;#datagrid1 tr:nth-child(even)&#8221;).addClass(&#8220;even&#8221;);</em></p>
<p>The jQuery library also works well on the same page with ASP.NET AJAX and the ASP.NET AJAX Control Toolkit.</p>
<p>Visual Studio figures out external script references, such as to JQuery, by following special reference comments it finds at the top of .js files:</p>
<pre>/// &lt;reference path="jquery-1.2.3.js" /&gt;</pre>
<p>You can download the JQuery from <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.6.js&amp;downloadBtn=%3CSPAN%3EDownload%3C%2FSPAN%3E" target="_blank">here</a>. You can get more details on JQuery from <a href="http://jquery.com/api/">http://jquery.com/</a> .</p>
<p>For intellisense support for JQuery you need to install this <a href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=10826" target="_blank">Hotfix</a>.</p>
<p>Comment for javascript is written inside for intellisense support. JavaScript has the interesting feature that calling toString on a function returns the code of this function including the comments and thus the doc comments. Here&#8217;s a similar example in JavaScript where the documentation is written inside of a class constructor:</p>
<p style="text-align:center;"><a href="http://salviashish.wordpress.com/2009/07/jsintellisense.png"><img class="aligncenter size-full wp-image-292" title="jsintellisense" src="http://salviashish.files.wordpress.com/2009/07/jsintellisense.png?w=382&#038;h=65" alt="jsintellisense" width="382" height="65" /></a></p>
<p>Another difference with C# or VB.NET is that property and event accessors are two different entities in JavaScript. For this reason, to choose where the documentation should be for those members. Properties should be documented in the getter and events in the &#8220;adder&#8221; for this reason:</p>
<p style="text-align:center;"><a href="http://salviashish.wordpress.com/2009/07/js.png"><img class="aligncenter size-full wp-image-294" title="js" src="http://salviashish.files.wordpress.com/2009/07/js.png?w=476&#038;h=141" alt="js" width="476" height="141" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=263&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/18/jquery-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>

		<media:content url="http://salviashish.files.wordpress.com/2009/07/jsintellisense.png" medium="image">
			<media:title type="html">jsintellisense</media:title>
		</media:content>

		<media:content url="http://salviashish.files.wordpress.com/2009/07/js.png" medium="image">
			<media:title type="html">js</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable copy &amp; paste in asp.net textboxes</title>
		<link>http://salviashish.wordpress.com/2009/07/14/disable-copy-paste-in-asp-net-textboxes/</link>
		<comments>http://salviashish.wordpress.com/2009/07/14/disable-copy-paste-in-asp-net-textboxes/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 04:21:37 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Disable Copy]]></category>
		<category><![CDATA[Disable Copy Paste]]></category>
		<category><![CDATA[Disable Paste]]></category>
		<category><![CDATA[Javascript functions]]></category>
		<category><![CDATA[Textbox]]></category>
		<category><![CDATA[Textbox events]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=271</guid>
		<description><![CDATA[Below is the line of code to disable copy &#38; paste event in textbox. &#60;asp:TextBox onCopy=&#8221;return false&#8221; onPaste=&#8221;return false&#8221; ID=&#8221;textboxname&#8221; runat=&#8221;server&#8221; &#62;&#60;/asp:TextBox&#62; Hope this helps Enjoy!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=271&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is the line of code to disable copy &amp; paste event in textbox.</p>
<p>&lt;asp:TextBox onCopy=&#8221;return false&#8221; onPaste=&#8221;return false&#8221; ID=&#8221;textboxname&#8221; runat=&#8221;server&#8221; &gt;&lt;/asp:TextBox&gt;</p>
<p>Hope this helps <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Enjoy!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=271&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/14/disable-copy-paste-in-asp-net-textboxes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>Use CS and VB files in App_Code</title>
		<link>http://salviashish.wordpress.com/2009/07/11/use-cs-and-vb-files-in-app_code/</link>
		<comments>http://salviashish.wordpress.com/2009/07/11/use-cs-and-vb-files-in-app_code/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:12:38 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[App_Code]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Class files]]></category>
		<category><![CDATA[Class libraries]]></category>
		<category><![CDATA[Code Compilation]]></category>
		<category><![CDATA[Compilation]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Web.Config]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=269</guid>
		<description><![CDATA[Detailed explanation of using csharp and vb files in app_code.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=269&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We all know that App_Code folder contains source code files written as traditional class files — that is, files with a .vb extension, .cs extension, and so on.</p>
<p>But when we keep .cs and .vb file together in one folder and try to build the project it throws errors. So to successfully build the project we follow two simple steps .</p>
<p>Step#1 : Create two folders VBCode for .vb files and CSCode for .cs files.</p>
<p>Step#2:  Modify web.config file.</p>
<p>&lt;compilation&gt;<br />
&lt;codeSubDirectories&gt;<br />
&lt;add directoryName=&#8221;CSCode&#8221;/&gt;<br />
&lt;add directoryName=&#8221;VBCode&#8221;/&gt;<br />
&lt;/codeSubDirectories&gt;<br />
&lt;/compilation&gt;</p>
<p>That&#8217;s all, Hope this helps.<br />
Enjoy !! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=269&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/11/use-cs-and-vb-files-in-app_code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading Database value in Javascript</title>
		<link>http://salviashish.wordpress.com/2009/07/08/reading-database-value-in-javascript/</link>
		<comments>http://salviashish.wordpress.com/2009/07/08/reading-database-value-in-javascript/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:44:47 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Javascript and Database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[VS.Net]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=266</guid>
		<description><![CDATA[Today while developing a page, we felt need to read database into javascript array. And we were confused if at all we can do this. So finally after googling on this we found a workaround. So I just thought of sharing this with you because I think this is really helpful. &#60;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221;&#62; var [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=266&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today while developing a page, we felt need to read database into javascript array. And we were confused if at all we can do this. So finally after googling on this we found a workaround. So I just thought of sharing this with you because I think this is really helpful.</p>
<p>&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
var allRecords = new array();<br />
var count=0;<br />
&lt;%While  (NOT rs_yours.EOF)%&gt;<br />
allrecords[count]=&#8221;&lt;%= rs_yours.Fields.Item(&#8220;foo1&#8243;).Value %&gt;&#8221;<br />
&lt;%<br />
rs_yours.MoveNext()<br />
Wend<br />
%&gt;<br />
&lt;/script&gt;</p>
<p>This script will read the value from your datareader into javascript array.</p>
<p>Also if you want to read a single value from the server side into your javascript like this,</p>
<p>var location=&#8217;&lt;%=Session["location"]%&gt;&#8217;;</p>
<p>Hope this helps <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=266&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/08/reading-database-value-in-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Execute with character string</title>
		<link>http://salviashish.wordpress.com/2009/07/06/sql-execute-with-character-string/</link>
		<comments>http://salviashish.wordpress.com/2009/07/06/sql-execute-with-character-string/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 05:01:44 +0000</pubDate>
		<dc:creator>salviashish</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[EXEC]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Exec]]></category>
		<category><![CDATA[SQL Execute]]></category>
		<category><![CDATA[String Execute]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://salviashish.wordpress.com/?p=260</guid>
		<description><![CDATA[Today I just got went though this, this helps you to execute a string in SQL. This is how you can execute a string in SQL, Declare @query Varchar(500) Set @query = &#8216;Select * From Employees&#8217; Exec (@query) OR EXEC (&#8216;USE AdventureWorks; SELECT EmployeeID, Title FROM HumanResources.Employee;&#8217;) This way you can execute a string in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=260&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I just got went though this, this helps you to execute a string in SQL. This is how you can execute a string in SQL,</p>
<p>Declare @query Varchar(500)</p>
<p>Set @query = &#8216;Select * From Employees&#8217;</p>
<p>Exec (@query)</p>
<p>OR</p>
<p>EXEC (&#8216;USE AdventureWorks; SELECT EmployeeID, Title FROM HumanResources.Employee;&#8217;)</p>
<p>This way you can execute a string in SQL.</p>
<p>This is extremely helpful when you need to add the Where clause based on some criteria. You can have your query in a string and based on that criteria you can append the clause in that string and finally execute the string at the end. This works perfectly.</p>
<p>However this does not work if you want to execute the  query and get the result in the Dataset in your .Net application. For that you need to create a #Temp table execute the string and get the result in the #Temp table and then fire the select again on your #Temp table.</p>
<p>Note: Don&#8217;t forget to get the brackets ( &amp; ) around your query else SQL will throw an error, Unrecognized stored procedure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salviashish.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salviashish.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salviashish.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salviashish.wordpress.com&amp;blog=4601271&amp;post=260&amp;subd=salviashish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salviashish.wordpress.com/2009/07/06/sql-execute-with-character-string/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/09dde2e0c9417d33d729af82338ea290?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ashish</media:title>
		</media:content>
	</item>
	</channel>
</rss>
