<?xml version="1.0" ?>

<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Vikram's Blog - Vikram's look at asp.net and its related technology</title>
    <subtitle>The Weblog of Vikram</subtitle>
    <author>
        <name>Vikram</name>
    </author>
    <id>http://www.vikramlakhotia.com/</id>
    <updated>2010-03-13T15:22:42+05:30</updated>
    <link rel="self" href="http://www.vikramlakhotia.com/Services/Atom.aspx" />
    <rights>Copyright (c) 2006 Vikram Lakhotia</rights>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=373</id>
    <title>HTML Encoded Code Expression</title>
    <updated>2010-02-22T10:46:25+05:30</updated>
    <published>2010-02-22T10:46:25+05:30</published>
    <link rel="alternate"  href="/HTML_Encoded_Code_Expression.aspx" />
    <category term="Asp.Net 4.0" />
    <summary type="html">&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;Hi,&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;BR&gt;One of the new features in Asp.Net 4.0 is the inclusion of Code expressions which are HTML encoded by default. IN Asp.Net the code expression by default does not encode any text and hence it can leave the chance of Cross Site scripting attack. &lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;BR&gt;In Asp.Net 4.0 we can now write expression which will get encoded by itself. For writing HTML encoded expression we need to use the following expression&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=372</id>
    <title>Changes in Asp.Net Request Validation</title>
    <updated>2010-02-19T13:05:06+05:30</updated>
    <published>2010-02-19T13:05:06+05:30</published>
    <link rel="alternate"  href="/Changes_in_AspNet_Request_Validation.aspx" />
    <category term="Asp.Net 4.0" />
    <summary type="html">&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;Hi,&lt;BR&gt;&lt;BR&gt;When a page is submitted, users can also script along with the post data. Also unauthorized postback could be triggered. The event validation mechanism reduces the risk of unauthorized postback requests and callbacks when the EnableEventValidation property is set to true. This would help and provide default level of protection against cross site scripting.&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;In the previous versions of Asp.Net request validation was turned on by default but the validation would only apply to the asp.net pages (aspx pages and their code behind). This means there is no validation for other files requested like css, image etc.&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=371</id>
    <title>HtmlEncode and UrlEncode Now Encode Single Quotation Marks</title>
    <updated>2010-02-18T14:00:01+05:30</updated>
    <published>2010-02-18T14:00:01+05:30</published>
    <link rel="alternate"  href="/HtmlEncode_and_UrlEncode_Now_Encode_Single_Quotation_Marks.aspx" />
    <category term="Asp.Net 4.0" />
    <summary type="html">&lt;H2 style=&quot;MARGIN: 0.83em 0in&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt; FONT-WEIGHT: normal&quot;&gt;Hi,&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;One of the small but important change in the Asp.Net 4.0 is the change is the Encode methods. Now the HtmlEncode and UrlEncode methods in the HttpUtility and HttpServerUtility class respectively also encode the single quote (‘).&lt;BR&gt;&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto&quot; class=MsoNormal&gt;The HtmlEncode method encodes instances of the single quotation mark as &quot;&amp;amp;#39;&quot;.&lt;BR&gt;&lt;BR&gt;The UrlEncode method encodes instances of the single quotation mark as &quot;%27&quot;.&lt;BR&gt;&lt;/P&gt;
&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;Vikram&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=370</id>
    <title>Who is your tomorrow's competitor</title>
    <updated>2010-02-10T14:24:47+05:30</updated>
    <published>2010-02-10T14:24:47+05:30</published>
    <link rel="alternate"  href="/Who_is_your_tomorrow's_competitor.aspx" />
    <category term="News" />
    <summary type="html">&lt;P&gt;Who sells the largest number of cameras in India?&lt;/P&gt;
