<?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"
	>

<channel>
	<title>In the Line of Fire....Shaunak Pandit</title>
	<atom:link href="http://shaunakpandit.blog.co.in/wp-rss2.php" rel="self" type="application/rss+xml" />
	<link>http://shaunakpandit.blog.co.in</link>
	<description>Random thoughts abt life and my work (in the line of fire between Testers,Managers and clients)</description>
	<pubDate>Sat, 12 Sep 2009 15:23:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Recipe for Success : Nice one</title>
		<link>http://shaunakpandit.blog.co.in/2009/09/12/recipe-for-success-nice-one/</link>
		<comments>http://shaunakpandit.blog.co.in/2009/09/12/recipe-for-success-nice-one/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 15:23:04 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<category><![CDATA[Recipe for success]]></category>

		<category><![CDATA[success]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=130</guid>
		<description><![CDATA[



Got a forward from a friend the subject stated “Recipe for Succes” the contents were even more thought provoking than the subject.
Pasting it here for benefit of others….
Setting Goals
but NOT in concrete
Staying Focused
but turning aside to Help someone
Following Plan
but remaining Flexible
Moving ahead
but not too fast to miss the smell of flowers
Climbing the Ladder
but not stepping [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<div class="entry">
<div class="snap_preview">
<p>Got a forward from a friend the subject stated “Recipe for Succes” the contents were even more thought provoking than the subject.<br />
Pasting it here for benefit of others….</p>
<blockquote><p>Setting Goals<br />
but NOT in concrete</p>
<p>Staying Focused<br />
but turning aside to Help someone</p>
<p>Following Plan<br />
but remaining Flexible</p>
<p>Moving ahead<br />
but not too fast to miss the smell of flowers</p>
<p>Climbing the Ladder<br />
but not stepping on Toes</p>
<p>Fighting to Finish<br />
but choosing your battles</p>
<p>Taking a Bow<br />
but applauding those who had a part in your success</p></blockquote>
</div>
</div>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2009/09/12/recipe-for-success-nice-one/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Extracting HTML source from a URL website</title>
		<link>http://shaunakpandit.blog.co.in/2009/08/16/extracting_html_source_from_url/</link>
		<comments>http://shaunakpandit.blog.co.in/2009/08/16/extracting_html_source_from_url/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 15:43:30 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[extract html source]]></category>

		<category><![CDATA[reading html from url]]></category>

		<category><![CDATA[reading html from website]]></category>

		<category><![CDATA[webrequest and webresponse object]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=127</guid>
		<description><![CDATA[

Was just thinking of trying something short and sweet and thought of trying out a snippet for extracting code from the entered url.
Following is the code have not declared the namespaces on top but used them directly in the code to bring more clarity on which namespace the object comes from.
The code is self explanatory [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Was just thinking of trying something short and sweet and thought of trying out a snippet for extracting code from the entered url.<br />
Following is the code have not declared the namespaces on top but used them directly in the code to bring more clarity on which namespace the object comes from.</p>
<p>The code is self explanatory so wont add any explanations over here..</p>
<p>&lt;code&gt;&amp;lt;/// &amp;lt;summary&amp;gt;<br />
/// Extracts the source from the url entered.<br />
/// &amp;lt;/summary&amp;gt;<br />
/// &amp;lt;param name=&amp;quot;url&amp;quot;&amp;gt;url to fetch the source from.&amp;lt;/param&amp;gt;<br />
/// &amp;lt;returns&amp;gt;string: source for the url entered.&amp;lt;/returns&amp;gt;<br />
public static string GetHtmlPageSource(string url)<br />
{</p>
<p>System.IO.Stream st = null;<br />
System.IO.StreamReader sr = null;</p>
<p>try<br />
{<br />
// make a Web request<br />
System.Net.WebRequest req = System.Net.WebRequest.Create(url);</p>
<p>// get the response and read from the result stream<br />
System.Net.WebResponse resp = req.GetResponse();<br />
st = resp.GetResponseStream();<br />
sr = new System.IO.StreamReader(st);<br />
// read all the text in it<br />
return sr.ReadToEnd();<br />
}<br />
catch (Exception ex)<br />
{<br />
return string.Empty;<br />
}<br />
finally<br />
{<br />
// close the stream &amp;amp; reader objects.<br />
sr.Close();<br />
st.Close();<br />
}<br />
}&lt;/code&gt;</p>
<p>&lt;strong&gt;UPDATE:&lt;/strong&gt;</p>
<p>If you need to authenticate the request use the following just before you make the request to read the source<br />
&lt;code&gt;<br />
// authenticate using the credentials passed for getting access to the page.<br />
if (username != null &amp;amp;&amp;amp; password != null)<br />
req.Credentials = new System.Net.NetworkCredential(username, password);<br />
// get the response and read from the result stream<br />
.<br />
.<br />
.<br />
&lt;/code&gt;</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2009/08/16/extracting_html_source_from_url/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Exception Handling .NET Try Catch Finally Block working</title>
		<link>http://shaunakpandit.blog.co.in/2008/10/11/exception-handling-net-try-catch-finally-working-shaunak-pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/10/11/exception-handling-net-try-catch-finally-working-shaunak-pandit/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 07:36:13 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Best Practices]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[finally bloc]]></category>

		<category><![CDATA[finally block]]></category>

		<category><![CDATA[handling exceptions .NET]]></category>

		<category><![CDATA[try catch]]></category>

		<category><![CDATA[try catch finally]]></category>

		<category><![CDATA[try catch finally block]]></category>

		<category><![CDATA[try finally block]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=126</guid>
		<description><![CDATA[

 
 
Exception handling and performance
The vanila try- catch statement:

try
{
// Execute the code for SQL
}
Catch(Exception Ex)
{
// Handle the exception.
}
In the above example the try catch encapsulates a piece of code executing some DB operations.
In case there is an exception thrown in the try block code the exception will be smartly catched in the catch block [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<h3><a name="_Toc535133642"><span><em><span style="font-family:Verdana"> </span></em></span></a></h3>
<h2><a name="_Toc535133643"></a><span> </span></h2>
<h3><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank">Exception handling and performance</a></h3>
<p><span><span style="font-family:Verdana"><span style="font-size:x-small">The vanila try- catch statement:<br />
</span></span></span></p>
<blockquote><p>try<br />
{</p>
<p>// Execute the code for SQL<br />
}</p>
<p>Catch(Exception Ex)<br />
{</p>
<p>// Handle the exception.<br />
}</p></blockquote>
<p>In the above example the try catch encapsulates a piece of code executing some DB operations.<br />
In case there is an exception thrown in the try block code the exception will be smartly catched in the catch block and can be processed and handled.</p>
<p><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank"><strong>Catch working.</strong></a></p>
<p>A Catch block is used as a catcher of exceptions. i.e A catch block will catch the exception or any child exceptions that are derived from the class.</p>
<blockquote>
<pre>try</pre>
<p>{</p>
<p>// Execute the code<br />
}</p>
<p>Catch(<span><span style="font-size:x-small"><span style="font-family:Verdana">ArgumentException</span></span></span> Ex)<br />
{</p>
<p>// Handle the exception.<br />
}</p></blockquote>
<p>In the above case any exceptions from the ArgumentException class will be caught in the catch block this will also include any child exceptions of the ArgumentException such as ArgumentOutOfRangeException, ArgumentNullException etc. As these exception classes are derived from the parent class ArgumentException (Remember .NET classes have loads of base classes <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank"><strong>Now that its caught what to do?</strong></a></p>
<p>A Million dollar question!!! In code reviews have seen developers writing a try catch block and catching the exceptions and doing nothing with it. Wake up!!!!!! guys an exception is a exceptional flow of the code.. ie the moment it comes in the exception block it means this wasn&#8217;t the expected flow so obviously we cant let it go silently unnoticed.</p>
<p>Of course we don&#8217;t navigate it back to the user , but we do need to log it, process it, pass it back to the calling method with more info etc so that the developer is aware of the exceptions that occurred.</p>
<p>When i say Pass it back to the calling method a qts arises in our mind.. if we have to pass it to the calling function why in the name of God do we need to catch it as if we dont catch it it will automatically get thrown back to the calling method!!!!!!.</p>
<p>Thats true completely true, but as a developer we need to understand the exact location of error, maybe we want to add more custom information to the exception and then pass it back to the calling method.</p>
<p>Lets take an example of a utility class you have written for processing some data, now since this is a class which will be providing service to the classes calling on it.It will have to give out details of the exception if any that it will face in the operations..</p>
<blockquote>
<pre>try</pre>
<p>{<br />
// Open file<br />
// Process data<br />
// Send confirmation mail</p>
<p>}Catch(<span><span style="font-size:x-small"><span style="font-family:Verdana">Exception</span></span></span> Ex)<br />
{</p>
<p>Logger.WriteLog(&#8221;Exception: Method: ProcessData: Parameters: A = 4, b= &#8220;ABC&#8221;);<br />
Throw new Exception(&#8221;Error occured in processing data MethodXYZ with parameters a = 4, b =&#8221;ABC&#8221;, ex);<br />
}</p></blockquote>
<p>The above try catch block will not only handle the exception thrown but also log it into the custom logger and then send a customized exception with the details as well as the stack trace for the exception.</p>
<p>Such detailed exception/debuggin output will not only help the developer pinpoint the exception source but also provide him the details of the object when the exception occured.<strong></strong></p>
<p><strong></strong></p>
<p><strong>P.S Its not a good idea to create new exception class objects and send the existing exception through it as it has some performance issues so choose carefully.</strong></p>
<p><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank"><strong>Multiple Catch</strong></a></p>
<p>In the above scenario it would have been better to even drill down to the exact exception type as we have 3 different piece of code</p>
<p>1) File operation<br />
2) Data Processing<br />
3) Email functionality</p>
<p>* Ideally all these 3 functionality should be in their separate methods for maintainability but for the purpose of this example had to club them together in 1 method.</p>
<blockquote>
<pre>try</pre>
<p>{<br />
// Open file<br />
// Process data<br />
// Send confirmation mail</p>
<p>}<br />
Catch(IOExecption Ex)<br />
{<br />
// Perform catch handling for File input /output exceptions<br />
}<br />
Catch(SQL<span><span style="font-size:x-small"><span style="font-family:Verdana">Exception</span></span></span> Ex)<br />
{<br />
// Perform catch handling for DB exceptions<br />
}<br />
Catch(Exception Ex)<br />
{<br />
// Perform catch handling for general exceptions<br />
}</p></blockquote>
<p><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank"><strong>Order of catch blocks and the importance behind it.</strong></a></p>
<p>We can very well have multiple catch blocks to handle specific exceptions and process them in specific ways, but in such a case such as the above the order of catch blocks holds lot of importance in the way the catch blocks will be functioning.</p>
<p>Care needs to be taken to see that the most specific catch blocks should be on top of the generic exception catch blocks. inshort the derived exception class catch should be on top of the parent exception class.<br />
Please Note: Exception is the parent of all the other exception classes, hence the catch block for exception should be the last</p>
<p>Before we move on to the last part of exception handling need to mention the last catch block which will take care of any exception</p>
<blockquote><p>try<br />
{<br />
// code<br />
}<br />
Catch<br />
{<br />
}</p></blockquote>
<p>Why did .NET give this class? when we already have Exception which is the parent class for all exceptions?? Well the answer is simple Exception class is the parent class for all the exceptions that are thrown through managed code or rather .NET code. what about the code which might throw exception ie not written in .NET maybe a COM component, C++, code ? In such a case we can use the above catch block.This block however due to lack of the exception class/object will not provide us with any information on the exception.Its only useful for making sure no exceptions get through.</p>
<p><a rel="nofollow" href="http://shaunpan.blogspot.com/2008/10/exception-handling-net-try-catch.html" class="wp-caption"  target="_blank"><strong>Finally Block</strong></a></p>
<p>The last part of try catch is the finally. It should be like a inseparable trio try-catch-finally block.<br />
As we have seen till now incase there is any error the code execution halts at the error code statement and the execution gets thrown into the catch block.</p>
<p>Now incase we had opened a Database connection / File / etc and inbetween the processing of the connection the exception occurs the execution will be thrown to the exception block and in turn the code for closing of the statements wont be executed and the connections will remain open.</p>
<p>To take care of such situations we have a Finally block and as the name suggets this block is executed finally  ie after all the above code in try or catch block gets executed.</p>
<p>The finally block is executed:</p>
<ul>
<li>Incase the code gets through the try block without any errors</li>
<li>Incase the code falls through the Catch block because of some exceptions.</li>
<li>Incase of any flow followed by the code.So the best bet is to put such code in finally block which has to be executed irrespective of the flow of code.<br />
<blockquote>
<pre>try</pre>
<p>{</p>
<p>1) Open Database Connection<br />
2) Retrieve Records<br />
3) Process data                                  &lt;&lt;&#8212;&#8212; Exception gets thrown at this point.<br />
4) Update records back to DataBase<br />
5) Close Database Connection</p>
<p>}<br />
Catch(SQLException Ex)<br />
{</p>
<p>Logger.WriteLog(&#8221;Exception: Method: ProcessData: Parameters: A = 4, b= &#8220;ABC&#8221;);<br />
Throw new Exception(&#8221;Error occured in processing data MethodXYZ with parameters a = 4, b =&#8221;ABC&#8221;, ex);<br />
}<br />
Finally<br />
{<br />
If (Connection is Open)<br />
{<br />
Close Connection<br />
}<br />
}</p></blockquote>
<p>In the above scenario we have opened a connection in Point # 1 and while processing data i.e Point # 3 the exception gets thrown.In such a case the other statement below ie Point # 4 &amp; #5 will never get executed as the control will be thrown to the catch block and then out of the method. This will lead to open connection.To take care of such situations instead of writing the close connection code in the Try block we should write the same in the Finally block as this block will get executed irrespective of whther there is an exception or not.</li>
</ul>
<pre><span><span><span style="font-size:x-small"><span>   </span></span></span></span></pre>
<p>Copyright © <a href="http://shaunakpandit.blog.co.in/" class="wp-caption"  target="_blank"> Shounak Pandit</a><del datetime="00"></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/10/11/exception-handling-net-try-catch-finally-working-shaunak-pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming outlook 2003 in C# using outlook in C# to send mails</title>
		<link>http://shaunakpandit.blog.co.in/2008/10/05/programming-outlook-2003-in-c-using-outlook-in-c-to-send-mails-shounak-pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/10/05/programming-outlook-2003-in-c-using-outlook-in-c-to-send-mails-shounak-pandit/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 17:21:42 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[outlook library]]></category>

		<category><![CDATA[primary interop assemblies]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=125</guid>
		<description><![CDATA[



A good resource to programming outlook 2003 using c# or using the Primary interop assemblies for Microsoft outlook 2003 in C#
MSDN Article
please note its better to use the primary interop asemblies than directly referencing the COM outlook library
Copyright ©  Shounak Pandit





]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<div class="entry">
<div class="snap_preview">
<p>A good resource to programming outlook 2003 using c# or using the Primary interop assemblies for Microsoft outlook 2003 in C#</p>
<p><a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/aa289167.aspx"  target="_blank">MSDN Article</a></p>
<p>please note its better to use the primary interop asemblies than directly referencing the COM outlook library</p>
<p>Copyright © <a class="wp-caption" href="ShaunPan@blogspot.com" target="_blank"> Shounak Pandit</a></p>
</div>
</div>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/10/05/programming-outlook-2003-in-c-using-outlook-in-c-to-send-mails-shounak-pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Deja vu Avec Nant Continous Integration</title>
		<link>http://shaunakpandit.blog.co.in/2008/10/02/deja-vu-avec-nant-continous-integration-shaunak-pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/10/02/deja-vu-avec-nant-continous-integration-shaunak-pandit/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 06:59:59 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Build integrators]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[automated build process]]></category>

		<category><![CDATA[Build tool]]></category>

		<category><![CDATA[ccnet]]></category>

		<category><![CDATA[Continous Integration]]></category>

		<category><![CDATA[Cruisecontrol.NET]]></category>

		<category><![CDATA[Nant]]></category>

		<category><![CDATA[setting up continous integration]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=124</guid>
		<description><![CDATA[

Got lucky to try my hand at Continous integration once again.. I remember it has been like more than 5 years now that i had used Nant and CCnet for Continous Integration.
It was fun and challenging to use with the then rustic error messages thrown by both.also configuring the same was also a big pain..
Had [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Got lucky to try my hand at Continous integration once again.. I remember it has been like more than 5 years now that i had used <a rel="nofollow" href="http://nant.sourceforge.net"  target="_blank">Nant </a>and <a rel="nofollow" href="http://ccnet.thoughtworks.com"  target="_blank">CCnet </a>for Continous Integration.</p>
<p>It was fun and challenging to use with the then rustic error messages thrown by both.also configuring the same was also a big pain..<br />
Had asked a developer to get it setup for one of the teams projects as i was aware of the advantages of continous integration. but the developer wasn&#8217;t able to get it up and running so finally had to get my hands dirty in CI.</p>
<p>Was surprised to see that even now almost after 4-5 years there is no guide/how to on setting it up and using it completely. even now ppl have to go through the site and exmaples which arent in reality what we look for..</p>
<p>Anyways enuf of cribbing &#8230;. ill put up a howto/guide on setting it up soon ,it wont be very soon as am quite tied up with different project releases and process implementation stuff.. but hopefully it should be out by mid Oct !!<br />
Copyright © <a href="http://shaunakpandit.blog.co.in/" class="wp-caption"  target="_blank"> Shounak Pandit</a></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/10/02/deja-vu-avec-nant-continous-integration-shaunak-pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: ShortCuts for playing with blocks regions</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/28/visual-studio-ide-tips-amp-tricks-shortcuts-for-playing-with-blocks-regions-shounak-pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/28/visual-studio-ide-tips-amp-tricks-shortcuts-for-playing-with-blocks-regions-shounak-pandit/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 02:42:12 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=123</guid>
		<description><![CDATA[

How many times we get fed up of all the cluttered code? Best thing to do is put regions and collapse the regions to free up some space&#8230;

Fold/Unfold the current code block - Ctrl+M, Ctrl+M
Unfold all - Ctrl+M, Ctrl+L
Stop outlining - Ctrl+M, Ctrl+P
Fold all - Ctrl+M, Ctrl+O

Copyright ©  Shounak Pandit



]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>How many times we get fed up of all the cluttered code? Best thing to do is put regions and collapse the regions to free up some space&#8230;</p>
<ul>
<li>Fold/Unfold the current code block - <code>Ctrl+M</code>, <code>Ctrl+M</code></li>
<li>Unfold all - <code>Ctrl+M</code>, <code>Ctrl+L</code></li>
<li>Stop outlining - <code>Ctrl+M</code>, <code>Ctrl+P</code></li>
<li>Fold all - <code>Ctrl+M</code>, <code>Ctrl+O</code></li>
</ul>
<p>Copyright © <a href="http://shaunakpandit.blog.co.in/" class="wp-caption"  target="_blank"> Shounak Pandit</a></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/28/visual-studio-ide-tips-amp-tricks-shortcuts-for-playing-with-blocks-regions-shounak-pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Funny !! Marc Faber&#8217;s comment on US Economy!!</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/23/funny-marc-fabers-comment-on-us-economy-shaunak-pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/23/funny-marc-fabers-comment-on-us-economy-shaunak-pandit/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 17:18:29 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Marc Faber]]></category>

		<category><![CDATA[US Economy]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=122</guid>
		<description><![CDATA[

Came across this comment from Marc Faber has gone back to the basics with his comment !!!
The federal government is sending each of us a $600 rebate.
If we spend that money at Wal-Mart, the money goes to China.
If we spend it on gasoline it goes to the Arabs.
If we buy a computer it will go [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Came across this comment from Marc Faber has gone back to the basics with his comment !!!</p>
<blockquote><p><span style="color: #0000ff"><strong>The federal government is sending each of us a $600 rebate.</strong></span></p>
<p><span style="color: #0000ff"><strong>If we spend that money at Wal-Mart, the money goes to China.<br />
If we spend it on gasoline it goes to the Arabs.<br />
If we buy a computer it will go to India.<br />
If we purchase fruit and vegetables it will go to Mexico, Honduras and Guatemala.<br />
If we purchase a good car it will go to Germany.<br />
If we purchase useless <acronym title="crap">****</acronym> it will go to Taiwan and none of it will help the American economy.</strong></span></p>
<p><span style="color: #0000ff"><strong>The only way to keep that money here at home is to spend it on prostitutes and beer, since these are the only products still produced in US.  I’ve been doing my part.</strong></span></p></blockquote>
<p>haha the funniest i think :))</p>
<p>to know more about Marc Faber visit his site: <a rel="nofollow" href="http://www.gloomboomdoom.com" class="wp-caption"  target="_blank">http://www.gloomboomdoom.com</a></p>
<p>Copyright © <a rel="nofollow" href="http://shaunakpandit.wordpress.com/" class="wp-caption"  target="_blank"> Shounak Pandit</a></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/23/funny-marc-fabers-comment-on-us-economy-shaunak-pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Best frequency for code review&#8230; how to code review</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/20/best-frequency-for-code-review-how-to-code-review-shaunak_pandit/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/20/best-frequency-for-code-review-how-to-code-review-shaunak_pandit/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 18:41:47 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[best frequency code review]]></category>

		<category><![CDATA[code review]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=121</guid>
		<description><![CDATA[

Had an interesting discussion with a peer while coming back home..and it got me thinking..  he was complaining about the quality of code by his developers and was inquiring what approach I follow in my projects.
To tell you the truth I don&#8217;t follow a specific time frame or frequency for performing code review.
Just to give [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Had an interesting discussion with a peer while coming back home..and it got me thinking..  he was complaining about the quality of code by his developers and was inquiring what approach I follow in my projects.</p>
<p>To tell you the truth I don&#8217;t follow a specific time frame or frequency for performing code review.</p>
<p>Just to give you some food for thought</p>
<blockquote><p>The frequency of code review should be directly proportional to the number of developers working on the project.</p></blockquote>
<p>More the number of developers on a project more should be the code review frequency.just to give you a rough idea How many lines of code do we write in an hour? or in an day? we write lots of lines of code&#8230; multiplied by the number of developers is the lines of code you will have to review !!!!!!!</p>
<p>He was arguing about the time a PL/TL gets to do code reviews. well yes indeed he was right in his argument, we as PL&#8217;s definitely do not get much time but who says we have to do code reviews every time till the release of the project?</p>
<p>The way the developers will write code in a project depends directly on the way they write code in the first couple of weeks of the start of the development phase.If you get them into the habbit of coding it right from the start of the project i guess we wont have to monitor much.</p>
<p>Of course that depends on the quality of the resource <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The way i do code reviews is through automated tools &amp; mentoring of good developers to perform code reviews on the team mates.</p>
<p>Naturally PL&#8217;s dont get much time to get deeper into the code review process but yes all they have to do is</p>
<ul>
<li>Identify the good resource who has a good style + approach at coding and mentor him/her to get into your shoes of performing code reviews.</li>
<li>Dont completely rely on that resource you do your surprise random code reviews.</li>
<li>Encourage peer reviews amongst the team. This will in turn ensure small coding issues get addressed at your subordinate level.</li>
<li>Utilize automated tools for code reviews there are loads of them in the market</li>
<li>There also are some preventive code review tools which get integrated into the VS IDE as a plugin and correct you with regards to naming convention/ style to a certain extent while you are writing code.Makes sense doesn&#8217;t it? to be told what not to do while you are doing it rather than being told after you have already done it and moved on to the next piece of code.</li>
<li>Generate a check list for coding standards.</li>
</ul>
<p><a href="http://shaunakpandit.blog.co.in" class="alignleft"  target="_blank">Copyright ©  Shounak Pandit</a></p>
<p>These are my views, my thoughts need not necassarily be the same as yours….. <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/20/best-frequency-for-code-review-how-to-code-review-shaunak_pandit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Effective Code review or How to execute a Succesful code review</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/17/effective-code-review-or-how-to-execute-a-succesful-code-review/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/17/effective-code-review-or-how-to-execute-a-succesful-code-review/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 18:19:06 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[best practices code review]]></category>

		<category><![CDATA[Code reviews]]></category>

		<category><![CDATA[Effective code review]]></category>

		<category><![CDATA[How to code review]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=120</guid>
		<description><![CDATA[

Code Review&#8230;. The dreaded words for a newbie ears ..or in most of the cases even for the experienced developers!!!!
How to code review ? Over the years of being the code reviewer or me being the reviewee have noticed a few things which i feel are worth mentioning for an effective and pain free code [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Code Review&#8230;. The dreaded words for a newbie ears ..or in most of the cases even for the experienced developers!!!!</p>
<p>How to code review ? Over the years of being the code reviewer or me being the reviewee have noticed a few things which i feel are worth mentioning for an effective and pain free code review to happen.</p>
<p>What exactly is a code review i guess everybody knows that , ill try and point out some of the things which should be taken care of for a productive and pain free code review to happen.</p>
<ul>
<li><strong>Objective:</strong> Make sure the objective behind the code review is well known to the developers involved: Developers need to understand that the code is being reviewed and not the developers ability to code.</li>
</ul>
<ul>
<li> <strong>Coding Standard: </strong>Make sure you have a predefined set of coding standards circulated with the team before coding. Developers wont have any clue as to what you as a reviewer feel is the right coding standard unless they know what needs to be followed before they start coding.</li>
</ul>
<ul>
<li><strong>Dont Accuse:</strong>Code review shouldn&#8217;t be used to accuse the coder, but to point out the improvement areas in the code.</li>
</ul>
<ul>
<li><strong>Ask / Discuss: </strong>Ask reasons for deviation that have happened than assuming: Its better to let the developers explain the reason for deviation rather than assuming.Lets face it many time there are some theoretically correct statements which cant be possible practically.Hence ask reasons for deviation, <span style="text-decoration: underline">understand the developers thought process</span>.</li>
</ul>
<ul>
<li><strong>Listen:</strong> Remember the coding approach you use isn&#8217;t like the ten commandments.Just because you feel reaching point C is better by going via point A not necessarily everybody will think the same.<span style="text-decoration: underline">Let the developer explain</span> why he felt going via point X was better as per him.</li>
</ul>
<ul>
<li><strong>Understand:</strong> Remember the code review is about the coding style not about you.: Dont get offended if there are any improvement areas in your coding.Keep one thing in mind the person reviewing your code has also gone through the same phase as you currently.and till the time one understands the improvement areas we wont be able to improve and do coding expected by a seasoned developer.</li>
</ul>
<ul>
<li><strong>Contribute:</strong> The coding standards wont contain all the development situations we face under the sun Hence contribution from the developer is absolutely necessary.Just because the person reviewing your code is a TL or PL doesn&#8217;t mean he is right all the time.<span style="text-decoration: underline">Express your view, understand the reasons</span><strong> </strong>why there are improvement areas.Keep one thing in mind we do those things best in which we believe in!!! hence if you do not understand why we are doing certain thing in a certain expected way you will never do it correctly so discuss and understand.</li>
</ul>
<ul>
<li><strong>Appreciate:</strong> Code review isn&#8217;t just about finding improvement areas. Utilize it also to appreciate someones coding style/Approach.</li>
</ul>
<ul> Lets face it whether we like it or not we have to go in for code reviews some because their leaders make it mandatory while some because they understand the importance of code review.As long as code review happens in the right manner and for the right reasons it is always healthy for the complete team.Have seen or rather experienced developers who would argue over coding standard violation with pointless reasoning.reasoning that would be treated as childish excuses.Listen and explain to them anyways try and make them understand.Ofcourse in many cases you as a TL/PL need to put your foot down or do a little booting to make the developer sunderstand that crappy excuses wont be tolerated.</p>
<p>Also one good thing to do beyond the coding standards document of what to do is to create a coding standard checklist for developers to check against as when they are coding.</p>
<p>Copyright ©  Shounak Pandit</p>
<p>These are my views, my thoughts need not necassarily be the same as yours&#8230;..</ul>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/17/effective-code-review-or-how-to-execute-a-succesful-code-review/feed/</wfw:commentRss>
		</item>
		<item>
		<title>To Chrome or not to Chrome.. Google chrome features</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/14/to-chrome-or-not-to-chrome-google-chrome-features/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/14/to-chrome-or-not-to-chrome-google-chrome-features/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 08:25:26 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[chrome features]]></category>

		<category><![CDATA[google chrome crash]]></category>

		<category><![CDATA[Google Chrome Features]]></category>

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

Google has done it again&#8230; a product built on the problems of the browser users. 
To get a good idea about the features of the browser visit the features video site. The browser isn&#8217;t a complex browser Google  has stuck to its simplicity but effectiveness moto once again and delivered.
The Features list includes:

One box for everything
New [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Google has done it again&#8230; a product built on the problems of the browser users. </p>
<p>To get a good idea about the features of the browser visit the <a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">features video site</a>. The browser isn&#8217;t a complex browser Google  has stuck to its simplicity but effectiveness moto once again and delivered.</p>
<blockquote><p>The Features list includes:</p>
<ul>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">One box for everything</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">New Tab page</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Application shortcuts</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Dynamic tabs</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Crash control</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Incognito mode</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Safe browsing</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Instant bookmarks</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Importing settings</a></li>
<li><a rel="nofollow" href="http://www.google.com/chrome/intl/en/features.html"  target="_blank">Simpler downloads</a></li>
</ul>
</blockquote>
<div>One of the best feature from the list above is the <strong><a rel="nofollow" href="http://www.google.com/googlebooks/chrome/small_04.html"  target="_blank">&lt;Crash Control&gt;</a></strong>. This was the most awaited should have been implemented feature to be implemented in a tabbed browser.</div>
<div>How many times has one gone through situation where one had a hell lot of tabs/sites open in a tabbed browser and one of the site crashed and took the complete browser along with all the other sites down with it. kinda frustrating isnt it? and if you are like me you will have too many windows to multi task..</div>
<div>Google promises it has taken care of this by creating seperate sandboxes for each tabs. people developing code in the .NET environment will know what this is and how useful and a life saver it is. inshort each tab has its own seperate process to handle and service the requests.</div>
<div>Hence if one site/tab crashes the process related to that tab only crashes and not the complete browser process.</div>
<p><strong>Heil Google!!!!</strong></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/taskmanager.jpg" ><img class="size-thumbnail wp-image-136 aligncenter" src="http://shaunakpandit.files.wordpress.com/2008/09/taskmanager.jpg?w=128" alt="" width="128" height="82" /></a></p>
<p>Another great feature implemented is the way the new tab opens.. it will open a tab with the most visited sites icons in it. All one has to do is click on the one of th emost visited sites. else there is also links on  the right hand side in the new tab to click on the new bookmarks added.</p>
<div>A pretty good and well though of feature..usually we visit some sites again and again like our mails, homepage etc which is easily accessible in front of us once we open a new tab.</div>
<div>One more worth mentioning but not on the features list is the <strong><a rel="nofollow" href="http://www.google.com/googlebooks/chrome/small_08.html"  target="_blank">&lt;</a></strong><strong><a rel="nofollow" href="http://www.google.com/googlebooks/chrome/small_08.html"  target="_blank">Chromes very own task manager</a></strong><a rel="nofollow" href="http://www.google.com/googlebooks/chrome/small_08.html"  target="_blank">&gt;</a></div>
<div>It displays the CPU usage / Memory per tab and gives you the power to get rid / kill a rogue tab taking up memory /cpu time and slowing your machine.</div>
<div>To understand the tech behind Google Chrome go through the site explaining the <a rel="nofollow" href="http://www.google.com/googlebooks/chrome/index.html"  target="_blank">technical details behind Google Chrome</a> Its worth a Read.</div>
<div></div>
<p></p>
<div>© Shounak Pandit</div>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/14/to-chrome-or-not-to-chrome-google-chrome-features/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Chrome the new hottie in the market ..</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/14/google-chrome-the-new-hottie-in-the-market/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/14/google-chrome-the-new-hottie-in-the-market/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 07:35:39 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[browsers]]></category>

		<category><![CDATA[Chrome criticism]]></category>

		<category><![CDATA[chrome feedback]]></category>

		<category><![CDATA[chrome issues]]></category>

		<category><![CDATA[chrome problems]]></category>

		<category><![CDATA[Google Chrome]]></category>

		<category><![CDATA[google chrome criticism]]></category>

		<category><![CDATA[tab browser]]></category>

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

Google chrome just another browser or the mother of all browsers?
Google has done it again..another product/service in the market that has caught all the attention&#8230; yeah there are some negative feedbacks especially by the German media on the same too but hey whats success without some criticism??
The argument they have setup is pretty much the [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Google chrome just another browser or the mother of all browsers?</p>
<p>Google has done it again..another product/service in the market that has caught all the attention&#8230; yeah there are some <a rel="nofollow" href="http://blogoscoped.com/archive/2008-09-07-n33.html"  target="_blank">negative feedbacks</a> especially by the German media on the same too but hey whats success without some criticism??</p>
<p>The argument they have setup is pretty much the old stuff&#8230; personal data going to google with respect to the auto suggest feature explained more in detail <a rel="nofollow" href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9114369&amp;intsrc=hm_list"  target="_blank">here</a></p>
<p> Google did bend to the criticism and declared they will anonymise the data within 24 hrs of collecting it..but the speculations will always be there..don&#8217;t understand the logic behind it&#8230; guys its a open source just dig into the <a rel="nofollow" href="http://code.google.com/p/chromium/"  target="_blank">source</a> and satisfy your speculative minds ( if you are upto it <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )&#8230;. rather than just barking into the wind&#8230;</p>
<p>yeah its a bit risky giving a Beta to inexperience non techie users its like giving a child a Bazooka !! but am sure the Beta isn&#8217;t a actual Beta in the scientific terms its definitely a well tested and tried version of the product.we can trust google on this..</p>
<p> </p>
<p>© Shounak Pandit</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/14/google-chrome-the-new-hottie-in-the-market/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Code Review / Peer review…..</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review%e2%80%a6/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review%e2%80%a6/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 15:38:08 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Coding standards]]></category>

		<category><![CDATA[Good coding style]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/?p=82</guid>
		<description><![CDATA[

One wonders ….Why in the name of God would one want to spend (waste as some people say) time on performing a code review on any piece of code which we/peers have written and seems to be working properly and providing the functionality
I remember back then when i was an intern and i was assigned [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>One wonders ….Why in the name of God would one want to spend (waste as some people say) time on performing a code review on any piece of code which we/peers have written and seems to be working properly and providing the functionality</p>
<p>I remember back then when i was an intern and i was assigned to a project in which my PM was a guy working in our US branch…people having worked with US bosses might be knowing thr are 2 types of techies our there… one who have less knowledge than you and the other lot who has so much knowledge than you that they make you feel like you are learning the alphabets of development while they are shooting out complex phrases after phrases of sentences….</p>
<p>man how i hated that guy i can still recall his words “Shounak, Dont even show me the functionality i dont care about it, first make sure you have it as per the coding standards” and i used to think what kind of a weirdo have i got as my boss ..he doesn’t even want to see if the requirement has been met but cares about some stupid code review…..and i used to laugh at his code review obsession…</p>
<p>but over the years as i grew into a techie…into what they call a seasoned developer ..i realised the importance of code review</p>
<blockquote><p>Code review isnt a tool to find mistakes in others code…its a tool by which one ensures the code is going to meet the standards expected of a seasoned developer.</p></blockquote>
<p style="text-align: left">There are various technical ways of achieving our requirements…or rather let me put it this way there are abundant ways of <acronym title="screwing">********</acronym> up the way you meet your requirement.and there are some ways in which you meet the requirement in one of the optimum ways…and code review is a tool that helps us walk on the optimum path or close to the optimum path…</p>
<p style="text-align: left">
<p style="text-align: left">for an example check my post on string builder usage vs string concat… at <a rel="nofollow" href="http://shaunakpandit.wordpress.com/2008/09/10/how-stringbuilder-string-concatenation-affects-performance-string-builder-vs-string-concatenation" >String Builder Vs String concat</a>/</p>
<p style="text-align: left">Code reviews are important for a developer to understand how to keep improving his coding style ..</p>
<p style="text-align: left">there are various good tools used for having automated code checking one that i have used extensively in my development days is FxCop and one more that i can’t recall the name of…these were tools which would use the assembly n metadata as source and parse the assembly for any coding style /optimization errors</p>
<p style="text-align: left">will try and write up about one of them soon</p>
<p style="text-align: left">
<p style="text-align: left">Cheers</p>
<p style="text-align: left">© Shounak Pandit</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review%e2%80%a6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Code Review / Peer review&#8230;..</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 14:53:06 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

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

One wonders &#8230;.Why in the name of God would one want to spend (waste as some people say) time on performing a code review on any piece of code which we/peers have written and seems to be working properly and providing the functionality
I remember back then when i was an intern and i was assigned [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>One wonders &#8230;.Why in the name of God would one want to spend (waste as some people say) time on performing a code review on any piece of code which we/peers have written and seems to be working properly and providing the functionality</p>
<p>I remember back then when i was an intern and i was assigned to a project in which my PM was a guy working in our US branch&#8230;people having worked with US bosses might be knowing thr are 2 types of techies our there&#8230; one who have less knowledge than you and the other lot who has so much knowledge than you that they make you feel like you are learning the alphabets of development while they are shooting out complex phrases after phrases of sentences&#8230;.</p>
<p>man how i hated that guy i can still recall his words &#8220;Shounak, Dont even show me the functionality i dont care about it, first make sure you have it as per the coding standards&#8221; and i used to think what kind of a weirdo have i got as my boss ..he doesn&#8217;t even want to see if the requirement has been met but cares about some stupid code review&#8230;..and i used to laugh at his code review obsession&#8230;</p>
<p>but over the years as i grew into a techie&#8230;into what they call a seasoned developer ..i realised the importance of code review</p>
<blockquote><p>Code review isnt a tool to find mistakes in others code&#8230;its a tool by which one ensures the code is going to meet the standards expected of a seasoned developer.</p></blockquote>
<p style="text-align:left">There are various technical ways of achieving our requirements&#8230;or rather let me put it this way there are abundant ways of <acronym title="screwing">********</acronym> up the way you meet your requirement.and there are some ways in which you meet the requirement in one of the optimum ways&#8230;and code review is a tool that helps us walk on the optimum path or close to the optimum path&#8230;</p>
<p style="text-align:left">
<p style="text-align:left">for an example check my post on string builder usage vs string concat&#8230; at <a rel="nofollow" href="http://shaunakpandit.wordpress.com/2008/09/10/how-stringbuilder-string-concatenation-affects-performance-string-builder-vs-string-concatenation" >String Builder Vs String concat</a>/</p>
<p style="text-align:left">Code reviews are important for a developer to understand how to keep improving his coding style ..</p>
<p style="text-align:left">there are various good tools used for having automated code checking one that i have used extensively in my development days is FxCop and one more that i can&#8217;t recall the name of&#8230;these were tools which would use the assembly n metadata as source and parse the assembly for any coding style /optimization errors</p>
<p style="text-align:left">will try and write up about one of them soon</p>
<p style="text-align:left">
<p style="text-align:left">Cheers</p>
<p style="text-align:left">© Shounak Pandit</p>
<p style="text-align:left">
<p style="text-align:left">

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/11/code-review-peer-review/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howdy Blogosphere!!!!</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/howdy-blogosphere/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/howdy-blogosphere/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 19:07:14 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[blog deactivated]]></category>

		<category><![CDATA[Shounak Pandit]]></category>

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

Have moved to this blog as my previous blog got deactivated  due to lack of blogging !!!! have reposted all my posts from the other blog into here&#8230; and hope to blog quite frequently&#8230;.



]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Have moved to this blog as my previous blog got deactivated <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> due to lack of blogging !!!! have reposted all my posts from the other blog into here&#8230; and hope to blog quite frequently&#8230;.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/howdy-blogosphere/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It is an error to use a section registered as allowDefinition=&#8217;MachineToApplication&#8217; beyond application level This error can be caused by a virtual directory not being configured as an application in IIS</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/it-is-an-error-to-use-a-section-registered-as-allowdefinitionmachinetoapplication-beyond-application-level-this-error-can-be-caused-by-a-virtual-directory-not-being-configured-as-an-application-i/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/it-is-an-error-to-use-a-section-registered-as-allowdefinitionmachinetoapplication-beyond-application-level-this-error-can-be-caused-by-a-virtual-directory-not-being-configured-as-an-application-i/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 19:04:24 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[It is an error to use a section registered as allowDefi]]></category>

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

Got the following error some time back when i tried running the project,

since it said that it wasnt configured to be dubugged i ran it with the good old &#8220;CTRL + F5&#8243; option and got the following error message in IE

my first guess after reading the error (make that reading half the error) was that [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Got the following error some time back when i tried running the project,</p>
<p><img src="http://images5.theimagehosting.com/MachineToApplication_error1.GIF" alt="" /></p>
<p>since it said that it wasnt configured to be dubugged i ran it with the good old &#8220;CTRL + F5&#8243; option and got the following error message in IE</p>
<p><img src="http://images5.theimagehosting.com/MachineToApplication.GIF" alt="" /></p>
<p>my first guess after reading the error (make that reading <strong>half </strong>the error) was that somehow there was some configuration problem regardign who overrides whom in the web.config and the machine.config.</p>
<p>but after reading the Total error message understood that the error wasnt in the Web.config it was in the IIS virtual Directory settings that I had ,somehow it had changed.</p>
<p>Anyways, here is how to solve the error :-</p>
<p>Just open IIS and goto the properties for the Virtual directory and click on this button</p>
<p><img src="http://images5.theimagehosting.com/MachineToApplication_solution.GIF" alt="" /></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/it-is-an-error-to-use-a-section-registered-as-allowdefinitionmachinetoapplication-beyond-application-level-this-error-can-be-caused-by-a-virtual-directory-not-being-configured-as-an-application-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to have Multiple Instances of Project Server 2003 on 1 Machine</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/how-to-have-multiple-instances-of-project-server-2003-on-1-machine/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/how-to-have-multiple-instances-of-project-server-2003-on-1-machine/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:44:52 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[Misc]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[How to have Multiple Instances of Project Server 2003 o]]></category>

		<category><![CDATA[Multiple instance]]></category>

		<category><![CDATA[Projectserver 2003]]></category>

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

How to have Multiple Instances of Project Server 2003 on 1 Machine
How to have Multi[ple Instances of Project server on 1 Machine
I am using the following as examples throughout this article this will describe the steps needed to follow using EditSite tool by Microsoft:
SQL Server           [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<h2>How to have Multiple Instances of Project Server 2003 on 1 Machine</h2>
<p><span style="font-family: Tahoma;font-size: x-small">How to have Multi[ple Instances of Project server on 1 Machine</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">I am using the following as examples throughout<span> </span>this article this will describe the steps needed to follow using </span><a rel="nofollow" href="http://go.microsoft.com/fwlink/?LinkId=20891" ><span style="font-family: Tahoma;font-size: x-small">EditSite tool </span></a><span style="font-family: Tahoma;font-size: x-small">by Microsoft:</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">SQL Server              : Shounakp (my machine)</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Database<span> Name </span>: ProjServer </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Site name<span> </span>: ProjServer</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Edit site tool            : </span><a rel="nofollow" href="http://go.microsoft.com/fwlink/?LinkId=20891" ><span style="font-family: Tahoma;font-size: x-small">http://go.microsoft.com/fwlink/?LinkId=20891 </span></a></p>
<ol>
<li>
<ol>
<li><span style="font-family: Tahoma;font-size: x-small">Copy the DATABASE directory – inside the support directory from your SQL 2002/ MS Project server installation CD, to the local drive on your SQL server (Server containing the ProjectServer DB). </span></li>
<li><span style="font-family: Tahoma;font-size: x-small">Create the new DB ( check fig below ) that will host your new Project Server instance in your SQL server. We need the &lt;SETUPDB.CMD&gt; file.<br />
<span>N</span>OTE: We cannot name the new instance DB as ProjectServer since the already existing instance of project server creates a DB named ProjectServer for use. </span></li>
</ol>
</li>
</ol>
<p><span style="font-family: Tahoma;font-size: x-small"> </span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_create_new_database.gif"  target="_blank"><img class="aligncenter size-medium wp-image-216" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_create_new_database.gif" alt="" width="614" height="461" /></a></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 3.   On your SQL server, go to command prompt and execute the following command from the Database directory. </span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_sql_script.gif"  target="_blank"><img class="aligncenter size-medium wp-image-218" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_sql_script.gif?w=300" alt="" width="300" height="124" /></a></p>
<p><span style="font-family: Tahoma"><span style="font-size: x-small"> 4. In this case, &lt;ProjServer&gt; is my SQL Server and using the &lt;SA&gt; account with password &lt; </span><a href="mailto:pa$$@word1"><span style="font-size: x-small">pa$$@word1</span></a><span style="font-size: x-small"> &gt;. The command will look like this : E.g </span></span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_sql_script_eg.gif"  target="_blank"><img class="aligncenter size-medium wp-image-213" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_sql_script_eg.gif?w=300" alt="" width="300" height="124" /></a></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 5. Hit ‘Enter”</span></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 6. The processing will take up few minutes let it finish properly (check the following screen)</span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_sql_script_processing_start.gif"  target="_blank"><img class="aligncenter size-medium wp-image-212" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_sql_script_processing_start.gif?w=269" alt="" width="269" height="300" /></a></p>
<p><span style="font-family: Tahoma;font-size: x-small"> </span></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 7. The screen will look like the following screen shot, you will have to press any key to continue.</span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_sql_script_processing_done.gif"  target="_blank"><img class="size-medium wp-image-210 aligncenter" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_sql_script_processing_done.gif?w=300" alt="" width="300" height="266" /></a></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 8. We need to grant permissions to the MSProject Roles on our new instance Database. Follow the steps </span></p>
<ul>
<li>
<ul>
<li>
<ul>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Open SQL Server Enterprise Manager </span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Click &lt;Security&gt;</span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Click &lt;Logins&gt; </span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Double-click on MSProjectServerUser and grant permission to access the new Dataabse instance &lt;ProjServer&gt; </span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Check &lt;Public&gt; and &lt;MSProjectServerRole&gt; in the &lt;Database Roles&gt; in ProjServer DB (the name of your new DB is) Tab</span><span style="font-size: 10pt;font-family: Verdana">.</span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Double-click on MSProjectUser and grant permission to access the new &lt;ProjServer&gt; Db </span></span></li>
<li><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana">Check &lt;Public&gt; and &lt;MSProjectRole&gt; in the Dabase Roles in ProjServer (the name of your new DB is) Tab</span></span></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana"> See the following snap shot :- </span></span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_db_permissions.gif"  target="_blank"><img class="size-medium wp-image-209 aligncenter" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_db_permissions.gif?w=300" alt="" width="300" height="225" /></a></p>
<p><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana"> </span></span></p>
<p><span style="font-family: Tahoma;font-size: x-small"> 9.   Install the </span><a rel="nofollow" href="http://go.microsoft.com/fwlink/?LinkId=20891" ><span style="font-family: Tahoma;font-size: x-small">EditSite tool</span></a><span style="font-family: Tahoma;font-size: x-small"> </span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 10. Browse to C:\Program Files\Microsoft Office Project Server 2003 Resource Kit\Toolbox\EditSite and open the tool . </span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 11. Click on “Add” in the Edit Site tool.A prompt will appear with focus on &lt;Site Information&gt; Tab (see folowing screen shot).</span></span></p>
<p><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana"> 12. Enter the &lt;SiteName&gt; and In &lt;Session Manager&gt; enter the name of your SQL server Machine managing your Session<br />
</span><span style="font-size: 10pt;font-family: Verdana">in my case I used &lt;shounakp&gt;. </span><span style="font-size: 10pt;font-family: Verdana">Select “Default Web Site”, and any of the application pools. I selected MSPS2003AppPool. </span></span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_edit_site_add_site.gif"  target="_blank"><img class="size-medium wp-image-207 aligncenter" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_edit_site_add_site.gif?w=300" alt="" width="300" height="224" /></a></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> </span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 13. Click on the Database Information tab and fill in the details. </span></span><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"><br />
</span></span></p>
<ul>
<li>
<ul>
<li><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma">Enter the name of your SQL server, the name of your new manually created DB (in my case I used ProjServer) </span></span></li>
<li><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma">Enter the SQL user that has the MSProjectServerRole in ITProjects DB (in my case I used MSProjectServerUser with password “password”) and its respective password. </span></span></li>
<li><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma">Do the above for the MSProjectRole Member (in my case I used MSProjectUser with password “password”.</span></span></li>
</ul>
</li>
</ul>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_edit_site_add_site_db_info.gif"  target="_blank"><img class="size-medium wp-image-204 aligncenter" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_edit_site_add_site_db_info.gif?w=300" alt="" width="300" height="231" /></a></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 14. Click on the &lt;Windows Sharepoint Services Information&gt;</span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> We need to use the same Sharepoint Services settings that we are already using for the 1st instance of Project Server<br />
Hence we can get the WSS Settings from the 1st instance of the ProjectServer.</span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> By following the path : Admin - &gt; Manage Windows Sharepoint Services  (See snapshot)</span></span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/mi_ps_wss_settings.gif"  target="_blank"><img class="aligncenter size-medium wp-image-219" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/mi_ps_wss_settings.gif?w=300" alt="" width="300" height="225" /></a></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 15. Click on Create of Edit Site tool You will get the message indicating that the new site was successfully created</span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 16. Open IE and go to your new PWA instance. In my case, I go to </span><a rel="nofollow" href="http://shounakp/ProjServer" ><span style="font-family: Tahoma">http://shounakp/ProjServer </span></a><span><span style="font-family: Tahoma"> </span></span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-family: Tahoma"> You will be given the following screen :-</span></span></span></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_project_server_logon11.gif"  target="_blank"><img class="size-medium wp-image-198 aligncenter" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_project_server_logon11.gif?w=300" alt="" width="300" height="217" /></a></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-family: Tahoma"> 17.  Enter User name: Administrator and DO NOT enter a password. Hit “Enter”<br />
</span></span></span><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-family: Tahoma"> Y</span><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma">ou will see your newly created Project Server Instance and this message will pop up giving you the opportunity to change the PWA<br />
Administrator’s password.</span></span></span></span></p>
<p><a rel="nofollow" href="http://images5.theimagehosting.com/PS_MI_Change_Password.1.GIF" ><br />
</a></p>
<p style="text-align:center"><a rel="nofollow" href="http://shaunakpandit.files.wordpress.com/2008/09/ps_mi_change_password1.gif"  target="_blank"><img class="size-medium wp-image-200 aligncenter" style="border:2px solid black" src="http://shaunakpandit.wordpress.com/files/2008/09/ps_mi_change_password1.gif?w=300" alt="" width="300" height="156" /></a></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma">Change and save the password </span></span></span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-size: 10pt;font-family: Verdana"><span style="font-family: Tahoma"> 18. <span style="font-size: 10pt;font-family: Verdana">Enjoy your newly created Project Server instance.</span></span></span></span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-family: Tahoma"> </span></span></span></p>
<p><span style="font-size: 10pt;font-family: Verdana"><span><span style="font-family: Tahoma">Cheers!!!!!</span></span></span></p>
<p>UPDATE: Reposting from my previous blog..</p>
<p>Copyright © <a rel="nofollow" href="http://shaunakpandit.wordpress.com" class="wp-caption"  target="_blank"> Shounak Pandit</a></p>
<p><span style="font-family: Tahoma"><span style="font-size: 10pt;font-family: Verdana"> </span><span style="font-size: 10pt;font-family: Verdana"> </span></span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/how-to-have-multiple-instances-of-project-server-2003-on-1-machine/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Crystal Report toolbar images not Displayed ASP.NET</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/crystal-report-toolbar-images-not-displayed-aspnet/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/crystal-report-toolbar-images-not-displayed-aspnet/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:39:47 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Crystal Reports]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[Crystal Report toolbar images not Displayed ASP.NET]]></category>

		<category><![CDATA[Crystal reports images display asp.net]]></category>

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

Reposting from old blog
One of my colleague faced a strange problem while using Crystal Reports 
He got his report published on the ASPX page but the images in the toolbar weren&#8217;t being displayed.
While trying to find out the problem for it I checked the ASPX page and noticed that the src path for the images on [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Reposting from old blog</p>
<p><span style="font-family: Tahoma;font-size: x-small">One of my colleague faced a strange problem while using Crystal Reports </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">He got his report published on the ASPX page but the <span style="color: #ffa500"><span style="text-decoration: underline">images in the toolbar weren&#8217;t being displayed</span></span>.<br />
While trying to find out the problem for it I checked the ASPX page and noticed that the src path for the images on the toolbar was from another <span style="color: #ffa500">virtual directory  <span style="color: #ffa500"><em>“crystalreportwebformviewer2”</em></span><span style="color: #000000"> </span></span>which to our surprise didnt exists on his machine at all.<br />
Well no idea whether that was due to inapropriate installation or what but the fact was we didnt have a directory to which<br />
</span><span style="font-family: Tahoma;font-size: x-small">t he images were being referenced from.</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Well anyways <span style="color: #006400">here&#8217;s the solution to the above problem</span></span><br />
<span style="font-family: Tahoma;font-size: x-small">When you plan to use the Crystal reports toolbar in your reports it will automatically<br />
refer to the images stored in your program files directory i.e </span></p>
<p><span style="font-family: Arial;color: #ffa500;font-size: x-small"><em>C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\Images</em> </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">this directory has all the images in appropriate sub directories inside but for .NET to refer to it at runtime there<br />
needs to be a virtual directory </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">in Our case the virtual directory being referenced was <strong><span style="text-decoration: underline"><span style="color: #ff0000">This might change according to the version of Crystal reports being used.</span></span></strong></span></p>
<p><span style="font-family: Tahoma;font-size: x-small">So all we had to do to get the Images on the toolbar was to </span></p>
<p><span style="color: #ffa500"><span style="font-family: Tahoma;font-size: x-small">1# Create a virtual directory   <em>crystalreportwebformviewer2</em><br />
2# M</span><span style="font-family: Tahoma;font-size: x-small">ap it to  <em>C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\Images </em></span></span></p>
<p><span style="font-family: Tahoma;font-size: x-small">After which the images on the toolbar were displayed without any other issue <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p>Shounak Pandit</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/crystal-report-toolbar-images-not-displayed-aspnet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How StringBuilder string concatenation affects performance , string builder vs string concatenation &#8220;+&#8221;</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/how-stringbuilder-string-concatenation-affects-performance-string-builder-vs-string-concatenation/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/how-stringbuilder-string-concatenation-affects-performance-string-builder-vs-string-concatenation/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:33:38 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[how string concatenation affects performance]]></category>

		<category><![CDATA[How stringbuilder improves performance]]></category>

		<category><![CDATA[How StringBuilder string concatenation affects performa]]></category>

		<category><![CDATA[string builder vs string concatenation "+"]]></category>

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

reposting from older blog
How String Concatenation  String Builder Append affects performance
Most of us have used String concatenation in our projects, Have we ever given a thought to what goes on behind while concatenating the strings? 
There is a major flaw in using string concatenation as against the String builders append concerning performance only.
Except for [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>reposting from older blog</p>
<p><span style="font-family: Tahoma;font-size: x-small">How String Concatenation  String Builder Append affects performance</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Most of us have used String concatenation in our projects, Have we ever given a thought to what goes on behind while concatenating the strings? </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">There is a major flaw in using string concatenation as against the String builders append concerning performance only.<br />
Except for performance and memory management both are same and give us the same desired output.</span></p>
<h2><span style="font-family: Tahoma;font-size: x-small">How they work</span></h2>
<p><span style="font-family: Tahoma;font-size: x-small">Lets take a look at how the things work when we concatenate strings</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">lets take a case where we are concatenating 2 strings and assigning the output to a 1<sup>st</sup> string</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">outputString  +=  secondString;</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">In the above case, each instance of the string is created and assigned hence </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">in total we will have <strong>3 instances </strong>of the strings!! Surprised?? well thats how strings concatenation works </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">It will create a new string outputString,with both old outputString and secondString</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">String objects in .net are immutable. Once the string has been created, the value can&#8217;t be changed. When you type<br />
outputString = outputString + secondString;<br />
you actually discard the old outputString and create a new string object containing the result of the concatenation. When repeated several times, you end up constructing many temporary string objects.</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">now just imagine the case where you have n number of strings you have to concatenate how many string objects will be created wont that be a waste of time ??? Creating a string object assigning it some value then again creating a string object and so on &#8230;..</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Imagine the impact on the performance of the application!!!!</span></p>
<p><strong><span style="font-family: Tahoma;font-size: x-small">Now lets see how String builder works</span></strong></p>
<p><span style="font-family: Tahoma;font-size: x-small">Using a string builder you will have </span></p>
<p><span> </span></p>
<p><span><span style="font-family: Tahoma"><span style="font-size: x-small"><span>System.Text.StringBuilder outputString = </span><span style="color: #0000ff">new</span><span> System.Text.StringBuilder();</span></span></span></span></p>
<p><span style="font-family: Tahoma;font-size: x-small">outputString.Append(secondString);</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">StringBuilder, is a mutable string hence in </span><span style="font-family: Tahoma;font-size: x-small">this case we just have 1 instance of outputString and the second string is appended into that existing instance<br />
no other instance is created hence the process is efficient and fast.</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Note :- The point to remember here is that using StringBuilder for a concatenation of 2-3 strings doesnt make a significant difference in the performance but when you have numerous strings then the usage of StringBuilder has a big positive Impact on the performance </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">To see a example check my </span><a rel="nofollow" href="http://dotnetjunkies.com/WebLog/shaunakp/archive/2005/03/08/59535.aspx" ><span style="font-family: Tahoma;font-size: x-small">post</span></a></p>
<p>Shounak Pandit</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/how-stringbuilder-string-concatenation-affects-performance-string-builder-vs-string-concatenation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sending a Appointment programmatically through Code , ASP.NET ,ICalendar Format</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/sending-a-appointment-programmatically-through-code-aspnet-icalendar-format/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/sending-a-appointment-programmatically-through-code-aspnet-icalendar-format/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:29:59 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[ICalendar Format]]></category>

		<category><![CDATA[iCalendar format ASP.NET code]]></category>

		<category><![CDATA[programmatically sending icalendar]]></category>

		<category><![CDATA[Sending a Appointment programmatically through Code]]></category>

		<category><![CDATA[sending meeting request through code]]></category>

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

Here is  in which you can send appointments via ICalendar format through code and not using the Outlook Object library (This is a very basic version of the way and does not involve much exception handling,and doesnt take care of nth case , explore a bit on that front :))

I am going to show the [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #808080">Here is  in which you can send appointments via ICalendar format through code and not using the Outlook Object library (This is a very basic version of the way and does not involve much exception handling,and doesnt take care of nth case , explore a bit on that front :))</span></span></span></p>
<hr />
<p><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #808080">I am going to show the method of sending an appointment by creating a ICalendar Appointment file first and then sending it as an attachement over email.  (The way in which ICalendar format files are sent when you click on Tools -&gt;Export -&gt; as ICalendar file in the appointment )</span></span></span></p>
<p><span style="font-family: Tahoma;font-size: x-small"></p>
<hr /></span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Here is the declaration for the TimeFormat and some variables used to fill  the Appoinment details. viz start time,endtime etc.</span></p>
<table style="width: 360px;height: 199px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #0000ff">const</span> <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> c_strTimeFormat = &#8220;yyyyMMdd\\THHmmss\\Z&#8221;;<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> strStartTime=&#8221;";<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> strEndTime=&#8221;";<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> strTimeStamp=&#8221;";<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> strTempStartTime =&#8221;";<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small"> strTempEndTime = &#8220;&#8221;;<br />
<span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma;font-size: x-small"> vCalendarFile = &#8220;&#8221;;<br />
</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Tahoma;font-size: x-small">Create a Skeleton for the appointment ICalendar file format and using the variables created above we will assign the values accordingly into the Appoinment skeleton. (This string concatation can be optimised by using string builder)</span></p>
<table style="width: 361px;height: 311px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #008000">// VCalendar Format.<br />
</span><span style="color: #0000ff">const</span> <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma;font-size: x-small"> VCAL_FILE =<br />
&#8220;BEGIN:VCALENDAR\n&#8221; +<br />
&#8220;VERSION:1.0\n&#8221; +<br />
&#8220;BEGIN:VEVENT\n&#8221; +<br />
&#8220;DTSTART{0}\n&#8221; +<br />
</span><span style="font-family: Tahoma;font-size: x-small">&#8220;DTEND{1}\n&#8221; +<br />
&#8220;LOCATION;ENCODING=QUOTED-PRINTABLE:{2}\n&#8221; +<br />
&#8220;DESCRIPTION;ENCODING=QUOTED-PRINTABLE:{3}\n&#8221; +<br />
&#8220;SUMMARY;ENCODING=QUOTED-PRINTABLE:{4}\n&#8221; +<br />
&#8220;TRIGGER:-PT15M\n&#8221; +<br />
&#8220;PRIORITY:3\n&#8221; +<br />
&#8220;END:VEVENT\n&#8221; +<br />
&#8220;END:VCALENDAR&#8221; ;</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Tahoma;font-size: x-small">Assign the Appointment values to the variables declared in the first code section and in the appropriate format. </span></p>
<p><span style="color: #0000ff"> </span></p>
<table style="width: 360px;height: 508px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma"><span style="font-size: x-small">DateTime dtmStartDate = DateTime.Parse(startDate.ToString());<br />
DateTime dtmStartTime = DateTime.Parse(startDate + &#8221; &#8221; + startTime.ToString());<br />
DateTime dtmEndTime = DateTime.Parse(startDate + &#8221; &#8221; + endTime.ToString());<br />
strTempStartTime = <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small">.Format(&#8221;{0} {1}&#8221;,<br />
dtmStartDate.ToShortDateString(),dtmStartTime.ToLongTimeString());<br />
strTempEndTime = <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small">.Format(&#8221;{0} {1}&#8221;,<br />
dtmStartDate.ToShortDateString(),dtmEndTime.ToLongTimeString());<br />
strTimeStamp = (DateTime.Parse(strTempStartTime)).ToUniversalTime().ToString(c_strTimeFormat);<br />
strStartTime = <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma"><span style="font-size: x-small">.Format(&#8221;:{0}&#8221;, strTimeStamp);<br />
strEndTime = <span style="color: #0000ff">string</span></span></span><span style="font-family: Tahoma;font-size: x-small">.Format(&#8221;:{0}&#8221;,<br />
(DateTime.Parse(strTempEndTime)).ToUniversalTime().ToString(c_strTimeFormat));</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #0000ff"><span style="font-family: Tahoma;font-size: x-small"><span style="color: #000000">Using String.format fill in the Appoinment skeleton created earlier with the variable values.</span> </span></span></p>
<table style="width: 360px;height: 294px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma;font-size: x-small">vCalendarFile =<br />
String.Format(VCAL_FILE, strStartTime, strEndTime, location, summary, subject , strTimeStamp, attendeeEmail.Trim() , &#8220;ShaunakP&#8221;, attendeeName.Trim(), attendeeEmail.Trim(), organizerEmail.Trim());</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #0000ff"><span style="font-family: Tahoma;color: #000000;font-size: x-small">Now that we have the ICalendar file created, we need to write it to the disk so as to attach it to the outgoing email<br />
(Anybody knows a method of just creating the ICalendar file in memory and directly attaching the file without creating a Physical file please leave a feedback on how to do that,didnt get much time to look into it.)</span></span></p>
<table style="width: 360px;height: 250px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma;font-size: x-small">filePath += &#8220;\\&#8221; + subject+ &#8220;.ics&#8221;;<br />
TextWriter tw = <span style="color: #0000ff">new</span> StreamWriter(filePath);</span></p>
<p><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #008000">// write a line of text to the file<br />
</span>tw.WriteLine(vCalendarFile.ToString());</span></span></p>
<p><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #008000">// close the stream<br />
</span>tw.Close();</span></span></td>
</tr>
</tbody>
</table>
<p><span style="color: #0000ff"><span style="font-family: Tahoma;color: #000000;font-size: x-small">Now that we have the ICalendar all we need to do is send a mail to the persons involved in the Appoinment with the ICalendar file as an attachment.</span></span></p>
<table style="width: 360px;height: 335px" border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma"><span style="font-size: x-small">// Create object for sending mails</span></span></p>
<p>MailMessage mail = <span style="color: #0000ff">new</span><span style="font-family: Tahoma;font-size: x-small"> MailMessage();<br />
mail.To = attendeeEmail.Trim();<br />
mail.From = organizerEmail.Trim();<br />
mail.Subject = &#8220;You have got a Appointment.&#8221;;<br />
</span><span style="color: #008000"><br />
<span style="font-family: Tahoma;font-size: x-small">// create the attachment<br />
</span></span><span style="font-family: Tahoma"><span style="font-size: x-small">MailAttachment attachment = <span style="color: #0000ff">new</span></span></span><span style="font-family: Tahoma;font-size: x-small"> MailAttachment(filePath, MailEncoding.UUEncode);<br />
</span><span style="font-family: Tahoma;color: #008000;font-size: x-small">// Attach<br />
</span><span style="font-family: Tahoma;font-size: x-small">mail.Attachments.Add( attachment );<br />
SmtpMail.SmtpServer = _smtpServer;<br />
SmtpMail.Send( mail );</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Tahoma;font-size: x-small">When the Person who receives the mail opens the attached ICalendar file,it will open up in Outlook as an Outlook Appoinment.</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">Cheers!!</span></p>
<p><span style="font-family: Tahoma;font-size: x-small">P.S There are a lot of improvements that can be done in this code like for e.g using stringbuilder etc but I have skipped on them as this is just a code snippet. </span></p>
<p><span style="font-family: Tahoma;font-size: x-small">To see the code for the above SendAppoinment method </span><a rel="nofollow" href="http://blogs.wwwcoder.com/shaunakp/archive/2005/02/23/1924.aspx" ><span style="font-family: Tahoma;font-size: x-small">click here</span></a></p>
<p><span style="font-family: Tahoma"><span style="font-size: x-small"><span style="color: #ff0000"><span style="text-decoration: underline"><strong>*Update</strong></span> : </span><span style="color: #ff0000">For those of you interested in sending a Meeting Request here is the VCalendar format</span> </span></span></p>
<table border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family: Tahoma;font-size: x-small">&#8220;BEGIN:VCALENDAR\n&#8221; +<br />
&#8220;PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN\n&#8221; +<br />
&#8220;VERSION:2.0\n&#8221; +<br />
&#8220;METHOD:REQUEST\n&#8221; +<br />
&#8220;BEGIN:VEVENT\n&#8221; +<br />
&#8220;ATTENDEE;CN=\&#8221;{8}\&#8221;;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:{9}\n\n&#8221; +<br />
&#8220;ORGANIZER:MAILTO:{10}\n&#8221; +<br />
&#8220;DTSTART{0}\n&#8221; +<br />
&#8220;DTEND{1}\n&#8221; +<br />
&#8220;LOCATION:{2}\n&#8221; +<br />
&#8220;TRANSP:OPAQUE\n&#8221; +<br />
&#8220;SEQUENCE:0\n&#8221; +<br />
&#8220;UID:{6}\n&#8221; +<br />
&#8220;DTSTAMP:{5}\n&#8221; +<br />
&#8220;DESCRIPTION:{3}\n&#8221; +<br />
&#8220;SUMMARY:{4}\n&#8221; +<br />
&#8220;PRIORITY:5\n&#8221; +<br />
&#8220;X-MICROSOFT-CDO-IMPORTANCE:1 \n&#8221; +<br />
&#8220;CLASS:PUBLIC\n&#8221; +<br />
&#8220;BEGIN:VALARM\n&#8221; +<br />
&#8220;TRIGGER:-PT15M\n&#8221; +<br />
&#8220;ACTION:DISPLAY\n&#8221; +<br />
&#8220;DESCRIPTION:Reminder\n&#8221; +<br />
&#8220;END:VALARM\n&#8221; +<br />
&#8220;END:VEVENT\n&#8221; +<br />
&#8220;END:VCALENDAR&#8221; ;</span></p>
<p><span style="font-family: Tahoma;font-size: x-small"> </span></td>
</tr>
</tbody>
</table>
<p><span style="color: #ff0000"><span style="font-family: Tahoma;font-size: x-small">* Known Issue: If a person rejects the meeting it wont be conveyed to</span> you</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/sending-a-appointment-programmatically-through-code-aspnet-icalendar-format/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Datagrid Sorting ASP.NET or How to Sort Datagrid</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/datagrid-sorting-aspnet-or-how-to-sort-datagrid/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/datagrid-sorting-aspnet-or-how-to-sort-datagrid/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:26:20 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET Datagrid sorting]]></category>

		<category><![CDATA[datagrid sorting]]></category>

		<category><![CDATA[DataGrid sorting columns]]></category>

		<category><![CDATA[sorting columns datagrid]]></category>

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

Datagrid Sorting ASP.NET or How to Sort Datagrid
Step I ) 
 In the Datagrid definition:
add 2 properties AllowSorting = true and OnSortCommand=&#8221;MethodName in code behind&#8221;

e.g
&#60;asp:datagrid id=&#8221;dgSearchList&#8221; runat=&#8221;server&#8221; Height=&#8221;125px&#8221; Width=&#8221;627px&#8221; CssClass=&#8221;panelChildSolidBorder&#8221;
CellPadding=&#8221;2&#8243; AllowCustomPaging=&#8221;True&#8221; AutoGenerateColumns=&#8221;False&#8221; OnItemCommand=&#8221;detailsClicked&#8221;
ShowHeader=&#8221;True&#8221;  AllowSorting=&#8221;True&#8221; OnSortCommand=&#8221;dgSearchList_SortClick&#8221; PageSize=&#8221;4&#8243;&#62;

AllowSorting=&#8221;True&#8221; makes the datagrid sortable and OnSortCommand=&#8221;dgSearchList_SortClick&#8221; tells which method to call when the header is clicked. 
 Step [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<h2>Datagrid Sorting ASP.NET or How to Sort Datagrid</h2>
<p><strong><em><span style="text-decoration:underline"><span><span style="font-family:Tahoma"><span style="font-size:x-small">Step I ) </span></span></span></span></em></strong></p>
<p><strong><em><span style="text-decoration:underline"><span> </span></span></em></strong><span><span style="font-family:Tahoma"><span style="font-size:x-small">In the Datagrid definition:<br />
</span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">add 2 properties<span> </span><span>AllowSorting</span><span> = true and </span><span>OnSortCommand</span><span>=&#8221;MethodName in code behind&#8221;<br />
</span></span></span></span></p>
<p><span><span style="font-family:Tahoma"><span style="font-size:x-small">e.g<br />
</span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span>&lt;</span><span>asp:datagrid</span><span> </span><span>id</span><span>=&#8221;dgSearchList&#8221;</span><span> </span><span>runat</span><span>=&#8221;server&#8221;</span><span> </span><span>Height</span><span>=&#8221;125px&#8221;</span><span> </span><span>Width</span><span>=&#8221;627px&#8221;</span><span> </span><span>CssClass</span></span><span><span style="color:#ffa500">=&#8221;panelChildSolidBorder&#8221;<br />
</span></span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span>CellPadding</span><span>=&#8221;2&#8243;</span><span> </span><span>AllowCustomPaging</span><span>=&#8221;True&#8221;</span><span> </span><span>AutoGenerateColumns</span><span>=&#8221;False&#8221;</span><span> </span></span><span><span style="color:#ffa500">OnItemCommand=&#8221;detailsClicked&#8221;<br />
</span></span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span>ShowHeader</span><span>=&#8221;True&#8221;</span><span> </span><span><span> </span><em><span style="text-decoration:underline"><span style="color:#000000">AllowSorting=&#8221;True&#8221;</span></span></em></span><span style="text-decoration:underline"><span style="color:#000000"><em><span> </span></em><em><span>OnSortCommand</span></em><em><span>=&#8221;dgSearchList_SortClick&#8221;</span></em></span></span><em><span> </span></em><span>PageSize</span></span><span><span style="color:#ffa500">=&#8221;4&#8243;&gt;<br />
</span></span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><em><span style="text-decoration:underline"><span><br />
AllowSorting=&#8221;True&#8221;</span></span></em><span> makes the datagrid sortable and <em><span style="text-decoration:underline"><span>OnSortCommand</span><span>=&#8221;dgSearchList_SortClick&#8221;</span></span></em> tells which method to call when the header is clicked. </span></span></span></p>
<p><span> </span><strong><em><span style="text-decoration:underline"><span><span style="font-family:Tahoma"><span style="font-size:x-small">Step II )</span></span></span></span></em></strong></p>
<p><strong><em><span style="text-decoration:underline"><span> </span></span></em></strong><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span> </span>Now we need to define the method to call when the column headers are clicked<br />
</span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">here dgSearchList_SortClick is the method that will be called when the Column headers are clicked for sorting.</span></span></span></p>
<p><span> </span><strong><span><span style="font-family:Tahoma"><span style="font-size:x-small">Codebehind :<br />
</span></span></span></strong><span><br />
</span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">public void dgSearchList_SortClick(object sender,DataGridSortCommandEventArgs e)<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>{<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">sortField = e.SortExpression; // ie the Sortexpression assigned to the<span> </span></span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">Column.Check STEP III for how to assign a   // sortexpression on a column.<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">PopulateDatagrid();<span> </span>//Call the method that populates the Datagrid with<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span><span> </span><span> //</span>the values from the Dataview.<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>}<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><br />
PopulateDatagrid()<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">{<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>if(sortMode.ToString().Trim().Equals(SORT_ASC))<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>{<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">sortMode = SORT_DESC; <span> </span>// Here sortMode is just a Variable storing the<br />
</span></span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span>direction of the sort.There are better ways to store this than the current one shown here</span><span><span>J<br />
</span></span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>}<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>else<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>{<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>sortMode = SORT_ASC;<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>}<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>txtSortMode.Text = sortMode;</span></span></span></span></p>
<p><span> </span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">// SORT_DESC and SORT_ASC are constants with the following string values.<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">// SORT_DESC = “Desc”<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">// SORT_ASC<span> </span>= “Asc”</span></span></span></span></p>
<p><span> </span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>DataView dv = new DataView(dt);<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>dv.Sort = sortField.Trim() + &#8221; &#8221; + sortMode;<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>dgSearchList.DataSource = dv;<br />
</span></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500"><span> </span>dgSearchList.DataBind(); </span></span></span></span></p>
<p><span><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#ffa500">}</span> </span></span></span></p>
<p><span> </span><span><span style="font-family:Tahoma"><span style="font-size:x-small">The code above checks whether we want to sort in Ascending order or in Descending order<br />
</span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">and assigns the SortExpression concatenated with the Sorting direction (Asc/Desc)<br />
</span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">and binds the datagrid again (don’t forget to bind the data grid its very important)<br />
</span></span></span><strong><em><span style="text-decoration:underline"><span><span style="font-family:Tahoma"><span style="font-size:x-small"></p>
<p>Step III)<br />
</span></span></span></span></em></strong><span><span style="font-family:Tahoma"><span style="font-size:x-small"> You need to specify the sorting expression for that column in the column definition in the ASPX page </span></span></span></p>
<p><span> </span><span><span style="font-family:Tahoma"><span style="font-size:x-small">e.g<br />
</span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span>&lt;</span><span>asp:BoundColumn</span><span> </span><span>DataField</span><span>=&#8221;Location&#8221;</span><span> </span><strong><em><span style="text-decoration:underline"><span>SortExpression</span></span></em></strong><strong><em><span style="text-decoration:underline"><span>=&#8221;Location&#8221;</span></span></em></strong><span> </span><span>HeaderText</span><span>=&#8221;LocationArea&#8221;&gt;<br />
</span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span>&lt;</span><span>ItemStyle</span><span> </span><span>Height</span><span>=&#8221;10px&#8221;</span><span> </span><span>Width</span><span>=&#8221;10px&#8221;&gt;&lt;!&#8211;<span></span><span>ItemStyle</span><span>&gt;<br />
</span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"><span>asp:BoundColumn</span><span>&gt;<br />
</span></span></span></p>
<p><span><span style="font-family:Tahoma"><span style="font-size:x-small">be carefull of what you define as the sortexpression because this is what is passed to the codebehind and sortexpression is what identifies which column was clicked for sorting </span></span></span></p>
<p><span><span style="font-family:Tahoma"><span style="font-size:x-small">in this case the sort expression for the <span>LocationArea</span> column is “Location”, hence when we clicking on the location column<span> </span>will set the e.SortExpression (check Step III for e.SortExpression) to “Location”. Hence identifying the column clicked.</span></span></span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/datagrid-sorting-aspnet-or-how-to-sort-datagrid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First Web Service :) used XSLT for transforming XML</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/first-web-service-used-xslt-for-transforming-xml/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/first-web-service-used-xslt-for-transforming-xml/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:24:03 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET Webservice xslt transform xml]]></category>

		<category><![CDATA[First Web Service :) used XSLT for transforming XML]]></category>

		<category><![CDATA[XSLT XML transform]]></category>

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

Worked on my first Web Service today, wasn&#8217;t much of a complex web service but I got some idea about WebServices and their working.
Was a simulation of a XML returned by a third party tool retrieving records from DB2,
The objective involved getting rid of the extra nodes (data) returned in the XML from the 3rd party [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;font-size:x-small">Worked on my first Web Service today, wasn&#8217;t much of a complex web service but I got some idea about WebServices and their working.<br />
Was a simulation of a XML returned by a third party tool retrieving records from DB2,<br />
The objective involved getting rid of the extra nodes (data) returned in the XML from the 3rd party and just passing on the XML data recognised by the consumer application as a valid object.This was achieved by making my transformer app sit in between the Webservice and the consumer app.</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">The best option in this case was transforming the XML output from the 3rd party tool into XML recognised by the consumer application using XSLT as it allowed us to change the nodes (data) passed on to the consumer app by just changing the <span style="color:#ffa500">XLS </span>file and not recompiling the whole of the <span style="color:#ffa500">transformer</span> app (incase we had written a custom class to take care of parsing the output XML and returning only selected number of fields).</span><br />
<span style="font-family:Tahoma;font-size:x-small"><span style="color:#006400">Will post a code snippet on the transformation code a bit later</span>.Now I am almost done with the Cruisenet Doc ,will be posting that in a while here (by tomorrow most probably) and ofcourse the Nant and Nunit doc need to be completed and posted too <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/first-web-service-used-xslt-for-transforming-xml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: ShortCuts for formating code , commenting code , wordwrap code</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code-2/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:22:14 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[commenting code]]></category>

		<category><![CDATA[Visual Studio IDE : ShortCuts for formating code]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[wordwrap code]]></category>

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

ShotCut Keys

Convert selected code to lower case - Ctrl+U
Convert selected code  to upper case - Ctrl+Shift+U
Comment selected code - Ctrl+K, Ctrl+C
Uncomment selected code - Ctrl+K, Ctrl+U 
WordWrap 
Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:x-small;font-family:Tahoma;color:#ffa500"><span style="text-decoration:underline">ShotCut Keys<br />
</span></span><br />
<span style="font-size:x-small;font-family:Tahoma">Convert selected code to lower case - Ctrl+U<br />
Convert selected code  to upper case - Ctrl+Shift+U<br />
Comment selected code - Ctrl+K, Ctrl+C<br />
Uncomment selected code - Ctrl+K, Ctrl+U </span></p>
<p><span style="font-size:x-small;font-family:Tahoma;color:#ffa500"><span style="text-decoration:underline">WordWrap </span></span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to the right?<br />
Well theres good news VS IDE provides a (toggle) shortcut which will put the line contents beyond the screen width on the next line and back onto the same line.</span></p>
<p><span style="font-size:x-small;font-family:Tahoma">ShortCut Key : -   Ctrl + r + r   (toggles)</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE : ShortCuts for formating code , commenting code , wordwrap code</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:22:14 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[commenting code]]></category>

		<category><![CDATA[Visual Studio IDE : ShortCuts for formating code]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[wordwrap code]]></category>

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

ShotCut Keys

Convert selected code to lower case - Ctrl+U
Convert selected code  to upper case - Ctrl+Shift+U
Comment selected code - Ctrl+K, Ctrl+C
Uncomment selected code - Ctrl+K, Ctrl+U 
WordWrap 
Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;color:#ffa500;font-size:x-small"><span style="text-decoration:underline">ShotCut Keys<br />
</span></span><br />
<span style="font-family:Tahoma;font-size:x-small">Convert selected code to lower case - Ctrl+U<br />
Convert selected code  to upper case - Ctrl+Shift+U<br />
Comment selected code - Ctrl+K, Ctrl+C<br />
Uncomment selected code - Ctrl+K, Ctrl+U </span></p>
<p><span style="font-family:Tahoma;color:#ffa500;font-size:x-small"><span style="text-decoration:underline">WordWrap </span></span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to the right?<br />
Well theres good news VS IDE provides a (toggle) shortcut which will put the line contents beyond the screen width on the next line and back onto the same line.</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">ShortCut Key : -   Ctrl + r + r   (toggles)</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-shortcuts-for-formating-code-commenting-code-wordwrap-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: Bookmarks &#38; Incremental Search</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search-2/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:21:12 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Visual Studio IDE : Bookmarks &amp; Incremental Search]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[Visual studio tips]]></category>

		<category><![CDATA[VS bookmarks]]></category>

		<category><![CDATA[VS incremental search]]></category>

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

Bookmarks 
Bookmarks are available through Edit - &#62; Bookmarks.
using bookmarks we can mark places in our code which we would like to revisit later on.
Create/Remove Bookmark - Ctrl+K, Ctrl+K
Move to next bookmark - Ctrl+K, Ctrl+N
Move to previous bookmark - Ctrl+K, Ctrl+P
Clear all bookmarks - Ctrl+K, Ctrl+L 
Incremental Search Pressing 
Ctrl+i  will incrementally search for [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:x-small;font-family:Tahoma;color:#ffa500"><span style="text-decoration:underline">Bookmarks</span> </span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Bookmarks are available through Edit - &gt; Bookmarks.<br />
</span><span style="font-size:x-small;font-family:Tahoma">using bookmarks we can mark places in our code which we would like to revisit later on.</span><br />
<span style="font-size:x-small;font-family:Tahoma">Create/Remove Bookmark - Ctrl+K, Ctrl+K<br />
Move to next bookmark - Ctrl+K, Ctrl+N<br />
Move to previous bookmark - Ctrl+K, Ctrl+P<br />
Clear all bookmarks - Ctrl+K, Ctrl+L </span></p>
<p><span style="font-size:x-small;font-family:Tahoma;color:#ffa500"><span style="text-decoration:underline">Incremental Search </span></span><span style="font-size:x-small;font-family:Tahoma"><span style="color:#ffa500"><span style="text-decoration:underline">Pressing</span></span> </span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Ctrl+i  will incrementally search for text as you type. </span></p>
<p><span style="font-size:x-small;font-family:Tahoma">HOWTO : Press Ctrl +  i   then type the word you want to search. Hit backspace to clear a character and enter to finish.<br />
Pressing F3 after this will work as usual, i.e. search for the next occurrence of previous search.</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE : Bookmarks &#38; Incremental Search</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:21:12 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Visual Studio IDE : Bookmarks &amp; Incremental Search]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[Visual studio tips]]></category>

		<category><![CDATA[VS bookmarks]]></category>

		<category><![CDATA[VS incremental search]]></category>

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

Bookmarks 
Bookmarks are available through Edit - &#62; Bookmarks.
using bookmarks we can mark places in our code which we would like to revisit later on.
Create/Remove Bookmark - Ctrl+K, Ctrl+K
Move to next bookmark - Ctrl+K, Ctrl+N
Move to previous bookmark - Ctrl+K, Ctrl+P
Clear all bookmarks - Ctrl+K, Ctrl+L 
Incremental Search Pressing 
Ctrl+i  will incrementally search for text as [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;color:#ffa500;font-size:x-small"><span style="text-decoration:underline">Bookmarks</span> </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Bookmarks are available through Edit - &gt; Bookmarks.<br />
</span><span style="font-family:Tahoma;font-size:x-small">using bookmarks we can mark places in our code which we would like to revisit later on.</span><br />
<span style="font-family:Tahoma;font-size:x-small">Create/Remove Bookmark - Ctrl+K, Ctrl+K<br />
Move to next bookmark - Ctrl+K, Ctrl+N<br />
Move to previous bookmark - Ctrl+K, Ctrl+P<br />
Clear all bookmarks - Ctrl+K, Ctrl+L </span></p>
<p><span style="font-family:Tahoma;color:#ffa500;font-size:x-small"><span style="text-decoration:underline">Incremental Search </span></span><span style="font-family:Tahoma;font-size:x-small"><span style="color:#ffa500"><span style="text-decoration:underline">Pressing</span></span> </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Ctrl+i  will incrementally search for text as you type. </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">HOWTO : Press Ctrl +  i   then type the word you want to search. Hit backspace to clear a character and enter to finish.<br />
Pressing F3 after this will work as usual, i.e. search for the next occurrence of previous search.</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-ide-bookmarks-incremental-search/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Response.Redirect Try catch block , ThreadAbortException</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/responseredirect-try-catch-block-threadabortexception/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/responseredirect-try-catch-block-threadabortexception/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:19:20 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET threadabortexception]]></category>

		<category><![CDATA[response.redirect]]></category>

		<category><![CDATA[Response.Redirect Try catch block]]></category>

		<category><![CDATA[Response.Redirect Try catch block ThreadAbortException]]></category>

		<category><![CDATA[ThreadAbortException]]></category>

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

What is with the combination of Response.redirect and Try catch block? 
 
well, most of you who have tried out the combination must have been stuck with a weird error of &#8220;Thread was being aborted&#8221; and must have wondered what has a thread got to do with Response.redirect? 
 
Well, to answer your question here [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>What is with the <strong><span style="text-decoration:underline"><span>combination of Response.redirect and Try catch block</span></span></strong>?</span> </span></span></p>
<p><span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>well, most of you who have tried out the combination must have been stuck with a weird error of <strong>&#8220;Thread was being aborted&#8221; </strong>and must have wondered what has a thread got to do with Response.redirect?</span> </span></span></p>
<p><span> </span></p>
<p><span><span style="font-family:Tahoma;font-size:x-small">Well, to answer your question here goes:- </span> </span></p>
<p><span><span style="font-family:Tahoma;font-size:x-small">A thread is executing your application in terms of ASP.NET worker process , when you call </span><span><span style="font-family:Tahoma;font-size:x-small">Response.Redirect(URL); </span> </span></span></p>
<p><span><span style="font-family:Tahoma;font-size:x-small">In your code then to redirect to the new URL specified by you ASP.NET framework must be told to stop the current execution of the page and to transfer the execution to the URL page specified in the method call. </span> </span></p>
<p><span><span style="font-family:Tahoma;font-size:x-small">This is done in a 2 way step :- </span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>1)</span><span> </span><span>Response.End() is called internally by Response.Redirect to stop the current execution and the </span><span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadabortexceptionclasstopic.asp" ><span>ThreadAbortException</span></a></span></span></span><span><span style="font-family:Tahoma;font-size:x-small"> is thrown. </span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>2)</span><span> </span><span> </span><span>.NET framework will call catch “</span><span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadabortexceptionclasstopic.asp" ><span>ThreadAbortException</span></a></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">” and stop current execution and start executing the new page.<span> </span></span></span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>Now during the Step #1 </span><span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclassendtopic.asp" ><span>Response.End</span></a></span><span> will throw out a<span> </span>“</span><span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadabortexceptionclasstopic.asp" ><span>ThreadAbortException</span></a></span></span></span><span><span style="font-family:Tahoma"><span style="font-size:x-small">” to let .NET framework know that the current execution needs to be stopped and the execution of new should begin.<span> </span></span></span> </span></p>
<p><span><span style="font-family:Tahoma;font-size:x-small">Asp.net framework catches the Redirect method&#8217;s exception, aborts the thread and use a new thread for execution of to be redirected page. </span> </span></p>
<p><span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><strong><span style="text-decoration:underline"><span>Solution :-</span></span></strong><span> The way to get over this problem is to specify <strong><span>Response.Redirect(URL,false)</span></strong> , this will tell .NET framework not to stop the execution of the current thread and hence the error will be resolved.</span><span> </span></span></span><span><span style="font-family:Tahoma;font-size:x-small"> </span> </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><span>“</span><span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadabortexceptionclasstopic.asp" ><span>ThreadAbortException</span></a></span><span>” is a special kind of an exception even if you catch it in a catch block even then it will be raised again at the end of the catch block.</span><span> </span></span></span><span><span style="font-family:Tahoma;font-size:x-small">When this exception is raised, the runtime executes all the finally blocks before killing the thread.</span></span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/responseredirect-try-catch-block-threadabortexception/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-net-has-detected-that-the-specified-web-server-is-not-running-aspnet-version-11-you-will-be-unable-to-run-aspnet-web-applications-or-services/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-net-has-detected-that-the-specified-web-server-is-not-running-aspnet-version-11-you-will-be-unable-to-run-aspnet-web-applications-or-services/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:16:45 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[unable to run ASP.NET web applications]]></category>

		<category><![CDATA[Visual Studio .NET has detected that the specified Web ]]></category>

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

“Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services“
Got this error when i tried to create a new web project on my computer in my new company
Here is the solution i followed :- 

 Open Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;font-size:x-small">“Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services“</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Got this error when i tried to create a new web project on my computer in my new company<br />
</span><span style="font-family:Tahoma;font-size:x-small">Here is the solution i followed :- </span></p>
<ul>
<li><span style="font-family:Tahoma;font-size:x-small"> Open Visual Studio Command prompt.</span></li>
<li><span style="font-family:Tahoma;font-size:x-small">Type “aspnet_regiis -i“ and press enter.</span></li>
</ul>
<p><span style="font-family:Tahoma;font-size:x-small">Here is the output :- </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">c:\&gt;aspnet_regiis -i<br />
Start installing ASP.NET (1.1.4322.0).<br />
Finished installing ASP.NET (1.1.4322.0).</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Thats it now try creating a new web project it will work.</span></p>
<p><span style="font-family:Tahoma;color:#ff0000;font-size:x-small"><strong><span style="text-decoration:underline">UPDATE : </span></strong></span></p>
<p><strong><span style="text-decoration:underline"><span style="font-family:Tahoma;color:#ff0000;font-size:x-small">Steps to reach the VS Command Prompt</span></span></strong></p>
<p><span style="font-family:Tahoma;color:#ff0000;font-size:x-small"><span style="color:#000000">1) Click Start.<br />
</span></span><span style="font-family:Tahoma;color:#ff0000;font-size:x-small"><span style="color:#000000">2) Programs/All Programs.<br />
3) Microsoft Visual Studio .Net 2003.<br />
4) Visual Studio .Net Tools<br />
5) Visula Studio .Net 2003 command Prompt. </span><br />
</span></p>
<p><strong><span style="text-decoration:underline"><span style="font-family:Tahoma;color:#ff0000;font-size:x-small">Server versions of OS </span></span></strong></p>
<p><span style="font-family:Tahoma;font-size:x-small">For the Server versions of OS the above step might not work Try the following </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">To resolve this problem, change the status of ASP.NET 1.1 to <strong>Allowed</strong> in the <strong>Web Service Extension</strong> list in IIS 6.0. To do this, follow these steps: </span></p>
<table class="list" border="0">
<tbody>
<tr>
<td class="number"><span style="font-family:Tahoma;font-size:x-small">1.</span></td>
<td class="text"><span style="font-family:Tahoma;font-size:x-small">Click <strong>Start</strong>, point to <strong>Programs</strong>, and then click <strong>Control Panel</strong>.</span></td>
</tr>
<tr>
<td class="number"><span style="font-family:Tahoma;font-size:x-small">2.</span></td>
<td class="text"><span style="font-family:Tahoma;font-size:x-small">Double-click <strong>Administrative Tools</strong>, and then double-click <strong>Internet Information Services (IIS)</strong>.</span></td>
</tr>
<tr>
<td class="number"><span style="font-family:Tahoma;font-size:x-small">3.</span></td>
<td class="text"><span style="font-family:Tahoma;font-size:x-small">Click <strong>Web Service Extensions</strong>.</span></td>
</tr>
<tr>
<td class="number"><span style="font-family:Tahoma;font-size:x-small">4.</span></td>
<td class="text"><span style="font-family:Tahoma;font-size:x-small">In the details pane, click <strong>ASP.NET v1.1.4322</strong> in the <strong>Web Service Extension</strong> list.</span></td>
</tr>
<tr>
<td class="number"><span style="font-family:Tahoma;font-size:x-small">5.</span></td>
<td class="text"><span style="font-size:x-small"><span style="font-family:Tahoma">Click <strong>Allowed</strong> to change the status from <strong>Prohibited</strong> to <strong>Allowed.</strong></span></span></td>
</tr>
</tbody>
</table>
<p><span style="color:#ff0000">NOTE:-</span> There is an issue in running ASP.NET over sharepoint portal server some settings need to be made for the 2 to run.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/visual-studio-net-has-detected-that-the-specified-web-server-is-not-running-aspnet-version-11-you-will-be-unable-to-run-aspnet-web-applications-or-services/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting margins while printing Crystal reports.</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/setting-margins-while-printing-crystal-reports/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/setting-margins-while-printing-crystal-reports/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:14:57 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Crystal Reports]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET crystal reports print method]]></category>

		<category><![CDATA[crystal reports margins]]></category>

		<category><![CDATA[printtoprinter metho crystal reports]]></category>

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

Crystal reports provides its own printing method, which will print the page but there might be some problems in the print out unless you set the margins for the page.





PageMargins margins = new PageMargins();
&#8216; Get the PageMargins structure and set the &#8216; margins for the report.
margins = rep.PrintOptions.PageMargins;
margins.bottomMargin = 350;
margins.leftMargin = 350;
margins.rightMargin = 350;
margins.topMargin = [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;font-size:x-small">Crystal reports provides its own printing method, which will print the page but there might be some problems in the print out unless you set the margins for the page.</p>
<p></span></p>
<table border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%">
<span style="font-family:Tahoma;font-size:x-small">PageMargins margins = new PageMargins();<br />
&#8216; Get the PageMargins structure and set the &#8216; margins for the report.<br />
margins = rep.PrintOptions.PageMargins;<br />
margins.bottomMargin = 350;<br />
margins.leftMargin = 350;<br />
margins.rightMargin = 350;<br />
margins.topMargin = 350; &#8216; Apply the page margins.<br />
rep.PrintOptions.ApplyPageMargins(margins);<br />
&#8216; Print the report.<br />
Set the startPageN and endPageN<br />
&#8216;parameters to 0 to print all pages.<br />
rep.PrintToPrinter(1, False, 0, 0); </span></td>
</tr>
</tbody>
</table>
<p><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlrf/html/crlrfreportdocumentclassprinttoprintermethodtopic.asp" ><span style="font-family:Tahoma;font-size:x-small">PrinttoPrinter method </span></a><span style="font-family:Tahoma;font-size:x-small">of Crystal reports </span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/setting-margins-while-printing-crystal-reports/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Form Validators Non Microsoft Internet Browser Client side validation</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/form-validators-non-microsoft-internet-browser-client-side-validation/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/form-validators-non-microsoft-internet-browser-client-side-validation/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:12:40 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Problem Solving]]></category>

		<category><![CDATA[ASP.NET validator issue]]></category>

		<category><![CDATA[validators nonmicrosoft browsers]]></category>

		<category><![CDATA[Validators not working]]></category>

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

Learnt a new thing today:- 
Ever tried using Form Validators on a form which would be opened in a Non MS IE browser?
You will be surprised to see that the client side validation doesn&#8217;t work even though you have set cleintvalidation to True.
Only the server side validation work for Non MS IE Browsers.
The reason for [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;font-size:x-small">Learnt a new thing today:- </span></p>
<p><span style="font-family:Tahoma;font-size:x-small">Ever tried using Form Validators on a form which would be opened in a Non MS IE browser?<br />
You will be surprised to see that the client side validation doesn&#8217;t work even though you have set cleintvalidation to True.<br />
Only the server side validation work for Non MS IE Browsers.</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">The reason for this is because of the way the validators are built up.</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">To start with,by default ASP.NET is configured to send HTML 4.0-compliant HTML to only Internet Explorer, and sends HTML 3.2-compliant HTML to all non-Microsoft browsers, even though modern, non-Microsoft browsers such as Netscape 6.0+, Mozilla, Opera etc. can handle HTML 4.0.<br />
This can be taken care of by changing the configuration in the Browser Caps section of the config file.</span></p>
<p><span style="font-size:x-small"><span style="font-family:Tahoma">But one thing that still creates a problem for client side validation is the way the client side script is renedered on to the page.<br />
Using the Browser Caps settings the HTML 4.0  compliant HTML will be rendered onto the page but inspite of this the script emitted by the BaseValidator class contains a javascript block that creates an array of all the validators on that particular page.<br />
This array is used to itterate through to check the validity of the controls on the page<br />
its done using the<br />
</span><span style="font-family:Tahoma"> </span></span></p>
<table border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family:Tahoma;font-size:x-small">document.all[validatorID] </span></td>
</tr>
</tbody>
</table>
<p><span style="font-family:Tahoma;font-size:x-small">script which is only supported by Microsoft&#8217;s Internet Explorer While other browsers (including MS IE) supports the standard way </span></p>
<table border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-family:Tahoma;font-size:x-small">document.getElementById(ID) </span></td>
</tr>
</tbody>
</table>
<p><span style="font-family:Tahoma;font-size:x-small">There are some workarounds like some people who have build validator controls by extending from the Basevalidator class and overiding the method that emits the Javascript code to emit the correct standard script.</span><br />
<span style="font-family:Tahoma;font-size:x-small">Good news is that this problem is taken care of in Whidbey (.NET 2.0)<br />
Bad news is till its released we have to work with the workarounds <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/form-validators-non-microsoft-internet-browser-client-side-validation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sending Appointment through .NET</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/sending-appointment-through-net/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/sending-appointment-through-net/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:10:04 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[meeting request object .NET]]></category>

		<category><![CDATA[Meeting request programmatically]]></category>

		<category><![CDATA[Outlook meeting request]]></category>

		<category><![CDATA[Outlook meeting request .net code]]></category>

		<category><![CDATA[Sending meeting through .NET code]]></category>

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

I had to create a Appointment by parsing through the database and then sending a particular guy a appointment which would remind him about the appointment approx 15 mins before the scheduled time. The same way in which Outlook Appointment functions.
Searching a bit, I found a way to utilise the Outlook Object library and send [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:x-small;font-family:Tahoma">I had to create a Appointment by parsing through the database and then sending a particular guy a appointment which would remind him about the appointment approx 15 mins before the scheduled time. The same way in which Outlook Appointment functions.</span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Searching a bit, I found a way to utilise the Outlook Object library and send appointments by creating appointment objects and sending them.</span></p>
<p>Was damn happy with the outcome till I ran the program and then I saw the dreaded Prompt.<br />
Due to a security protocol of MS ( Security patch ),everytime a code tried to create a instance of the Outlook object library and use it to send a mail, appoinment etc.  it prompts the user with a dialog box asking him whether to allow access or to reject access to the program trying to use outlook object.</p>
<p><span style="font-size:x-small;font-family:Tahoma">Now, since I was writing the code as a part of Windows Service there was no question of the prompt and letting the user click on the buttons every time code would send a appointment. </span><span style="font-size:x-small;font-family:Tahoma">Hence searching a bit on the outlooks Way of Forwarding Appoinments in ICalendar format and also the great <a rel="nofollow" href="http://www.google.com/" >Google</a> <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Found out a way of creating a ICalendar format Appointment and sending it accorss to the attendee.</span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Here is  a way in which you can send appointments via ICalendar format through code and not using the Outlook Object library (This is a very basic version of the way and does not involve much exception handling,and doesnt take care of nth case , explore a bit on that front :)) </span></p>
<ul>
<li><span style="font-size:x-small;font-family:Tahoma"> <a rel="nofollow" href="http://dotnetjunkies.com/WebLog/shaunakp/archive/2005/02/24/56421.aspx" >The Appointment method</a></span></li>
<li><span style="font-size:x-small;font-family:Tahoma"> <a rel="nofollow" href="http://dotnetjunkies.com/WebLog/shaunakp/articles/56422.aspx" >The Appointment article (Explains a bit of the method code)</a></span></li>
</ul>
<p class="postfoot">posted                         <a rel="nofollow" href="http://www.dotnetjunkies.com/WebLog/shaunakp/archive/2005/02/24/56423.aspx" id="_ctl0__ctl0__ctl0__ctl0_CategoryView__ctl0_postlist__ctl0_EntryItems__ctl6_PermaLink" >Thursday, February 24, 2005 12:40 AM</a> by 						<a rel="nofollow" href="http://www.dotnetjunkies.com/WebLog/user/Profile.aspx?UserID=1014" id="_ctl0__ctl0__ctl0__ctl0_CategoryView__ctl0_postlist__ctl0_EntryItems__ctl6_AuthorLink" >Shaunakp</a> with                          <a rel="nofollow" href="http://www.dotnetjunkies.com/WebLog/shaunakp/archive/2005/02/24/56423.aspx#comments" id="_ctl0__ctl0__ctl0__ctl0_CategoryView__ctl0_postlist__ctl0_EntryItems__ctl6_CommentsLink" >2 Comments</a></p>
<h5><a rel="nofollow" href="http://www.dotnetjunkies.com/WebLog/shaunakp/archive/2005/02/24/56421.aspx" id="_ctl0__ctl0__ctl0__ctl0_CategoryView__ctl0_postlist__ctl0_EntryItems__ctl7_PostTitle" >SendAppointment Method ASP.NET ,ICalendar format</a></h5>
<table border="1" bgcolor="#cccccc">
<tbody>
<tr>
<td width="100%"><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Sends a appointment in a ICalendar format.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Date of the meeting.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Start time of the meeting.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> End time of the meeting.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Subject of the Meeting.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Name of the attendees for the meeting.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Email addresses of the attendess,seperated by ;.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Email address of the organizer.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Path of the current working directory.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> bool indicating the status of the method call.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Need to give the current working directory path as the meeting request is<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> stored in the current directory before attaching it to the mail.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> Will be adding more customisations in the parameters. and a class to encapsulate the parameter passing.<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000"> meetingRequest.CreateMeeting(&#8221;12/3/2004&#8243;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;12:30:00 PM&#8221;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;12:50:00 PM&#8221;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;Discuss demo issues&#8221;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;we need to have this meeting to discuss certain issues related to demo.&#8221;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;Conference room 1st floor&#8221;,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">shounak pandit,<br />
</span><span style="font-size:x-small;color:#808080">///</span><a href="mailto:shounakp@XYZ.com;"><span style="text-decoration:underline"><span style="font-size:x-small;color:#0000ff">shounakp@XYZ.com</span></span></a><span style="font-size:x-small;color:#008000">,<br />
</span><span style="font-size:x-small;color:#808080"><a>///</a></span><a><span style="font-size:x-small;color:#008000">shounak.pandit@ABC.com</span></a><span style="font-size:x-small;color:#008000">,<br />
</span><span style="font-size:x-small;color:#808080">///</span><span style="font-size:x-small;color:#008000">&#8220;c:\\prj\\temp&#8221;); currently requires the filepath to store the ICalendar file in.<br />
////</span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff">public</span><span style="font-size:x-small;color:#000000"> </span><span style="font-size:x-small;color:#0000ff">bool</span><span style="font-size:x-small;color:#000000"> SendAppoinment(</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> startDate,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> startTime,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> endTime,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> subject,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> summary,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> location,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> attendeeName,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> attendeeEmail,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> organizerEmail,<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"><span style="color:#000000"> filePath)<br />
{</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff">const</span><span style="font-size:x-small;color:#000000"> </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> c_strTimeFormat = &#8220;yyyyMMdd\\THHmmss\\Z&#8221;;<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> strStartTime=&#8221;";<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> strEndTime=&#8221;";<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> strTimeStamp=&#8221;";<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> strTempStartTime =&#8221;";<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small;color:#000000"> strTempEndTime = &#8220;&#8221;;<br />
</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"><span style="color:#000000"> vCalendarFile = &#8220;&#8221;;</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000">// VCalendar Format.<br />
</span><span style="font-size:x-small;color:#0000ff">const</span><span style="font-size:x-small;color:#000000"> </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"><span style="color:#000000"> VCAL_FILE =<br />
&#8220;BEGIN:VCALENDAR\n&#8221; +<br />
&#8220;VERSION:1.0\n&#8221; +<br />
&#8220;BEGIN:VEVENT\n&#8221; +<br />
&#8220;DTSTART{0}\n&#8221; +<br />
&#8220;DTEND{1}\n&#8221; +<br />
&#8220;LOCATION;ENCODING=QUOTED-PRINTABLE:{2}\n&#8221; +<br />
&#8220;DESCRIPTION;ENCODING=QUOTED-PRINTABLE:{3}\n&#8221; +<br />
&#8220;SUMMARY;ENCODING=QUOTED-PRINTABLE:{4}\n&#8221; +<br />
&#8220;TRIGGER:-PT15M\n&#8221; +<br />
&#8220;PRIORITY:3\n&#8221; +<br />
&#8220;END:VEVENT\n&#8221; +<br />
&#8220;END:VCALENDAR&#8221; ;</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#0000ff">try</span><span style="font-size:x-small"><span style="color:#000000"><br />
{</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small">DateTime dtmStartDate = DateTime.Parse(startDate.ToString());<br />
DateTime dtmStartTime = DateTime.Parse(startDate + &#8221; &#8221; + startTime.ToString());<br />
DateTime dtmEndTime = DateTime.Parse(startDate + &#8221; &#8221; + endTime.ToString());<br />
strTempStartTime = </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small">.Format(&#8221;{0} {1}&#8221;,<br />
dtmStartDate.ToShortDateString(),dtmStartTime.ToLongTimeString());<br />
strTempEndTime = </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small">.Format(&#8221;{0} {1}&#8221;,<br />
dtmStartDate.ToShortDateString(),dtmEndTime.ToLongTimeString());<br />
strTimeStamp = (DateTime.Parse(strTempStartTime)).ToUniversalTime().ToString(c_strTimeFormat);<br />
strStartTime = </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small">.Format(&#8221;:{0}&#8221;, strTimeStamp);<br />
strEndTime = </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small">.Format(&#8221;:{0}&#8221;,<br />
(DateTime.Parse(strTempEndTime)).ToUniversalTime().ToString(c_strTimeFormat));</span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small">vCalendarFile =<br />
String.Format(VCAL_FILE, strStartTime, strEndTime, location, summary, subject , strTimeStamp, attendeeEmail.Trim() , &#8220;shaunak&#8221;, attendeeName.Trim(), attendeeEmail.Trim(), organizerEmail.Trim());</span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small">filePath += &#8220;\\&#8221; + subject+ &#8220;.ics&#8221;;<br />
TextWriter tw = </span><span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"> StreamWriter(filePath);</span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000">// write a line of text to the file<br />
</span><span style="font-size:x-small"><span style="color:#000000">tw.WriteLine(vCalendarFile.ToString());</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000"> </span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#008000">// close the stream<br />
</span><span style="font-size:x-small"><span style="color:#000000">tw.Close();</span></span></span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small">// Create object for sending mails</span></span></p>
<p>MailMessage mail = <span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"> MailMessage();<br />
mail.To = attendeeEmail.Trim();<br />
mail.From = organizerEmail.Trim();<br />
mail.Subject = &#8220;You have got a Appointment.&#8221;;<br />
</span><span style="font-size:x-small;color:#008000"><br />
// create the attachment<br />
</span><span style="font-size:x-small">MailAttachment attachment = </span><span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"> MailAttachment(filePath, MailEncoding.UUEncode);<br />
</span><span style="font-size:x-small;color:#008000">// Attach<br />
</span><span style="font-size:x-small">mail.Attachments.Add( attachment );<br />
SmtpMail.SmtpServer = _smtpServer;<br />
SmtpMail.Send( mail );</span></p>
<p><span style="font-size:x-small;color:#808080"><span style="font-size:x-small">}<br />
</span><span style="font-size:x-small;color:#0000ff">catch</span><span style="font-size:x-small"> (Exception ex)<br />
{<br />
</span><span style="font-size:x-small;color:#0000ff">throw</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"> Exception(ex.Message + &#8220;for email address : &#8221; + attendeeEmail.Trim() + &#8220;;&#8221;<br />
,ex.InnerException);<br />
}<br />
</span><span style="font-size:x-small;color:#0000ff">return</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">true</span><span style="font-size:x-small">;<br />
}</span></span></p>
<p><span style="font-size:x-small;color:#808080">)</span></td>
</tr>
</tbody>
</table>
<p><strong><span style="font-size:x-small;font-family:Tahoma;color:#000000"></p>
<hr /></span></strong></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/sending-appointment-through-net/feed/</wfw:commentRss>
		</item>
		<item>
		<title>StringBuilder append Vs String Concatenation &#8220;+&#8221;</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/stringbuilder-append-vs-string-concatenation/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/stringbuilder-append-vs-string-concatenation/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:06:30 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[performance stringbuilder]]></category>

		<category><![CDATA[String]]></category>

		<category><![CDATA[String concatenation]]></category>

		<category><![CDATA[StringBuilder]]></category>

		<category><![CDATA[StringBuilder append Vs String Concatenation "+"]]></category>

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

For all of you looking for proof that Stringbuilder is faster than the normal string concatenation using &#8220;+&#8221; 
In the following code snippet i have used both the methods and used start time and end time in each method to calculate the Elasped time for each respective method Create a new project and add the [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:x-small;font-family:Tahoma">For all of you looking for proof that Stringbuilder is faster than the normal string concatenation using &#8220;+&#8221; </span></p>
<p><span style="font-size:x-small;font-family:Tahoma">In the following code snippet i have used both the methods and used start time and end time in each method to calculate the Elasped time for each respective method Create a new project and add the necessary labels and the button to check it for yourself.</span></p>
<p><span style="font-size:x-small;color:#0000ff"><span>private</span></span><span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">void</span><span style="font-size:x-small"> Calculatebutton_Click(</span><span style="font-size:x-small;color:#0000ff">object</span></span><span style="font-size:x-small"><span> sender, System.EventArgs e)</span></span></p>
<p><span style="font-size:x-small"><span>{</span></span></p>
<p><span style="font-size:x-small"><span>DateTime plusStart;</span></span></p>
<p><span style="font-size:x-small"><span>DateTime plusEnd;</span></span></p>
<p><span style="font-size:x-small"><span>DateTime bldrStart;</span></span></p>
<p><span style="font-size:x-small"><span>DateTime bldrEnd;</span></span></p>
<p><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"><span> test = String.Empty; </span></span></p>
<p><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"><span> stringToAppend = &#8220;ap&#8221;;</span></span></p>
<p><span style="font-size:x-small"><span>System.Text.StringBuilder sb = </span></span><span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"><span> System.Text.StringBuilder();</span></span></p>
<p><span style="font-size:x-small;color:#0000ff">int</span><span style="font-size:x-small"><span> upperlimit = 100000;</span></span></p>
<p><span style="font-size:x-small"><span>plusStart = DateTime.Now; </span></span></p>
<p><span><span style="font-size:x-small;color:#0000ff">for</span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff">int</span></span><span style="font-size:x-small"><span> i=0 ; i &lt; upperlimit ; i ++ )</span></span></p>
<p><span style="font-size:x-small"><span>{</span></span></p>
<p><span style="font-size:x-small"><span>test += stringToAppend;</span></span></p>
<p><span style="font-size:x-small"><span>}</span></span></p>
<p><span style="font-size:x-small"><span>plusEnd = DateTime.Now; </span></span></p>
<p><span style="font-size:x-small"><span>plusElaspedlabel.Text = plusEnd.Subtract(plusStart).ToString(); </span></span></p>
<p><span style="font-size:x-small"><span>plusEndlabel.Text = plusEnd.ToString(); </span></span></p>
<p><span style="font-size:x-small"><span>plusStartlabel.Text = plusStart.ToString(); </span></span></p>
<p><span style="font-size:x-small"><span>bldrStart = DateTime.Now; </span></span></p>
<p><span><span style="font-size:x-small;color:#0000ff">for</span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff">int</span></span><span style="font-size:x-small"> j=0; j &lt; upperlimit ; j ++ )</span></p>
<p><span style="font-size:x-small">{</span></p>
<p><span style="font-size:x-small">sb.Append(stringToAppend); </span></p>
<p><span style="font-size:x-small">}</span></p>
<p><span style="font-size:x-small">bldrEnd = DateTime.Now;</span></p>
<p><span style="font-size:x-small">bldrElaspedlabel.Text = bldrEnd.Subtract(bldrStart).ToString(); </span></p>
<p><span style="font-size:x-small">bldrEndlabel.Text = bldrEnd.ToString(); </span></p>
<p><span style="font-size:x-small">bldrStartlabel.Text = bldrStart.ToString(); </span></p>
<p><span style="font-size:x-small">}</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/stringbuilder-append-vs-string-concatenation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lock Workstation through Code , Locking Workstation</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/10/lock-workstation-through-code-locking-workstation/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/10/lock-workstation-through-code-locking-workstation/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:03:48 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[.NET lockworkstation]]></category>

		<category><![CDATA[C#]]></category>

		<category><![CDATA[dllimport]]></category>

		<category><![CDATA[DllImport("user32.dll)]]></category>

		<category><![CDATA[Lockworkstation Function]]></category>

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

Reposting from prev blog
Idle mind is Devils Workshop!!
Today didnt have much tasks to work on as had already finished the task expected to go on till today evening ,hence had loads of free time to try out stuff
Found this link Lockworkstation Function and thouht of implementing it in .NET since I hated the idea of [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Reposting from prev blog</p>
<p><strong><span style="font-size:x-small;font-family:Tahoma">Idle mind is Devils Workshop!!</span></strong></p>
<p><span style="font-size:x-small;font-family:Tahoma">Today didnt have much tasks to work on as had already finished the task expected to go on till today evening ,hence had loads of free time to try out stuff<br />
</span><span style="font-size:x-small;font-family:Tahoma">Found this link </span><a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/lockworkstation.asp" ><span style="font-size:x-small;font-family:Tahoma">Lockworkstation Function</span></a><span style="font-size:x-small;font-family:Tahoma"> and thouht of implementing it in .NET since I hated the idea of </span></p>
<p><span style="font-family:Tahoma"><span style="font-size:x-small"><strong>CTRL + ALT + DEL </strong>and <strong>ENTER / Win + L </strong> to lock my workstation. </span></span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Anyways here it is the code<br />
</span><span style="font-size:x-small;font-family:Tahoma"><br />
You will need to include the Namespace<br />
</span><span style="color:#0000ff"><span style="font-size:x-small;font-family:Tahoma">using</span></span><span style="font-size:x-small;font-family:Tahoma"> System.Runtime.InteropServices;</span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Copy the following in the Code behind </span></p>
<p><span style="color:#000000"> </span></p>
<p><span style="color:#000000"><span style="font-size:x-small;font-family:Tahoma">[DllImport("user32.dll")]</span></span></p>
<p><span style="color:#000000"><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#0000ff">public</span> <span style="color:#0000ff">static</span> <span style="color:#0000ff">extern</span> <span style="color:#0000ff">void</span> LockWorkStation();</span></span></span></p>
<p><span style="color:#000000"><span style="font-size:x-small;font-family:Tahoma">And in the form load event give a call to the LockWorkStation Method we declared above.</span></span></p>
<p><span style="color:#000000"><span style="font-family:Tahoma"><span style="font-size:x-small"><span style="color:#0000ff">private</span> <span style="color:#0000ff">void</span> LockStation_Load(<span style="color:#0000ff">object</span></span></span><span style="font-family:Tahoma"><span style="font-size:x-small"> sender, System.EventArgs e)<br />
{<br />
<span style="color:#0000ff"> try</span></span></span><span style="font-size:x-small;font-family:Tahoma"><br />
{<br />
LockWorkStation();<br />
}<br />
</span><span style="font-size:x-small;font-family:Tahoma;color:#0000ff"> finally<br />
</span><span style="font-family:Tahoma"><span style="font-size:x-small"> {<br />
<span style="color:#0000ff"> this</span></span></span><span style="font-size:x-small;font-family:Tahoma">.Close();<br />
}<br />
}</span></span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Thats it you are done !! Copy the Assembly from the bin folder onto your desktop and click on it whenever you want to Lock your workstation!! </span></p>
<p><span style="font-size:x-small;font-family:Tahoma">Cheers!!</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/10/lock-workstation-through-code-locking-workstation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/09/hello-world/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/09/hello-world/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:42:28 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[

Welcome to Blog.co.in. This is your first post. Edit or delete it, then start blogging!



]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Welcome to <a href="http://blog.co.in/" >Blog.co.in</a>. This is your first post. Edit or delete it, then start blogging!</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/09/hello-world/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://shaunakpandit.blog.co.in/2008/09/06/hello-world-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2008/09/06/hello-world-2/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 17:48:28 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shaunakpandit.blog.co.in/2008/09/06/hello-world-2/</guid>
		<description><![CDATA[

Welcome to Wordpress.com. This is your first post. Edit or delete it and start blogging!



]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Welcome to <a rel="nofollow" href="http://wordpress.com/" >Wordpress.com</a>. This is your first post. Edit or delete it and start blogging!</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2008/09/06/hello-world-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Passing Values between ASP.NET Web Forms</title>
		<link>http://shaunakpandit.blog.co.in/2005/11/25/passing-values-between-aspnet-web-forms/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/11/25/passing-values-between-aspnet-web-forms/#comments</comments>
		<pubDate>Fri, 25 Nov 2005 11:01:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[ASP.NET passing values session variables query string s]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/11/25/passing-values-between-aspnet-web-forms/</guid>
		<description><![CDATA[

Many times you will come across a scenario where you will have to pass some values to the next form that you are calling. There are many such approaches of passign values in ASP.NET
I will be discussing some of them over here.
 # 1 Using Querystring
e.g
Calling form : 
private void LoadForm2_Click(object sender, System.EventArgs e)
{
string value1 [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Many times you will come across a scenario where you will have to pass some values to the next form that you are calling. There are many such approaches of passign values in ASP.NET<br />
I will be discussing some of them over here.</p>
<p><span style="color:#ff0000"><span style="font-size:xx-small"> # 1 Using Querystring</span></span></p>
<p>e.g<br />
<strong>Calling form : </strong></p>
<p>private void LoadForm2_Click(object sender, System.EventArgs e)<br />
{<br />
string value1 = &#8220;5002&#8243;;<br />
string value2 = &#8220;Shaunak Pandit&#8221;;<br />
string webForm2url = String.Empty;</p>
<p>webForm2url = &#8220;webForm2.aspx?empId=&#8221; + value1  + &#8220;&amp;empName=&#8221; + value2;<br />
Response.Redirect(webForm2url);<br />
}</p>
<p><strong>Destination form :</strong></p>
<p>private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
Label1.Text=Request.QueryString["empName"];<br />
Label2.Text=Request.QueryString["empId"];<br />
}</p>
<p><strong>Pros : </strong></p>
<ol>
<li>The most easiest and the simplest of the methods.</li>
</ol>
<ol>
<li>Doesnt have overload on the server</li>
</ol>
<p><strong>Cons</strong></p>
<ol>
<li>Values turn up in the URL in address bar, hence user can see the values being passed</li>
</ol>
<ol>
<li>User can manipulate the values in the URL</li>
</ol>
<ol>
<li>URL becomes messy (not that we care though)</li>
</ol>
<p><span style="color:#ff0000"><span style="font-size:x-small"># 2 Using Session variables</span></span></p>
<p><strong>Calling form : </strong></p>
<p>private void Button2_Click(object sender, System.EventArgs e)<br />
{<br />
string value1 = &#8220;5002&#8243;;<br />
string value2 = &#8220;Shaunak Pandit&#8221;;</p>
<p>Session["empId"]    = value1;<br />
Session["empName"]  = &#8220;Shounak Pandit&#8221;;<br />
Response.Redirect(&#8221;webform2.aspx&#8221;);<br />
}</p>
<p><strong>Destination form :</strong></p>
<p>private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
Label1.Text = Session["empName"].ToString();<br />
Label2.Text = Session["empId"].ToString();<br />
string df = Session["empgfdfdfId"].ToString();   &lt;&#8212;- <span style="color:#ff0000">A</span><br />
}<br />
catch(Exception ex)<br />
{<br />
//&#8230;..///<br />
}<br />
}</p>
<p><strong>Pros : </strong></p>
<ol>
<li>Data saved in session and will remain there till the session is closed or till its explicitly, hence no need to pass it from one page to another once loaded in session.</li>
</ol>
<ol>
<li>Since it will be available across all pages saves us the trouble for passing ti on every page.</li>
</ol>
<p><strong>Cons</strong></p>
<ol>
<li>Data stored at server side</li>
</ol>
<ol>
<li>Explicitly need to remove the data from session once your work is done with the data.</li>
</ol>
<ol>
<li>Overload on server. e.g consider a case where there are more than thousands of users accesing your site simultaneously (remeber this is just an example) and you store some data in session.Then there will be million sessions saved in your server and each of these session will have the data i.e in turn million data.</li>
</ol>
<ol>
<li>Overall a bad idea when you have multiple simulatneous users.</li>
</ol>
<p><span style="color:#ff0000"><br />
<span style="font-size:x-small"># 3 Using Server.Trasnfer and Context object</span></span></p>
<p><strong>Calling form : </strong><br />
Add a property in the calling form</p>
<p>public string ID<br />
{<br />
get<br />
{<br />
return empIdTextbox.Text;  <span style="color:#ff0000">// This need not be a control value it can also contain a member variable.<br />
</span> }<br />
}</p>
<p>private void Context_Click(object sender, System.EventArgs e)<br />
{<br />
Server.Transfer(&#8221;webform2.aspx&#8221;);<br />
}</p>
<p><strong>Destination form :</strong></p>
<p>private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
//create instance of source web form.</p>
<p>WebForm1 formCallee;<br />
//get reference to current handler instance.</p>
<p>formCallee =(WebForm1)Context.Handler;</p>
<p>//Call the property to retrieve the value.<br />
Label1.Text=formCallee.ID;<br />
}<br />
catch(Exception ex)<br />
{<br />
string errMessage = ex.Message;<br />
}<br />
}</p>
<p><span style="color:#ff0000"><br />
<span style="font-size:x-small">#4 Using Server.Trasnfer and preserve form attribute</span></span></p>
<p>Server.Transfer(&#8221;webform2.aspx&#8221;, true);    &lt;&#8211; Note the second parameter to Server.Transfer is set to true this indicates that the form members are not to be discarded.</p>
<p>NOTE : There is a bug related to ASP.NET You can read stuff abt the bug at <a rel="nofollow" href="http://blogs.wwwcoder.com/shaunakp/archive/2005/11/21/12636.aspx"  target="_blank">Server.Trasfer Bug post</a></p>
<p><strong>Calling form : </strong></p>
<p><strong>Destination form :</strong></p>
<p>private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
Label1.Text = Label1.Text = Request.Form["empIdTextbox"] ;<br />
}<br />
catch(Exception ex)<br />
{<br />
string errMessage = ex.Message;<br />
}<br />
}</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/11/25/passing-values-between-aspnet-web-forms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#34;The View State is invalid for this page and might be corrupted &#34; Server.Transfer with preserveForm attribute = true</title>
		<link>http://shaunakpandit.blog.co.in/2005/11/21/the-view-state-is-invalid-for-this-page-and-might-be-corrupted-servertransfer-with-preserveform-attribute-true/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/11/21/the-view-state-is-invalid-for-this-page-and-might-be-corrupted-servertransfer-with-preserveform-attribute-true/#comments</comments>
		<pubDate>Mon, 21 Nov 2005 13:59:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[&quot; Server.Transfer]]></category>

		<category><![CDATA[and might be corrupted]]></category>

		<category><![CDATA[for this page]]></category>

		<category><![CDATA[is invalid]]></category>

		<category><![CDATA[View State]]></category>

		<category><![CDATA[with preserveForm attribute = true]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/11/21/the-view-state-is-invalid-for-this-page-and-might-be-corrupted-servertransfer-with-preserveform-attribute-true/</guid>
		<description><![CDATA[

Invalid viewstate viewstate corrupted ?
Ever got this error and thought what you did to deserve this ? since nowhere have you played with the viewstate of the page&#8230;
while all you did was use the statement : Server.Trasnfer(PageURL, true);
well here is the answer
Thats b&#8217;coz the viewstate is invalid in the second page and how so ? [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Invalid viewstate viewstate corrupted ?<br />
Ever got this error and thought what you did to deserve this ? since nowhere have you played with the viewstate of the page&#8230;</p>
<p>while all you did was use the statement : Server.Trasnfer(PageURL, <span style="color:#ff0000">true</span>);</p>
<p>well here is the answer</p>
<p>Thats b&#8217;coz the viewstate is invalid in the second page and how so ? well lets start with what does Server.Trasfer() with preserveForm attribute set to true does.</p>
<p>The statement is going to transfer to the new page and keep the form members intact so that you can access it from the next page.</p>
<p>Which in turns means every control on the form will be accessible from the second form and since viewstate of a page is stored in a encrypted format in a hidden textbox on the form it will also</p>
<p>be accessible and present in the second form.</p>
<p>Now here lies the problem.</p>
<p>The second form will contain its own viewstate and now since we have used preserve form = true the viewstate of the previous form will also be present in the second form which is a<br />
complete nono since how can one page have 2 viewstates.This is the reason why we get the above error.</p>
<p><span style="color:#ff0000">Note : If you are running your application on a web farm then the error might also be because the validation key used for validating the viewstate is different for each<br />
server in the web farm.</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/11/21/the-view-state-is-invalid-for-this-page-and-might-be-corrupted-servertransfer-with-preserveform-attribute-true/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Surviving</title>
		<link>http://shaunakpandit.blog.co.in/2005/11/11/surviving/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/11/11/surviving/#comments</comments>
		<pubDate>Fri, 11 Nov 2005 13:47:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[reading metadata]]></category>

		<category><![CDATA[reflection]]></category>

		<category><![CDATA[Tlbinf32.dll]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/11/11/surviving/</guid>
		<description><![CDATA[

posting something to prove my existence in this blogosphere 
The project i am working on is a great learning thing for me working on reflection
Well to give a brief idea i have to create a utility which will compare 2 versions of a set of dlls and find the version compatibility issues arising out of [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>posting something to prove my existence in this blogosphere <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
The project i am working on is a great learning thing for me working on reflection<br />
Well to give a brief idea i have to create a utility which will compare 2 versions of a set of dlls and find the version compatibility issues arising out of it and make a report from the compatibility issues.<br />
This is done by going through the members of a dll and populating a object model.<br />
and later on comparing both the object models version 2.X and version 3.X to find the compatibility issues.</p>
<p>To do that have to use</p>
<ul>
<li>Reflection for reading .Net assemblies</li>
</ul>
<ul>
<li>Tlbinf32.dll for reading COM files</li>
</ul>
<p>Reflection was cool with loads of example to refer to on net and also the great MSDN<br />
but the typle lib information dll tlibinf32.dll took away my sleep since</p>
<ul>
<li>Its no longer supported by MS</li>
</ul>
<ul>
<li>The help file that i found referred to some code samples which were written for the previous release of tlbinf32.dll</li>
</ul>
<p>just my luck&#8230;</p>
<p>so it was all RnD for the tlbinf32.dll for me. but finally got it done<br />
will publish a post soon with some basic examples of tlbinf32.dll over here so that others dont have to go through the ordeal i went through.</p>
<p>ciao for now</p>
<p>Shaunak P</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/11/11/surviving/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ASP.NET 2.0 Internals</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/27/aspnet-20-internals/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/27/aspnet-20-internals/#comments</comments>
		<pubDate>Thu, 27 Jan 2005 13:44:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[ASP.NET internals]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/27/aspnet-20-internals/</guid>
		<description><![CDATA[

Posting after a long long time have been really busy with somethings anyways here is a good article on ASP.NET 2.0 Internals
 Good article on ASP.NET 2.0 Internals
Explains the details of ASP.NET 2.0
Happy Reading !!!!



]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Posting after a long long time have been really busy with somethings anyways here is a good article on ASP.NET 2.0 Internals</p>
<p><a rel="nofollow" href="http://msdn.microsoft.com/asp.net/whidbey/default.aspx?pull=/library/en-us/dnvs05/html/internals.asp"  target="_blank"> Good article on ASP.NET 2.0 Internals</a></p>
<p>Explains the details of ASP.NET 2.0<br />
Happy Reading !!!!</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/27/aspnet-20-internals/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: ShortCuts for Coding</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding-2/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:15:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Visual studio IDE shortcuts]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/visual-studio-ide-shortcuts-for-coding/</guid>
		<description><![CDATA[

Convert selected code to lower case - Ctrl+U
Convert selected code  to upper case - Ctrl+Shift+U
Comment selected code - Ctrl+K, Ctrl+C
Uncomment selected code - Ctrl+K, Ctrl+U
WordWrap
Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Convert selected code to lower case - Ctrl+U<br />
Convert selected code  to upper case - Ctrl+Shift+U<br />
Comment selected code - Ctrl+K, Ctrl+C<br />
Uncomment selected code - Ctrl+K, Ctrl+U</p>
<p>WordWrap</p>
<p>Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to the right?<br />
Well theres good news VS IDE provides a toggle shortcut which will put the line contents beyond the screen width on the next line and back onto the same line</p>
<p>ShortCut Key : -   Ctrl + r + r   (toggles)</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE : ShortCuts for Coding</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:15:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Visual studio IDE shortcuts]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/visual-studio-ide-shortcuts-for-coding/</guid>
		<description><![CDATA[

Convert selected code to lower case - Ctrl+U
Convert selected code  to upper case - Ctrl+Shift+U
Comment selected code - Ctrl+K, Ctrl+C
Uncomment selected code - Ctrl+K, Ctrl+U
WordWrap
Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Convert selected code to lower case - Ctrl+U<br />
Convert selected code  to upper case - Ctrl+Shift+U<br />
Comment selected code - Ctrl+K, Ctrl+C<br />
Uncomment selected code - Ctrl+K, Ctrl+U</p>
<p>WordWrap</p>
<p>Have a line of code which goes beyond the screen width? but you need to keep it that way and the only alternative is to scroll all the way to the right?<br />
Well theres good news VS IDE provides a toggle shortcut which will put the line contents beyond the screen width on the next line and back onto the same line</p>
<p>ShortCut Key : -   Ctrl + r + r   (toggles)</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/visual-studio-ide-shortcuts-for-coding/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: Shortcut Letting .Net remind you of the TODO task in your code</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code-2/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:06:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[IDE remind]]></category>

		<category><![CDATA[Visual Studio IDE Tips &amp; tricks:]]></category>

		<category><![CDATA[Visual studio remind TODO task]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[Visual studio TODO]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code/</guid>
		<description><![CDATA[

Letting .Net remind you of the TODO task in your code
.Net IDE provides a mechanism of keeping track of all the TODO tasks in your code.This is done through the Task window
Using the “TODO“ Keyword we can tell .NET IDE to remind us about this TODO task in the task window
HOWTO : - simply add [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Letting .Net remind you of the TODO task in your code</p>
<p>.Net IDE provides a mechanism of keeping track of all the TODO tasks in your code.This is done through the Task window<br />
Using the “TODO“ Keyword we can tell .NET IDE to remind us about this TODO task in the task window</p>
<p>HOWTO : - simply add a comment to your code that starts with the TODO keyword. It will automatically be added to your existing Task list.</p>
<p>E.g : -     // TODO: Need to optimise the AuthoriseUser Method.</p>
<p>To view the Task list (ShortCut Key :  Ctrl+Alt+K ):-</p>
<p>select View &gt; Other Windows &gt; Task List from the menu .<br />
The Task list often filters its contents, so it displays only certain information. To view everything, right-click on your list and select All Tasks &gt; All.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Letting .Net remind you of the TODO task in your code</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:06:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[IDE remind]]></category>

		<category><![CDATA[Visual studio remind TODO task]]></category>

		<category><![CDATA[Visual studio TODO]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code/</guid>
		<description><![CDATA[

Letting .Net remind you of the TODO task in your code
.Net IDE provides a mechanism of keeping track of all the TODO tasks in your code.This is done through the Task window
Using the “TODO“ Keyword we can tell .NET IDE to remind us about this TODO task in the task window
HOWTO : - simply add [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Letting .Net remind you of the TODO task in your code</p>
<p>.Net IDE provides a mechanism of keeping track of all the TODO tasks in your code.This is done through the Task window<br />
Using the “TODO“ Keyword we can tell .NET IDE to remind us about this TODO task in the task window</p>
<p>HOWTO : - simply add a comment to your code that starts with the TODO keyword. It will automatically be added to your existing Task list.</p>
<p>E.g : -     // TODO: Need to optimise the AuthoriseUser Method.</p>
<p>To view the Task list (ShortCut Key :  Ctrl+Alt+K ):-</p>
<p>select View &gt; Other Windows &gt; Task List from the menu .<br />
The Task list often filters its contents, so it displays only certain information. To view everything, right-click on your list and select All Tasks &gt; All.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/letting-net-remind-you-of-the-todo-task-in-your-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio IDE Tips &#38; tricks: shortcuts to code snippets Adding frequently used code to toolbarVisual Studio IDE Tips &#38; tricks:</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar-2/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar-2/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:05:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Frequently used code]]></category>

		<category><![CDATA[Visual studio IDE store code snippets]]></category>

		<category><![CDATA[Visual studio shortcuts]]></category>

		<category><![CDATA[Visual studio Toolbox code]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/adding-frequently-used-code-to-toolbar/</guid>
		<description><![CDATA[

Storing Often-Used Code in the Toolbox
If there is some often-used code and templates that you repeatedly have to use across various code behinds what would you usually do ?
Copy that code snippet somewhere , say &#8230; in notepad or something and everytime you need it you will simply copy it back into the code behind. [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Storing Often-Used Code in the Toolbox</p>
<p>If there is some often-used code and templates that you repeatedly have to use across various code behinds what would you usually do ?<br />
Copy that code snippet somewhere , say &#8230; in notepad or something and everytime you need it you will simply copy it back into the code behind.  Well thats the most obvious thing to do, but did you know that VS IDE allows us to store code snippets into the toolbar for later use??</p>
<p>HowTO :  - Simply drag and drop your code straight onto one of the toolbox tabs, such as the General tab or create your own tab . When you need to use it again, simply drag and drop back into your code window.These code snippets will persist there across projects.Hence making our job easier.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding frequently used code to toolbar</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 09:05:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Visual Studio Tips and Tricks]]></category>

		<category><![CDATA[Code Snippets]]></category>

		<category><![CDATA[Frequently used code]]></category>

		<category><![CDATA[Visual studio IDE store code snippets]]></category>

		<category><![CDATA[Visual studio Toolbox code]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/04/adding-frequently-used-code-to-toolbar/</guid>
		<description><![CDATA[

Storing Often-Used Code in the Toolbox
If there is some often-used code and templates that you repeatedly have to use across various code behinds what would you usually do ?
Copy that code snippet somewhere , say &#8230; in notepad or something and everytime you need it you will simply copy it back into the code behind. [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Storing Often-Used Code in the Toolbox</p>
<p>If there is some often-used code and templates that you repeatedly have to use across various code behinds what would you usually do ?<br />
Copy that code snippet somewhere , say &#8230; in notepad or something and everytime you need it you will simply copy it back into the code behind.  Well thats the most obvious thing to do, but did you know that VS IDE allows us to store code snippets into the toolbar for later use??</p>
<p>HowTO :  - Simply drag and drop your code straight onto one of the toolbox tabs, such as the General tab or create your own tab . When you need to use it again, simply drag and drop back into your code window.These code snippets will persist there across projects.Hence making our job easier.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/04/adding-frequently-used-code-to-toolbar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tsunami Help / Tsunami Relief fund / Tsunami where to donate</title>
		<link>http://shaunakpandit.blog.co.in/2005/01/03/tsunami-help-tsunami-relief-fund-tsunami-where-to-donate/</link>
		<comments>http://shaunakpandit.blog.co.in/2005/01/03/tsunami-help-tsunami-relief-fund-tsunami-where-to-donate/#comments</comments>
		<pubDate>Mon, 03 Jan 2005 15:12:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2005/01/03/tsunami-help-tsunami-relief-fund-tsunami-where-to-donate/</guid>
		<description><![CDATA[

Tsunami,
 Always thought that India was safe from the affects of Tsunami was a shock to hear abt the Wave hitting the southern India and having such a major impact.
   Hope many people donate money to tsunami relief funds however small it may be the point to remember here is that even a [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Tsunami,</p>
<p> Always thought that India was safe from the affects of Tsunami was a shock to hear abt the Wave hitting the southern India and having such a major impact.<br />
<br />   Hope many people donate money to tsunami relief funds however small it may be the point to remember here is that <em><strong>even a amount negligible to us might make a big difference to some of the affected people there.</strong> </em></p>
<p>In case you want to have a look at how it was here is a link to some of the <strong>Tsunami videos </strong> <a rel="nofollow" href="http://manish.revise.org/archives/2004/12/30/tsunami-videos" >Tsunami videos</a></p>
<hr />
<br />The following has been extracted from <a rel="nofollow" href="http://tsunamihelp.blogspot.com" >Tsunami Updates site</a><br />
<br />
<hr />
<br /><strong>In Pune :</strong></p>
<p>a] Money in the form of cheque / demand draft contributions is an URGENT need. The payment could be made favouring : <strong>&#8216;Indian Red Cross Society&#8217; </strong>and dropped at Red Cross office, Atur Sangtani Red Cross House, M.G.Road, Pune 411 001 OR with Ms.Vijaya Moorthy at 3 Silver Classic Apartments, S.R.P.F.Road, Wanowrie, Pune 411 040. You can contact <strong>Pune phone nos. 2613 0031 / cell no.98220 04752 </strong>for contributions. Red Cross donations are exempted under Sec.80-G of the Income Tax Act. Please mention your name /address/phone no. on a slip of paper attached to your DD/cheque.</p>
<p>b] <strong>MAITRI</strong>, an NGO, working in the affected areas of Tamil Nadu is <strong>sending out food items like rice, dal, mineral water bottles and dry milk powder eg.Amulya (1 kg.packs) on 7th January</strong>. Contributions of this nature can be made. Please contact Ms. Vinita Tatke at <strong>mobile no.94225 21702 OR vinitat@vsnl.com.</strong></p>
<p>c] Doctors / psychologists ( only ) who can speak MALAYALAM are required for the Red Cross team to be sent out to affected areas of Kerala for relief work. Contact Prof.R V Kulkarni at phone no. 2613 0331 / Red Cross office 2613 0031 / Vijaya Moorthy at vmoorthy@rediffmail.com.</p>
<p>The above phone nos. pertaining to Pune. Those calling up from other parts of the country need to prefix 020 for landlines and 0 for mobile nos.<br />
<br />
<hr />
<br />For more details regarding the above visit <a rel="nofollow" href="http://tsunamihelp.blogspot.com" >Tsunami Updates site</a><br />
<br />
<hr />
<p>Here are some links to various Relief funds<br />
<br />Times relief Fund : - <a rel="nofollow" href="http://shopserve.indiatimes.com/timesfoundation/registration.html" >IndiaTimes Registration</a></p>
<p><a rel="nofollow" href="http://timesfoundation.indiatimes.com/articleshow/973072.cms" >TimesFoundation info</a></p>
<p><a rel="nofollow" href="http://tsunamihelp.blogspot.com/" > Tsunami Information Updates + some international organisation where you can Donate</a></p>
<p><a rel="nofollow" href="http://www.indianredcross.org" >Indian Red Cross &lt;/a<br />
<br />&gt;<br />
<br /><a rel="nofollow" href="http://pmindia.nic.in/formpmnrf.htm" > Info on Prime Ministers Fund </a>  The best fund to donate money is the Prime Ministers fund</p>
<p><a rel="nofollow" href="http://in.rediff.com/news/2004/dec/27tsunami8.htm" > Some info on where to donate on rediff</a></p>
<p>Shaunak Pandit<br />
</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2005/01/03/tsunami-help-tsunami-relief-fund-tsunami-where-to-donate/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First Web Service ,XSLT XML Transform</title>
		<link>http://shaunakpandit.blog.co.in/2004/12/16/first-web-service-xslt-xml-transform/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/12/16/first-web-service-xslt-xml-transform/#comments</comments>
		<pubDate>Thu, 16 Dec 2004 19:40:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Transform]]></category>

		<category><![CDATA[Web Service]]></category>

		<category><![CDATA[XML]]></category>

		<category><![CDATA[XSLT]]></category>

		<category><![CDATA[XSLT XML transform]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/12/16/first-web-service-xslt-xml-transform/</guid>
		<description><![CDATA[

Worked on my first Web Service today, wasn&#8217;t much of a complex web service but I got some idea about WebServices and their working.
Was a simulation of a XML returned by a third party tool retrieving records from DB2,
The objective involved getting rid of the extra nodes (data) returned in the XML from the 3rd party [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-family:Tahoma;font-size:x-small">Worked on my first Web Service today, wasn&#8217;t much of a complex web service but I got some idea about WebServices and their working.<br />
Was a simulation of a XML returned by a third party tool retrieving records from DB2,<br />
The objective involved getting rid of the extra nodes (data) returned in the XML from the 3rd party and just passing on the XML data recognised by the consumer application as a valid object.This was achieved by making my transformer app sit in between the Webservice and the consumer app.</span></p>
<p><span style="font-family:Tahoma;font-size:x-small">The best option in this case was transforming the XML output from the 3rd party tool into XML recognised by the consumer application using XSLT as it allowed us to change the nodes (data) passed on to the consumer app by just changing the <span style="color:#ffa500">XLS </span>file and not recompiling the whole of the <span style="color:#ffa500">transformer</span> app (incase we had written a custom class to take care of parsing the output XML and returning only selected number of fields).</span></p>
<p><span style="font-family:Tahoma;font-size:x-small"><span style="color:#006400">Will post a code snippet on the transformation code a bit later</span>.Now I am almost done with the Cruisenet Doc ,will be posting that in a while here (by tomorrow most probably) and ofcourse the Nant and Nunit doc need to be completed and posted too <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/12/16/first-web-service-xslt-xml-transform/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sending Meeting Request programmatically</title>
		<link>http://shaunakpandit.blog.co.in/2004/12/09/meeting-request/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/12/09/meeting-request/#comments</comments>
		<pubDate>Thu, 09 Dec 2004 04:05:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[meeting request]]></category>

		<category><![CDATA[meeting request through code]]></category>

		<category><![CDATA[programmatically send meeting request]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/12/09/meeting-request/</guid>
		<description><![CDATA[

Getting that Meeting request object assembly that I wrote to work was the easy part , making it configurable with a web application was the headache.
To keep the consumer trasnperant from the internals of how I am creating the meeting request through code and sending it to the attendee needed a heck of time especially [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Getting that Meeting request object assembly that I wrote to work was the easy part , making it configurable with a web application was the headache.</p>
<p>To keep the consumer trasnperant from the internals of how I am creating the meeting request through code and sending it to the attendee needed a heck of time especially since I needed the current working directory for temporary storage of the ICalendar file.<br />
Hence tried out the <a rel="nofollow" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiodirectoryclassgetcurrentdirectorytopic.asp"  target="_blank">Directory.GetCurrentDirectory()</a> method to get the CWD from the system but instead got c:\windows\system32.  that&#8217;s right you read it right &#8220;c:\windows\system32&#8243;<br />
Was baffled by the result and googled a bit searching here and there for the answer to the mysterious result.<br />
and was thinking abt the connection between the returned directory and my application when it struck me<br />
my project was an Web Application  and hence it was being executed by the ASPnet_WP.exe which inturn was being created by Inetinfo.Exe (IIS) which resides in the path and hence the return path.</p>
<blockquote><p>Moral of the story :-  Analyse the situation before looking for solution</p></blockquote>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/12/09/meeting-request/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nant Solution task or nant Exec ??</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/27/nant-solution-task-or-nant-exec/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/27/nant-solution-task-or-nant-exec/#comments</comments>
		<pubDate>Sat, 27 Nov 2004 20:08:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Build integrators]]></category>

		<category><![CDATA[build process]]></category>

		<category><![CDATA[Nant]]></category>

		<category><![CDATA[Nant build tool]]></category>

		<category><![CDATA[Nant exec]]></category>

		<category><![CDATA[Nant solution task]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/27/nant-solution-task-or-nant-exec/</guid>
		<description><![CDATA[

Had to revert back to exec task of nant and use the Devenv.exe to build the solution as I had some weird assembly referencing problems.
While building the solution it was looking for the references one level above the directory containing the assemblies
couldn&#8217;t figure out what the problem was  since I was short on time,had [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p>Had to revert back to <span style="color:#000080">exec task</span> of nant and use the <strong><span style="text-decoration:underline">Devenv.exe </span></strong>to build the solution as I had some weird assembly referencing problems.</p>
<p>While building the solution it was looking for the references one level above the directory containing the assemblies</p>
<p>couldn&#8217;t figure out what the problem was <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> since I was short on time,had no option but to use the exec task and directly build the project solution, it solved my problem but I still need to figure out a solution to my earlier problem of wrong references</p>
<p>using Devenv solved the problem but not sure if that&#8217;s one of the accepted approach and whether I should use an *external exe to build the solution than find a solution to the problem arisen out of using the solution task provide by nant</p>
<p><span style="color:#800000"></p>
<blockquote><p>Am writing an article on howto implement Cruisenet and Nant in continous integration which will include the steps to follow to setup cruisenet and nant on your build server and how to implement the integration.</p>
<p>Hope this article will solve the problems faced by first timers and save a lot of their time from doing R n D <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p></span></p>
<p>* By external I mean a .exe out of nant tasks , nant might be internally using Devenv.exe to compile the projects who knows.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/27/nant-solution-task-or-nant-exec/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nant project is an enterprise template project The remote server returned an error: (403) Forbidden.</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/26/nant-project-is-an-enterprise-template-project-the-remote-server-returned-an-error-403-forbidden/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/26/nant-project-is-an-enterprise-template-project-the-remote-server-returned-an-error-403-forbidden/#comments</comments>
		<pubDate>Fri, 26 Nov 2004 11:35:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Build integrators]]></category>

		<category><![CDATA[Build tool]]></category>

		<category><![CDATA[Nant]]></category>

		<category><![CDATA[Nant build integrator]]></category>

		<category><![CDATA[Nant project is an enterprise template project]]></category>

		<category><![CDATA[Nant project is an enterprise template project The remo]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/26/nant-project-is-an-enterprise-template-project-the-remote-server-returned-an-error-403-forbidden/</guid>
		<description><![CDATA[


Starting solution build. BUILD FAILED Error checking whether &#8216;http://localhost/ProjectDirectory/projectname.csproj&#8217;
is an enterprise template project. The remote server returned an error:
(403) Forbidden. Total time: 0.3 seconds. 
that&#8217;s the error that I got when the nant build script tried to build the Web Project I tried out diff stuff but didn&#8217;t succeed for quite some time maybe was [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<blockquote><p><span style="font-family:trebuchet ms"></p>
<blockquote><p><span style="font-size:85%;font-family:trebuchet ms">Starting solution build. BUILD FAILED Error checking whether &#8216;http://localhost/ProjectDirectory/projectname.csproj&#8217;</p>
<p>is an enterprise template project. The remote server returned an error:</p>
<p>(403) Forbidden. Total time: 0.3 seconds. </span></p></blockquote>
<p></span><span style="font-size:85%;font-family:trebuchet ms">that&#8217;s the error that I got when the nant build script tried to build the <strong>Web </strong>Project I tried out diff stuff but didn&#8217;t succeed for quite some time maybe was missing something important,dint know what to do then something struck me, when we define a virtual directory we have diff options. </span></p></blockquote>
<p><span style="font-size:85%;font-family:trebuchet ms">And one of the important ones there is &#8220;script source access&#8221; especially in our case as we are trying to access the files in the virtual directory and build them using nant scripts</span></p>
<p><span style="font-family:trebuchet ms"><span style="font-size:85%">The reason for this happening is that IIS has a strict access setting for the virtual directories that it hosts and it doesn&#8217;t allow any scripts to access the files in the virtual directory&#8217;s physical folder and hence the message <strong><em>The remote server returned an error: (403) Forbidden </em></strong></span></span></p>
<p><strong><em></em></strong></p>
<p><span style="font-size:85%;font-family:trebuchet ms">one of the way to solve this problem is by checking the option of script source access in the virtual directories properties</span></p>
<p><a rel="nofollow" href="http://photos1.blogger.com/img/261/2461/640/source_script.1.jpg" ><span style="font-size:85%;font-family:trebuchet ms"><img style="margin:2px" src="http://photos1.blogger.com/img/261/2461/320/source_script.1.jpg" border="0" alt="" /></span></a></p>
<p>Here is the place where you can check the option to allow script access to your code files for getting rid of the Nant forbidden error</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/26/nant-project-is-an-enterprise-template-project-the-remote-server-returned-an-error-403-forbidden/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nant Solution build Vs Individual build ?</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/25/nant-solution-build-vs-individual-build/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/25/nant-solution-build-vs-individual-build/#comments</comments>
		<pubDate>Thu, 25 Nov 2004 14:40:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Build integrators]]></category>

		<category><![CDATA[howto build project using Nant]]></category>

		<category><![CDATA[Nant build tool]]></category>

		<category><![CDATA[Nant Individual build]]></category>

		<category><![CDATA[Nant Solution build]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/25/nant-solution-build-vs-individual-build/</guid>
		<description><![CDATA[

Building the invidiual sub projects first and then referencing the compiled assemly (in build folder ) in the main project turned out to be a bad idea. After completing the build thought of testing (fortunately!! ) it for build success and a build failure.
For the failure I removed a much needed reference (one of the [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:85%;font-family:trebuchet ms">Building the invidiual sub projects first and then referencing the compiled assemly (in build folder ) in the main project turned out to be a bad idea. After completing the build thought of testing (fortunately!! ) it for build success and a build failure.</span></p>
<p>For the failure I removed a much needed reference (one of the sub projects) from the main project and then checked in the project file and was expecting a build fail email from ccnet (CruiseNet) but was baffled to see a success mail instead.</p>
<p>A little bit of thinking on it got me to the much obvious reasons (was stupid of me not to have foreseen that) the process I was following was of building the sub-projects and pushing the compiled sub project assembly in the build folder and then the project would reference the sub project assembly from the build folder.</p>
<p>The problem was even though I had removed the reference from the main project file, my compiling of the sub project would automatically push the assembly in the build folder</p>
<p>and since we have to hard code the references it would find it and give a successful build even though it was a failure.</p>
<p>moral :- Use a solution task and build the solution instead of individual projects to automatically detect the references in the project.</p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/25/nant-solution-build-vs-individual-build/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vulnerability in Microsoft ASP.NET</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/24/vulnerability-in-microsoft-aspnet/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/24/vulnerability-in-microsoft-aspnet/#comments</comments>
		<pubDate>Wed, 24 Nov 2004 10:22:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[ASP.NET vulnerability]]></category>

		<category><![CDATA[view secured content]]></category>

		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/24/vulnerability-in-microsoft-aspnet/</guid>
		<description><![CDATA[

Just came across a stale news on net posted in oct sometime anyways here it is :- 
Microsoft has posted guidance that protects against a reported vulnerability in all versions of ASP.NET that could allow a Web site visitor to view secured content by using specially crafted requests to a Web server. For more information [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:85%;font-family:trebuchet ms">Just came across a stale news on net posted in oct sometime anyways here it is :- </span></p>
<p><span style="font-size:85%;font-family:trebuchet ms">Microsoft has posted guidance that protects against a reported vulnerability in all versions of ASP.NET that could allow a Web site visitor to view secured content by using specially crafted requests to a Web server. For more information </span><a rel="nofollow" href="http://www.microsoft.com/security/incident/aspnet.mspx" ><span style="font-size:85%">http://www.microsoft.com/security/incident/aspnet.mspx</span></a></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/24/vulnerability-in-microsoft-aspnet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing Page Title on the fly ASP.NET</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/19/changing-page-title-on-the-fly-aspnet/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/19/changing-page-title-on-the-fly-aspnet/#comments</comments>
		<pubDate>Fri, 19 Nov 2004 12:57:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Access Page title asp.net]]></category>

		<category><![CDATA[Access page title webform]]></category>

		<category><![CDATA[Accessing page title ASP.NET]]></category>

		<category><![CDATA[ASP.NET page title change]]></category>

		<category><![CDATA[Change page title on the fly ASP.NET]]></category>

		<category><![CDATA[Changing Page Title on the fly ASP.NET]]></category>

		<category><![CDATA[dynamically change page title]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/19/changing-page-title-on-the-fly-aspnet/</guid>
		<description><![CDATA[

If I asked you to 


change the title of your Web form
dynamically 

, where would you look ??
you&#8217;d be forgiven for looking for a &#8220;title&#8221; or &#8220;text&#8221; property somewhere. The problem is, that mysterious property doesn&#8217;t exist no prizes for guessing y!!.
Here&#8217;s howto.

Step 1 &#62;&#62; switch to the HTML view on your Web form. Near [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:85%">If I asked you to <span style="color:#ff0000"><em></em></span></span></p>
<p><span style="font-size:85%"><span style="color:#ff0000"><em></em></span></span><span style="font-size:85%"><span style="color:#ff0000"><em><br />
</em></p>
<blockquote><p><span style="color:#ff0000"><em><em><strong>change the title of your Web form</p>
<p>dynamically</strong></em></em></span><em> </em></p></blockquote>
<p></span></span></p>
<p>, where would you look ??</p>
<p><span style="font-size:85%">you&#8217;d be forgiven for looking for a &#8220;title&#8221; or &#8220;text&#8221; property somewhere. The problem is, that mysterious property doesn&#8217;t exist no prizes for guessing y!!.</span></p>
<p><span style="font-size:85%">Here&#8217;s howto.</span></p>
<p><span style="font-size:85%"></p>
<p>Step 1 &gt;&gt; switch to the HTML view on your Web form. Near the top of your page, you&#8217;ll see the title tag, looking something like : </span></p>
<p><span style="color:#ff0000"><span style="font-size:85%">&#8221; WebForm1 &#8221; . </span></p>
<p></span><span style="font-size:85%">Replace this with <span style="color:#ff0000">&#8221;&#8217;</span>.</span></p>
<p><span style="font-size:85%"><em><br />
</em></p>
<blockquote><p><span style="font-size:85%"><em><em>The quotes are just added to get rid of the parser error i had</p>
<p>becoz of having a original Title tag in the post and plus one more in my code</p>
<p>sample , the code is without the quotes</em></em></span></p></blockquote>
<p></span></p>
<p><span style="font-size:85%">Here, you&#8217;re creating a title tag that runs on the server and has an ID, meaning you can manipulate it in code. </span></p>
<p><span style="font-size:85%">ie add a runat server attribute and an ID to the tag</span></p>
<p>Step 2 &gt;&gt; switch back to design mode; then, open up the code window behind your form. This declares the server title tag you&#8217;ve just added:</p>
<p><span style="color:#000099"><em>protected System.Web.UI.HtmlControls.HtmlGenericControl pageTitle;</em> </span></p>
<p>so that its accessible in ur code behind.</p>
<p>Step 3 &gt;&gt; changing the page text. Behind the Load event of your page, or in response to some similar event, set the InnerText property of the PageTitle tag to your new page title. Here&#8217;s my sample code:</p>
<p><span style="color:#000099"><em>PageTitle.InnerText = &#8220;Welcome! - Last Updated 20/05/2003&#8243;;</em></span></p>
<p>And that&#8217;s it Presto —one line of code and your page title has changed.</p>
<p><span style="font-size:85%">P.S One thing to note is that :- the moment you make any changes in the UI of the ASPX Page Visual studio gets rid of the </span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/19/changing-page-title-on-the-fly-aspnet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>To Post or Not to Post</title>
		<link>http://shaunakpandit.blog.co.in/2004/11/18/to-post-or-not-to-post/</link>
		<comments>http://shaunakpandit.blog.co.in/2004/11/18/to-post-or-not-to-post/#comments</comments>
		<pubDate>Thu, 18 Nov 2004 17:05:00 +0000</pubDate>
		<dc:creator>shaunak pandit</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[70-229]]></category>

		<category><![CDATA[70-320]]></category>

		<category><![CDATA[MCAD]]></category>

		<category><![CDATA[MCSD]]></category>

		<category><![CDATA[Microsoft exam]]></category>

		<category><![CDATA[Microsoft exam webform]]></category>

		<category><![CDATA[Microsoft Exams]]></category>

		<guid isPermaLink="false">http://shaunakpandit.wordpress.com/2004/11/18/to-post-or-not-to-post/</guid>
		<description><![CDATA[

What a better way to start my post than to post the Microsoft Exam thots here 
Well, to tell the truth the thot of giving a MCAD exam gave jitters to me till the last moment ,even at the Prometric center while i was abt to click on the start button of the exam.
Had wondered [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start -->
<div class='KonaBody'>
<p><span style="font-size:85%">What a better way to start my post than to post the Microsoft Exam thots here <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Well, to tell the truth the thot of giving a MCAD exam gave jitters to me till the last moment ,even at the Prometric center while i was abt to click on the start button of the exam.</span></p>
<p>Had wondered earlier if the grey matter up there was in shape to handle the heavy project work loads, the studies inbetween project breaks but looks like there is something still up there <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> as i passed out with flying colors was a bit of surprise to me too as was expecting arnd 800&#8217;s ,but i guess the MSPress,kalani &amp; Wrox books had prepared me for the exam &amp; plus the missing out on parties with frnds and ditching outings with frnds to study paid out in the end <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<blockquote><span style="font-size:85%">Ofcourse dont want to let go of the Tempo and plan to give the</p>
<p>70-320 and 70-229 exam soon </span></p>
<p><span style="font-size:85%">Marking this in a block quote so that it will always be a bold</p>
<p>statement for me whenever i read this post <img src='http://shaunakpandit.blog.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p></blockquote>
<p><span style="font-size:85%">lets c!!!!</span></p>

<!-- google_ad_section_end -->
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaunakpandit.blog.co.in/2004/11/18/to-post-or-not-to-post/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Feed was loaded from a cached file -->