&lt;P&gt;Your guess is likely to be Sony, Canon or Nikon. The answer is: None of the above. The winner is Nokia, whose main line of business in India is not cameras but cellphones.&lt;/P&gt;
&lt;P&gt;The reason is that cameras bundled with cellphones are outselling standalone cameras. Now, what prevents the cellphone from replacing the camera outright? Nothing at all.&lt;/P&gt;
&lt;P&gt;Try this. Who runs the biggest music business in India? The answer is Airtel. By selling caller tunes (that play for 30 seconds) Airtel earns more than music companies do by selling albums.&lt;/P&gt;
&lt;P&gt;Airtel is not in the music business. It is the mobile service provider with the largest subscriber base in India. That sort of a competitor is difficult to detect and even more difficult to beat. By the time you have identified him, he has already gone past you. But if you imagine that Nokia and Bharti (Airtel's parent) are breathing easy, you couldn't be further from the truth.&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=369</id>
    <title>Visual Studio 2010 RC released for MSDN Subscriber</title>
    <updated>2010-02-09T13:45:42+05:30</updated>
    <published>2010-02-09T13:45:42+05:30</published>
    <link rel="alternate"  href="/Visual_Studio_2010_RC_released_for_MSDN_Subscriber.aspx" />
    <category term="Visual Studio" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;BR style=&quot;mso-special-character: line-break&quot;&gt;&lt;BR style=&quot;mso-special-character: line-break&quot;&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Today Microsoft has released Visual Studio 2010 (VS 2010) RC for MSDN Subscriber. It will be available for the General people on RC on 10th February.&lt;BR&gt;&lt;BR&gt;If you are an MSDN subscriber you can go ahead and download the bits right now from the link below.&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;A href=&quot;http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx&quot;&gt;http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;The early feedback on Twitter seems very good already about the performance. Do check it out.&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&amp;nbsp;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=368</id>
    <title>Wrapping Text Line in a label control</title>
    <updated>2010-02-04T06:29:56+05:30</updated>
    <published>2010-02-04T06:29:56+05:30</published>
    <link rel="alternate"  href="/Wrapping_Text_Line_in_a_label_control.aspx" />
    <category term="ASP.NET 2.X" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;BR&gt;Many a times there is requirements for us to display text in multi-line in web pages. The first try that most of the people do is by giving a fixed width to the label. But this never works. &lt;BR&gt;&lt;BR&gt;Height and Width works only for block level element. Label is an inline element and hence setting width does not work.&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;What you can instead do is use a textbox with CSS that will make it looks like a label. To do this we need to set the following properties.&lt;BR style=&quot;mso-special-character: line-break&quot;&gt;&lt;BR style=&quot;mso-special-character: line-break&quot;&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=367</id>
    <title>Difference is comparison when using equals method or Double Equal to operator</title>
    <updated>2010-02-02T16:04:18+05:30</updated>
    <published>2010-02-02T16:04:18+05:30</published>
    <link rel="alternate"  href="/Difference_is_comparison_when_using_equals_method_or_Double_Equal_to_operator.aspx" />
    <category term="ASP.NET 2.X" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;There are normally two ways to compare 2 objects. One by using == operator and by using the equals method. But these two are not same in the way they implements the comparison.&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;The difference is there in the type of object (reference type or value type)&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Value Type &lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=366</id>
    <title>Observer Design Pattern with example</title>
    <updated>2010-01-12T12:10:21+05:30</updated>
    <published>2010-01-12T12:10:21+05:30</published>
    <link rel="alternate"  href="/Observer_Design_Pattern_with_example.aspx" />
    <category term="Design Pattern" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;BR&gt;Many times when programming we come across situation where by change in one change needs to be updated in multiple object. For example if a parameter is used to make multiple calculation in different objects then on change of that parameter all the objects need to be notified of the change.&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp; &lt;/SPAN&gt;Or for example when the windows (operating system) or Dot Net framework shut downs or closes then it notifies all the application running on it to close so that it can make a clean close.&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=365</id>
    <title>Microsoft MVP for the year 2010</title>
    <updated>2010-01-04T10:53:13+05:30</updated>
    <published>2010-01-04T10:53:13+05:30</published>
    <link rel="alternate"  href="/Microsoft_MVP_for_the_year_2010.aspx" />
    <category term="Personal" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;I feel great joy to share with all that I have been rewarded the Microsoft MVP award for the year 2010 also. It feels great to have received the Award 2 year in succession. &lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;A very Big Thanks to the MVP Team, My MVP lead and the Microsoft for giving the MVP award to me. &lt;/P&gt;
&lt;P&gt;Thanks to all the friends, developers, and community members that have worked with me. I will try and continue my work forward in 2010......&lt;/P&gt;&lt;O:P&gt;&lt;/O:P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Vikram&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=364</id>
    <title>Visual Studio 2010 Beta 2 announced with Go Live License</title>
    <updated>2009-10-20T12:28:46+05:30</updated>
    <published>2009-10-20T12:28:46+05:30</published>
    <link rel="alternate"  href="/Visual_Studio_2010_Beta_2_announced_with_Go_Live_License.aspx" />
    <category term="News" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal&gt;Microsoft has announced the release of the Beta 2 of the Visual Studio 2010. MSDN Subscribers can download the same today and this will be available for the general Public of Wednesday. The link for download is &lt;BR&gt;&lt;BR&gt;&lt;A href=&quot;http://msdn.microsoft.com/hi-in/vstudio/dd582936(en-us).aspx&quot;&gt;http://msdn.microsoft.com/hi-in/vstudio/dd582936(en-us).aspx&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;VS 2010 and .NET 4 bring a huge number of improvements and additions. They include big advances for ASP.NET web development, WPF and Windows Forms client development, SharePoint development, Silverlight development, data development, parallel computing development, and cloud computing development. VS 2010 also delivers a ton of improvements in the core IDE, code editors, programming languages, and enterprise design, architect, and testing tools.&amp;nbsp;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=363</id>
    <title>KolkataNet Community Techdays event in Kolkata on 11 Oct 2009</title>
    <updated>2009-10-08T00:38:04+05:30</updated>
    <published>2009-10-08T00:38:04+05:30</published>
    <link rel="alternate"  href="/KolkataNet_Community_Techdays_event_in_Kolkata_on_11_Oct_2009.aspx" />
    <category term="News" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;Although a little late in blogging this, But I would like to invite all people in and around kolkata to join the KolkataNET&amp;nbsp;- KolkataITPro&amp;nbsp;- Community Tech Day on 11th Oct. 2009. The event is being held at International School of Business &amp;amp; Media, Kolkata Campus situated at Kolkata (address below). The event does not require any registeration free and is free.&lt;/P&gt;
&lt;P class=MsoNormal&gt;The agenda for the event are below.&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=362</id>
    <title>Web Platform Installer 2.0 available for Web developers</title>
    <updated>2009-10-03T15:45:35+05:30</updated>
    <published>2009-10-03T15:45:35+05:30</published>
    <link rel="alternate"  href="/Web_Platform_Installer_20_available_for_Web_developers.aspx" />
    <category term="News" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;BR&gt;&lt;BR&gt;Of late Microsoft Has been doing great job in creating an great experience for installation for both development component for Asp.net and IIS server and also available free open source software. Yes I am talking about the &lt;A href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Web Platform Installer 2.0&lt;/A&gt;.&lt;/P&gt;
&lt;P class=MsoNormal&gt;The web Platform Installer has been a great success, and is very user friendly tool to install most of the available software required for web development along with many available open source platforms and application. &lt;BR&gt;&lt;BR&gt;&lt;A href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Web Platform Installer 2.0&lt;/A&gt; (Also known as Web PI) was released recently and can be downloaded from the link below.&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;http://www.microsoft.com/web/downloads/platform.aspx&lt;/A&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=361</id>
    <title>LINQ Having Clause and Group By with condition</title>
    <updated>2009-09-17T00:08:22+05:30</updated>
    <published>2009-09-17T00:08:22+05:30</published>
    <link rel="alternate"  href="/LINQ_Having_Clause_and_Group_By_with_condition.aspx" />
    <category term="Asp.Net 3.X" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;BR&gt;&lt;BR&gt;While querying with LINQ, some times we will have to use the group By clause. But many a times we also want to use the having clause of SQL with the group by clause in the LINQ. There is no direct having keyword in LINQ to do this we need to use the where clause itself.&lt;/P&gt;
&lt;P class=MsoNormal&gt;You can query the LINQ to SQL to have both Group By and Having like this.&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=360</id>
    <title>How to simulate IN Clause in LINQ queries</title>
    <updated>2009-09-15T03:32:20+05:30</updated>
    <published>2009-09-15T03:32:20+05:30</published>
    <link rel="alternate"  href="/How_to_simulate_IN_Clause_in_LINQ_queries.aspx" />
    <category term="Asp.Net 3.X" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal&gt;When working with the LINQ queries for SQL one of the common queries that we need to run is the select query with IN clause. In SQL IN clause is used to provide more than one value to match in the where clause.&lt;/P&gt;
&lt;P class=MsoNormal&gt;Something like the query below&lt;/P&gt;
&lt;P class=MsoNormal&gt;Select * from Table&lt;BR&gt;where column1 in (‘Value1’, ‘Value2’, ‘Value3’)&lt;/P&gt;
&lt;P class=MsoNormal&gt;To do a similar query in LINQ we can use &lt;BR&gt;&lt;BR&gt;var list = from t in table &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where t.column1 = Value1’&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;And t.column1 = Value2’&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.column1 = Value3’&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select t&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=359</id>
    <title>Implement SECURITY INSIDE-OUT with MICROSOFT Technologies</title>
    <updated>2009-09-11T18:26:48+05:30</updated>
    <published>2009-09-11T18:26:48+05:30</published>
    <link rel="alternate"  href="/Implement_SECURITY_INSIDE-OUT_with_MICROSOFT_Technologies.aspx" />
    <category term="News" />
    <summary type="html">Hi,&lt;BR&gt;&lt;BR&gt;There an interactive live session on September 15, 2009 on how the New Efficiency Products will help you manage security in a simpler way. This session will occur across 16 cities at NIIT centers as a &lt;A href=&quot;http://www.endtoend.in/apps/forms/microsoft/SecurityLive/registration.aspx&quot;&gt;live session&lt;/A&gt; with benefit of face-to-face teaching, each participant having their own computers to work on, and having the ability to ask questions any time. The following event is available for the following city. 
&lt;P style=&quot;LINE-HEIGHT: 13.5pt; MARGIN-RIGHT: 18.75pt&quot;&gt;Ahmedabad &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;Lucknow&lt;BR&gt;Bangalore&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;Mumbai&lt;BR&gt;Bhopal&amp;nbsp; &lt;BR&gt;Mysore&lt;BR&gt;Bhubhaneswar&amp;nbsp;&amp;nbsp; &lt;BR&gt;Nagpur&lt;BR&gt;Chandigarh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;Nasik &lt;BR&gt;Chennai&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;New</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=358</id>
    <title>Application running in localhost and debugging mode</title>
    <updated>2009-09-06T22:26:11+05:30</updated>
    <published>2009-09-06T22:26:11+05:30</published>
    <link rel="alternate"  href="/Application_running_in_localhost_and_debugging_mode.aspx" />
    <category term="ASP.NET 2.X" />
    <summary type="html">&lt;P class=MsoNormal&gt;Hi,&lt;/P&gt;
&lt;P class=MsoNormal&gt;Most of the time (If not all) when working on the project we view the website with the help of localhost in debugging mode. Many a times when working on some modules, for solving small problem, we want to write some code that should execute only when running in the localhost or debugging environment. &lt;/P&gt;
&lt;P class=MsoNormal&gt;Normally developers would write the code and then take it as their responsibility to remove the code before the code goes to the next environment. But some time we might make a mistake of not removing the code and letting it go to the next environment, which can cause a lots of trouble.&lt;/P&gt;
&lt;P class=MsoNormal&gt;In these kinds of circumstances and Asp.Net developer can take help of the IsLocal method of the Request class. The method will return true in case the application is running from localhost.&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=357</id>
    <title>Visual Studio Changing default profile setting</title>
    <updated>2009-09-03T21:54:55+05:30</updated>
    <published>2009-09-03T21:54:55+05:30</published>
    <link rel="alternate"  href="/Visual_Studio_Changing_default_profile_setting.aspx" />
    <category term="Visual Studio" />
    <summary type="html">&lt;P class=CodeCxSpFirst&gt;Hi,&lt;BR&gt;&lt;BR&gt;While working with Visual Studio, was that normally we have to select the profile setting (Visula Basic profile, C# profile, web development profile etc...) when we start the Visual Studio for the first Times. But Many a time after working on a type of project for some time you start working on other types of project. &lt;/P&gt;
&lt;P class=CodeCxSpMiddle&gt;For Example, Currently I am working on a Windows Applictaion (With Language VB.Net) But before this project I was Working on Web Development in C#, and before that Windows Development in C#. &lt;/P&gt;
&lt;P class=CodeCxSpMiddle&gt;In Visual studio you can easily change the profile of the IDE by going to Tools -&amp;gt; Import Export Settings. This brings up Import Export Windows Wizard. Follow the simple Wizard (which also allows to save you the current settings&amp;nbsp; for future use) and seletc the new profile setting (based on the kind of project you are working on) and you are ready to work with new profile.&lt;/P&gt;
&lt;P class=CodeCxSpLast&gt;Vikram&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=356</id>
    <title>Programmatically Create PDF from Crystal Report</title>
    <updated>2009-08-31T05:25:13+05:30</updated>
    <published>2009-08-31T05:25:13+05:30</published>
    <link rel="alternate"  href="/Programmatically_Create_PDF_from_Crystal_Report.aspx" />
    <category term="ASP.NET 2.X" />
    <summary type="html">&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;Hi,&lt;BR&gt;&lt;BR&gt;Some times when working with crystal report viewer you do not want to show the report to user in raw format but instead you want to pass on the report in PDF or other format without requiring user to do extra click. This can be done easily in Dot Net with the following code.&lt;BR style=&quot;mso-special-character: line-break&quot;&gt;&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;MyReport report = &lt;SPAN class=keyword&gt;new&lt;/SPAN&gt; MyReport(); &lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;DataSet ds = GetData(); &lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;report.SetDataSource(ds); &lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, &quot;ExportedReport&quot;);&lt;/P&gt;
&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=355</id>
    <title>Received ASIA MVP Certification Hero Award 2009</title>
    <updated>2009-08-20T08:17:06+05:30</updated>
    <published>2009-08-20T08:17:06+05:30</published>
    <link rel="alternate"  href="/Received_ASIA_MVP_Certification_Hero_Award_2009.aspx" />
    <category term="Personal" />
    <summary type="html">&lt;P&gt;Hi,&lt;BR&gt;&lt;BR&gt;Just received the ASIA MVP Certification Hero Award 2009. I did not knew that another award was coming. Was more than pleasantly surprised. Thanks to Microsoft, Microsoft MVP Team, Microsoft Learning Team. &lt;BR&gt;&lt;BR&gt;Its amazing that You get awarded for Helping others with the knowledge of discounts available.&lt;BR&gt;&lt;BR&gt;Again Thanks to Microsoft for the award.&lt;BR&gt;&lt;BR&gt;Vikram&lt;/P&gt;</summary>
  </entry>

  <entry>
    <id>http://www.vikramlakhotia.com/post.aspx?postid=354</id>
    <title>Asp.net 4.0 FormView Control Enhancement</title>
    <updated>2009-08-20T05:49:40+05:30</updated>
    <published>2009-08-20T05:49:40+05:30</published>
    <link rel="alternate"  href="/Aspnet_40_FormView_Control_Enhancement.aspx" />
    <category term="Asp.Net 4.0" />
    <summary type="html">&lt;p class=&quot;Code&quot;&gt;Hi,&lt;br&gt;&lt;br&gt;another of the new features of Asp.net 4.0 is the enhancement(in terms of rendering) made in the Formview control. By default the Formview control would render table, tr and td tags for display of content. This can be of much trouble to many of the designer because they have little control over the rendered HTML.&lt;br&gt;&lt;br&gt;With Asp.net 4.0 you can disable the rendering of these HTML elements. (Mind you in Asp.Net 4.0 by default these HTML content are rendered.) To do this all you need to do is set the RenderTable property to False.&lt;br&gt;&lt;br&gt;&amp;lt;asp:FormView ID=&quot;FormView1&quot; runat=&quot;server&quot; RenderTable=&quot;false&quot;&amp;gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br&gt;This enhancement can make it easier to style the content of the control with CSS, because no unexpected tags are rendered by the control.&lt;/p&gt;Vikram</summary>
  </entry>

</feed>    




     