<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-12446838</id><updated>2012-01-22T22:58:40.113+05:30</updated><title type='text'>Tech Treasure</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default?start-index=101&amp;max-results=100'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>113</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12446838.post-2188189855131400451</id><published>2010-11-12T00:46:00.001+05:30</published><updated>2010-11-12T00:46:12.494+05:30</updated><title type='text'>JQuery selector tutorial</title><summary type='text'>     Today I read another god article about JQuery selector tutorial. Here is a link for that.  Two great articles about JQuery in one day, amazing !!!  Happy Programming  !!!  Chirag Darji   ASP.NET Consultant &amp; Trainer  </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2188189855131400451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2188189855131400451&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2188189855131400451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2188189855131400451'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/11/jquery-selector-tutorial.html' title='JQuery selector tutorial'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3044237286829908410</id><published>2010-11-12T00:39:00.001+05:30</published><updated>2010-11-12T00:39:03.845+05:30</updated><title type='text'>JQuery Selector, JQuery Event Binding, JQuery “this” keyword</title><summary type='text'>           Today while reading about JQuery I came across really helpful and well narrated article about JQuery Selector, JQuery Event Binding and use this key word in JQuery by Elijah Manor. You can read it here.   Happy programming !!!  Chirag Darji    ASP.NET Consultant &amp; Trainer  </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3044237286829908410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3044237286829908410&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3044237286829908410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3044237286829908410'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/11/jquery-selector-jquery-event-binding.html' title='JQuery Selector, JQuery Event Binding, JQuery “this” keyword'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7372331760674966854</id><published>2010-08-23T15:44:00.001+05:30</published><updated>2010-08-23T15:44:41.083+05:30</updated><title type='text'>Find Second Saturday and Fourth Saturday of Month</title><summary type='text'>       While analyzing Payroll management system, I came across an interesting question that how can we find second and fourth Saturday of every month. As in India we still do not have five days a week in most of organization, bad humm……:( . Most of organizations offer only second and fourth Saturday off. Below is the code to find particular day of week and its occurrence in given month and year,</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7372331760674966854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7372331760674966854&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7372331760674966854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7372331760674966854'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/08/find-second-saturday-and-fourth.html' title='Find Second Saturday and Fourth Saturday of Month'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6722359428641613358</id><published>2010-08-07T00:16:00.001+05:30</published><updated>2010-08-07T00:16:56.315+05:30</updated><title type='text'>Complete Installation guide for CRM 4.0 / Step by Step guide to install CRM 4.0</title><summary type='text'>        Last week I installed Microsoft Dynamic 4.0 on my virtual machine and I found that it will be helpful for beginner like me, if there is a step by step installation guide. Lets start with OS selection.   1. You can use Windows Server 2003 or later server version. I had Windows Server 2003 R2.   2. Install latest service pack for OS you installed.  3. Install Internet Information Service.  </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6722359428641613358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6722359428641613358&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6722359428641613358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6722359428641613358'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/08/complete-installation-guide-for-crm-40.html' title='Complete Installation guide for CRM 4.0 / Step by Step guide to install CRM 4.0'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_oaITdFB3WBo/TFxYZSqFdzI/AAAAAAAABHs/DbOVxYDxGNc/s72-c/clip_image002_thumb%5B8%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1676651918686310518</id><published>2010-07-30T18:05:00.001+05:30</published><updated>2010-07-30T18:05:37.521+05:30</updated><title type='text'>SQL Server Date Format and Convert DateTime to particular format</title><summary type='text'>    I was playing with different date format in SQL Server as need to display date in YYYY-MM-DD HH:MI:SS.MMM format. I knew there is a CONVERT function which can do this however I did not have the exact parameter value to convert my date to mentioned format. I got really use full chart on internet which provides different option and parameter value for CONVERT function. For my case syntax is   </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1676651918686310518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1676651918686310518&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1676651918686310518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1676651918686310518'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/07/sql-server-date-format-and-convert.html' title='SQL Server Date Format and Convert DateTime to particular format'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2446236419224905726</id><published>2010-03-06T12:20:00.001+05:30</published><updated>2010-03-06T12:20:43.243+05:30</updated><title type='text'>SQL Server – Maximum columns in Table, Maximum Columns in Group By, Cluster Index Per Table, Max Database Size, Maximum characters in NTEXT, NVARCHAR(MAX) and all maximum in SQL SERVER</title><summary type='text'>     While reading MSDN today I came across very interested topic. This is very use full specially in interview. Link shows maximum character allow in NVARCHAR(MAX), NTEXT, VARCHAR(MAX), Maximum cluster index per table, maximum columns per table, Maximum columns per Foreign Key, Maximum Columns in Group By and so on. Here is the link from MSDN   Happy Programming !!!  Chirag Darji  </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2446236419224905726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2446236419224905726&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2446236419224905726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2446236419224905726'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/03/sql-server-maximum-columns-in-table.html' title='SQL Server – Maximum columns in Table, Maximum Columns in Group By, Cluster Index Per Table, Max Database Size, Maximum characters in NTEXT, NVARCHAR(MAX) and all maximum in SQL SERVER'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7452602811864473811</id><published>2010-02-17T14:38:00.001+05:30</published><updated>2010-02-17T14:38:05.875+05:30</updated><title type='text'>XML Parsing Error: no element found</title><summary type='text'>        Today while working with JQuery-Ajax, I found an interesting error. I have used $.ajax() function to retrieve data from remote page. While testing I found that the page always show error : XML Parsing Error: no element found. Error does not contain specific information about the source of error. The common reason for XML Parsing Error: no element found is missing closing tag for one or </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7452602811864473811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7452602811864473811&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7452602811864473811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7452602811864473811'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/02/xml-parsing-error-no-element-found.html' title='XML Parsing Error: no element found'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2466138187931733500</id><published>2010-01-28T18:01:00.000+05:30</published><updated>2010-01-28T18:03:53.578+05:30</updated><title type='text'>JQuery Conflict with Mootool and other libraries !!! Use JQuery.noConflict()</title><summary type='text'>           We all may have use JQuery in our application to build rich UI. While working with JQuery today I found that JQuery is not working on some pages where I have user mootool scripts. I search on net and found a very descriptive solution at JQuery site.             According to this article the reason for JQuery conflict is the use of $ function. mootool and prototype.js files have their </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2466138187931733500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2466138187931733500&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2466138187931733500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2466138187931733500'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2010/01/jquery-conflict-with-mootool-and-other.html' title='JQuery Conflict with Mootool and other libraries !!! Use JQuery.noConflict()'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5118991433751699111</id><published>2009-10-09T13:08:00.001+05:30</published><updated>2009-10-09T13:08:52.567+05:30</updated><title type='text'>Set Full Image Path in FCK Editor</title><summary type='text'>        We have used FCK editor as an HTML editor for our recent project. It is one the best and easy to integrate HTML editor available free. When I test the editor on local server and it works fine. However when we add image using FCK editor the image path is relative to tour webpage. So if you have created an email template using FCK editor and you sends email to your customers they will not </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5118991433751699111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5118991433751699111&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5118991433751699111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5118991433751699111'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/10/set-full-image-path-in-fck-editor.html' title='Set Full Image Path in FCK Editor'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_oaITdFB3WBo/Ss7oe9yZ3CI/AAAAAAAABCc/fTm4X_SrOPs/s72-c/Set%20Full%20Image%20Path%20in%20FCK%20Editor_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5844427413664793990</id><published>2009-08-21T01:34:00.001+05:30</published><updated>2009-08-21T01:34:39.513+05:30</updated><title type='text'>AJAX UpdatePanel and UpdateProgress to show please wait</title><summary type='text'>     While refreshing the AJAX skill today I wrote a simple code to display please wait message while asynchronous postback. I added one Update Panel, one Update Progress panel and a button control and registered button  as Asynchronous Postback Trigger control. I assign my UpdatePanel’s id as AssociatedUpdatePanelID to UpdateProgress panel. I ran the code found that Progress panel is not </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5844427413664793990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5844427413664793990&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5844427413664793990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5844427413664793990'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/08/ajax-updatepanel-and-updateprogress-to.html' title='AJAX UpdatePanel and UpdateProgress to show please wait'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-9163992834263592569</id><published>2009-08-20T01:11:00.001+05:30</published><updated>2009-08-20T01:11:23.240+05:30</updated><title type='text'>Context.RewritePath and Images</title><summary type='text'>     I was reading articles on URL Rewriting in ASP.NET and I found the most common way suggested is to use Context.RewritePath either in global.asax file or in HttpHandler with Application_BeginRequest method. The most common found code is Context.RewritePath(NewURL). When you the application you find it works like a charm and yes it does so!!!!.        However sometime Images and CSS are not </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/9163992834263592569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=9163992834263592569&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9163992834263592569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9163992834263592569'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/08/contextrewritepath-and-images.html' title='Context.RewritePath and Images'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_oaITdFB3WBo/SoxVYRtClOI/AAAAAAAABCU/fPBxtDA-YiE/s72-c/ImagesNotDisplayedContext.RewritePath_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7787799978714507216</id><published>2009-08-13T00:34:00.001+05:30</published><updated>2009-08-13T00:34:40.648+05:30</updated><title type='text'>How to detect page is loaded</title><summary type='text'>      Sometime we need to find when the page is loaded or page is completely loaded before specific java script function is called.  As we all know if try to access DOM element using document.getElementBtId() before page is loaded or page is completely loaded we get error. So to prevent the error we can user following java script to detect page is loaded?             1: var body = </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7787799978714507216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7787799978714507216&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7787799978714507216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7787799978714507216'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/08/how-to-detect-page-is-loaded.html' title='How to detect page is loaded'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8307057620993698705</id><published>2009-08-11T15:28:00.003+05:30</published><updated>2009-08-11T15:28:29.790+05:30</updated><title type='text'>How to set multiple default button in ASP.NET</title><summary type='text'>        In my previous post I mentioned the one way to set default button in ASP.NET. There are few other methods also.  One of them is to use asp panel and set its DefaultButton property. When we need to set multiple default buttons on single page we can do it by using asp panels. Lets consider that you have login control and search control on same page.  User must be redirect to proper page </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8307057620993698705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8307057620993698705&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8307057620993698705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8307057620993698705'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/08/how-to-set-multiple-default-button-in.html' title='How to set multiple default button in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6445753750695791981</id><published>2009-05-20T14:43:00.001+05:30</published><updated>2009-05-20T14:43:35.487+05:30</updated><title type='text'>Maintain Viewstate for Dynamic controls across the postback</title><summary type='text'>       Most of us have faced the case when we have to load the controls dynamically. We can load user control by calling LoadControl method. To load inbuilt server controls we can use Page.Form.Controls.Add() method or we can user any container like panel or place holder and call Controls.Add() method. Upto this it looks very easy and works fine. However at first postback you either find the </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6445753750695791981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6445753750695791981&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6445753750695791981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6445753750695791981'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/05/maintain-viewstate-for-dynamic-controls.html' title='Maintain Viewstate for Dynamic controls across the postback'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8545619320902342749</id><published>2009-05-14T11:50:00.001+05:30</published><updated>2009-05-14T11:50:43.978+05:30</updated><title type='text'>Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc</title><summary type='text'>        You may receive "Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc" while connection to database.  I got the error when I tried to connect to SQL Server 2005 from Visual studio 2008 using server explorer. The exact error is,  Could not load file or assembly ‘Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91′ or </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8545619320902342749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8545619320902342749&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8545619320902342749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8545619320902342749'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/05/could-not-load-file-or-assembly.html' title='Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3071448553693539237</id><published>2009-03-12T01:37:00.001+05:30</published><updated>2009-03-12T01:37:56.908+05:30</updated><title type='text'>Happy Holi</title><summary type='text'>       HOLI , a festival of color!!!!!!.  This holi is the best holi I enjoyed so far. I was with my friends for whole day and we colored one another. These are my college friends Mihir - Binal, Piyush – Apeksha. We missed our two friends who are in US. SHAILESH and DIPAK. See few snaps……                                          Its me (Chirag Darji) !!  Happy Holi !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3071448553693539237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3071448553693539237&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3071448553693539237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3071448553693539237'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/03/happy-holi.html' title='Happy Holi'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_oaITdFB3WBo/SbgZ1FdD7lI/AAAAAAAAA-U/Yf5xLFD7H5s/s72-c/11032009552_thumb%5B4%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3285349734707583202</id><published>2009-01-07T18:08:00.001+05:30</published><updated>2009-01-07T18:08:17.934+05:30</updated><title type='text'>The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2)</title><summary type='text'>         You may find this error while working with Data Application block in enterprise library. When you look into the inner exception you will find the message "The value can not be null or an empty string.".  This message does not give proper information to user.           When enterprise library does not find default database than it will show this error. You need to add "defaultDatabase" in</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3285349734707583202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3285349734707583202&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3285349734707583202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3285349734707583202'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/01/current-build-operation-build-key-build.html' title='The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2)'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1911427908198416708</id><published>2009-01-05T17:04:00.001+05:30</published><updated>2009-01-05T17:04:58.033+05:30</updated><title type='text'>An error occurred creating the configuration section, 'Microsoft.Practices.EnterpriseLibrary,The located assembly's manifest definition does not match the assembly reference</title><summary type='text'>     Today I was exploring Enterprise Library 4.1 and encounter this error. I created a sample application and added reference to few DLL from "EntLib41Src\bin" folder to my application. When I hit F5 to run the application I got following error, "An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly '</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1911427908198416708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1911427908198416708&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1911427908198416708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1911427908198416708'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2009/01/error-occurred-creating-configuration.html' title='An error occurred creating the configuration section, &amp;#39;Microsoft.Practices.EnterpriseLibrary,The located assembly&amp;#39;s manifest definition does not match the assembly reference'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2520353052395330865</id><published>2008-10-22T15:02:00.001+05:30</published><updated>2008-10-22T15:02:36.433+05:30</updated><title type='text'>Page Methods is undefined</title><summary type='text'>        You may receive "Page Methods is undefined while calling Server Side function from Client Side Code using PageMethods in AJAX. The possible cause can be, 1. You may have not added EnablePageMethods="true" in ScriptManager tag.     1: &lt;ajax:ScriptManager    2:     EnablePageMethods="true" ID="ScriptManager1" runat="server"&gt;   3: &lt;/ajax:ScriptManager&gt;2. You have a pre-release version of </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2520353052395330865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2520353052395330865&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2520353052395330865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2520353052395330865'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/10/page-methods-is-undefined.html' title='Page Methods is undefined'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7548822935175334921</id><published>2008-09-16T16:58:00.001+05:30</published><updated>2008-09-16T16:58:17.660+05:30</updated><title type='text'>Integrate Youtube in ASP.NET</title><summary type='text'>       I will discuss how to integrate youtube video in asp.net. Youtube provides the API to access the its huge database of videos. It also provides search facility and customized player for integration.        First thing you need is to get developer key for accessing youtube service. You can get it from here. Once you get the developer you can use the API URL to retrieve youtube videos. The </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7548822935175334921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7548822935175334921&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7548822935175334921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7548822935175334921'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/09/integrate-youtube-in-aspnet.html' title='Integrate Youtube in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1160592537665444716</id><published>2008-09-09T17:59:00.001+05:30</published><updated>2008-09-09T17:59:46.217+05:30</updated><title type='text'>GROUP BY, CUBE, ROLLUP and SQL SERVER 2005</title><summary type='text'>       I learn about CUBE and ROLLUP function today and I found it really usefull for generating reports. For more detail visit here.  Happy Programming !!!!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1160592537665444716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1160592537665444716&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1160592537665444716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1160592537665444716'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/09/group-by-cube-rollup-and-sql-server.html' title='GROUP BY, CUBE, ROLLUP and SQL SERVER 2005'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6519535989566130582</id><published>2008-09-02T17:27:00.001+05:30</published><updated>2008-09-02T17:27:11.213+05:30</updated><title type='text'>How to detect browser using JavaScript</title><summary type='text'>         As a software developers we must have to deal with javascript every now and than. There are some scripts which is browser dependent. You need to write different functions for different browsers. To achieve this you must require to detect the browser. Below code may helps you,     1: var isIE = false;   2: var isFF = false;   3: var isOP = false;   4: var isSafari = false;   5:     6: </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6519535989566130582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6519535989566130582&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6519535989566130582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6519535989566130582'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/09/how-to-detect-browser-using-javascript.html' title='How to detect browser using JavaScript'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5472776516977473522</id><published>2008-08-11T15:55:00.001+05:30</published><updated>2008-08-11T15:55:16.251+05:30</updated><title type='text'>How to Encrypt connection string in web.config</title><summary type='text'>     The most sensitive information stored in web.config file can be the connection string. You do not want to disclose the information related to your database to all the users where the application is deployed. Every time it is not possible to have a private machine for your sites, you may need to deploy the site in shared host environment. To encrypt the connection string in above situation is</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5472776516977473522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5472776516977473522&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5472776516977473522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5472776516977473522'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/08/how-to-encrypt-connection-string-in.html' title='How to Encrypt connection string in web.config'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7596496293996577728</id><published>2008-07-25T00:52:00.001+05:30</published><updated>2008-07-25T00:52:13.477+05:30</updated><title type='text'>How to find duplicate values from List&lt;&gt; ?</title><summary type='text'>     I have generic list say, List&lt;int&gt; and I want to find the duplicate values from the List&lt;int&gt; and store it in new List&lt;int&gt;. There are many ways to achive this. One can loop through all the elements of List&lt;int&gt; and store the duplicate in other list OR can use anonymous method to acieve same. I love the anonymous method. Here is the code to get duplicate value from List&lt;&gt;.     1: List&lt;int&gt; </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7596496293996577728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7596496293996577728&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7596496293996577728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7596496293996577728'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/07/how-to-find-duplicate-values-from-list.html' title='How to find duplicate values from List&amp;lt;&amp;gt; ?'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3934500233390838302</id><published>2008-07-18T00:58:00.001+05:30</published><updated>2008-07-18T00:58:19.084+05:30</updated><title type='text'>RegisterStartupScript and RegisterClientScriptBlock</title><summary type='text'>         There two powerful methods available in dotnet two include JavaScript on page from code behind. Normally we write the JavaScript functions on aspx page however in some case we have to dynamic script which we can not write on aspx page for many reasons like the script require some data which we have to fetch from database or require some operations that can only be done from code behind. </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3934500233390838302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3934500233390838302&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3934500233390838302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3934500233390838302'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/07/registerstartupscript-and.html' title='RegisterStartupScript and RegisterClientScriptBlock'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4024246761524592308</id><published>2008-06-25T01:02:00.001+05:30</published><updated>2008-06-25T01:02:59.246+05:30</updated><title type='text'>Access Cache object of one application from another application OR share Cache object between Applications</title><summary type='text'>       Recently while reading some forum I found an interesting question Can we share the cache object between two different applications ? More specifically can we access cache data of one application from another application ? I thought its a good topic to study and share.        The answer is yes you can share the cache data between two application or you can access cache data of one </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4024246761524592308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4024246761524592308&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4024246761524592308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4024246761524592308'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/06/access-cache-object-of-one-application.html' title='Access Cache object of one application from another application OR share Cache object between Applications'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-9062641916172037084</id><published>2008-05-14T17:58:00.001+05:30</published><updated>2008-05-14T17:58:55.377+05:30</updated><title type='text'>Internet Explorer contains Dipak Bhattarai in title</title><summary type='text'>      Recently I found many pcs affected by this. You can see Dipak Bhattarai in title of every Internet explorer window. The simples solution I found to remove this is change the registry value. I am not sure that this has also added some malicious entry some where and maybe stilling or sniffing the data. However to remove name from title , Go to Start - Run - type regedit. Now go to </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/9062641916172037084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=9062641916172037084&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9062641916172037084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9062641916172037084'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/05/internet-explorer-contains-dipak.html' title='Internet Explorer contains Dipak Bhattarai in title'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1391417934935360017</id><published>2008-05-09T18:17:00.001+05:30</published><updated>2008-05-09T18:17:43.996+05:30</updated><title type='text'>Generate Image from text using C# OR Convert Text in to Image using C#</title><summary type='text'>     Today I learn a new thing, how to generate and image form given text or how to convert text in to image? Dotnet framework provides System.Drawing and System.Drawing.Graphics class which helps us to generate image from text or convert text into image. Below is the code,     1: private Bitmap CreateBitmapImage(string sImageText)   2: {   3:     Bitmap objBmpImage = new Bitmap(1, 1);   4:     5</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1391417934935360017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1391417934935360017&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1391417934935360017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1391417934935360017'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/05/generate-image-from-text-using-c-or.html' title='Generate Image from text using C# OR Convert Text in to Image using C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4355880159361785053</id><published>2008-05-06T10:13:00.001+05:30</published><updated>2008-05-06T10:13:02.414+05:30</updated><title type='text'>Missing templates in Visual Studio installed templates</title><summary type='text'>                Today, when I start visual studio and click on Add new Item I found that WebForm option is missing from visual studio templates. Thanks to Eric Hammersley who gave the perfect solution. To add missing templates you need to run following command on visual studio command prompt.      Close all instance of Visual Studio. Open visual studio command prompt and type,                 </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4355880159361785053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4355880159361785053&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4355880159361785053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4355880159361785053'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/05/missing-templates-in-visual-studio.html' title='Missing templates in Visual Studio installed templates'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3588911227406937809</id><published>2008-05-05T11:00:00.001+05:30</published><updated>2008-05-05T11:00:52.781+05:30</updated><title type='text'>How to Serialize Object in Dot Net</title><summary type='text'>What is Serialization?       Serialization is the process of storing the state of an object to the stream of bytes. Using serialization one can store the object in to memory stream or file system in such a way that the original object can be retrieve from persistent medium using DeSerialization.      One can make the class serialize by adding [Serializable] attribute at the top of class and the </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3588911227406937809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3588911227406937809&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3588911227406937809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3588911227406937809'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/05/how-to-serialize-object-in-dot-net.html' title='How to Serialize Object in Dot Net'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8963096110505366266</id><published>2008-04-04T13:00:00.001+05:30</published><updated>2008-04-04T13:00:32.548+05:30</updated><title type='text'>Using CASE with ORDER BY in SQL Server</title><summary type='text'>        Today I came to know that we can use CASE with ORDER BY clause.  Its a nice functionality which helps you to avoid UNIOUN when you have to display the records in some specific order and still you need to sort them.      As shown below I have created an Employee table with ID (Primary key),Name, Address and Phone columns.     1: SET ANSI_NULLS ON   2: GO   3: SET QUOTED_IDENTIFIER ON   4: </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8963096110505366266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8963096110505366266&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8963096110505366266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8963096110505366266'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/04/using-case-with-order-by-in-sql-server.html' title='Using CASE with ORDER BY in SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6289163846931347332</id><published>2008-04-01T12:12:00.001+05:30</published><updated>2008-04-01T12:12:16.510+05:30</updated><title type='text'>ASP.NET Internals: Viewstate and Page Life Cycle</title><summary type='text'>         During the free time today, I was looking for some articles on ASP.NET internals. I found an awesome article about page life cycle and viewstate. Author has explained a viewstate in very detail and simple manner. You can read the article here. Happy Programming!!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6289163846931347332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6289163846931347332&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6289163846931347332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6289163846931347332'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/04/aspnet-internals-viewstate-and-page.html' title='ASP.NET Internals: Viewstate and Page Life Cycle'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6491217617529757364</id><published>2008-03-17T23:01:00.003+05:30</published><updated>2008-03-17T23:01:36.352+05:30</updated><title type='text'>IDENT_CURRENT, @@IDENTITY and SCOPE_IDENTITY()</title><summary type='text'>         A very common question during the interview is to provide difference between IDENT_CURRENT, @@IDENTITY and SCOPE_IDENTITY().  All are used to retrieve the value of identity column after DML statement execution. All three functions return last-generated identity values. However, the scope and session on which last is defined in each of these functions differ:   IDENT_CURRENT returns the </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6491217617529757364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6491217617529757364&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6491217617529757364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6491217617529757364'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/03/identcurrent-identity-and-scopeidentity.html' title='IDENT_CURRENT, @@IDENTITY and SCOPE_IDENTITY()'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8726887701304910826</id><published>2008-03-12T13:15:00.001+05:30</published><updated>2008-03-12T13:15:13.624+05:30</updated><title type='text'>CLR Stored Procedure in SQL Server 2005</title><summary type='text'>       As we all know SQL Server 2005 has CLR integrated with it. This means one can write a code in manage application and execute it SQL Server. I read about this since Microsoft has launched SQL Server 2005, however I have never used it practically till last week.  Here is a complete article.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8726887701304910826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8726887701304910826&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8726887701304910826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8726887701304910826'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/03/clr-stored-procedure-in-sql-server-2005.html' title='CLR Stored Procedure in SQL Server 2005'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-338986990947059713</id><published>2008-02-29T17:28:00.001+05:30</published><updated>2008-02-29T17:28:15.836+05:30</updated><title type='text'>Service Unavailable error while connecting to team foundation server.</title><summary type='text'>         You may receive "Service Unavailable" error while connecting to Team Foundation Server(TFS). I was getting this error from yesterday whenever I was trying to connect to TFS. Finally today I found the reason and solution. I had changed the password of Administrator user which I had used to configure TFS Application Pool. This has stopped the application pool as the account which is </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/338986990947059713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=338986990947059713&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/338986990947059713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/338986990947059713'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/02/service-unavailable-error-while.html' title='Service Unavailable error while connecting to team foundation server.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5448058545497866814</id><published>2008-02-15T12:44:00.001+05:30</published><updated>2008-02-15T12:45:21.410+05:30</updated><title type='text'>The media set has 2 media families but only 1 are provided.</title><summary type='text'>      You get this error while restoring the database backup file in SQL Server 2005. This is because when you took the backup your backup file is divided in more than one part and at the time of restoring the database you have not added all the parts.         Lets do this practically so that you can have better idea. Take the backup of any database you have. To take the backup right click on </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5448058545497866814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5448058545497866814&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5448058545497866814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5448058545497866814'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/02/media-set-has-2-media-families-but-only.html' title='The media set has 2 media families but only 1 are provided.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5907714817609944646</id><published>2008-02-08T16:18:00.001+05:30</published><updated>2008-02-08T16:18:17.385+05:30</updated><title type='text'>Query to find all the tables and columns in selected database.</title><summary type='text'>         As a developer, it is really important for us to understand database design and underlying tables used in application. Sometime we do not have direct access to database server so that we can not open the server console and look in to the database.          In this case we can take help of SysObjects, SysColumns, SysTypes tables of SQL Server 2005. These tables stores the information </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5907714817609944646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5907714817609944646&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5907714817609944646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5907714817609944646'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/02/query-to-find-all-tables-and-columns-in.html' title='Query to find all the tables and columns in selected database.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5211041262012608056</id><published>2008-01-28T15:38:00.001+05:30</published><updated>2008-01-28T15:38:57.475+05:30</updated><title type='text'>Internet explorer was not able to open the Internet site. The requested site is either unavailable or can not be found.Please try again later.</title><summary type='text'>       You may receive this error when you write a code that allows user to download a file instead of opening it in IE other browser. In my code I have to show Open/Save dialog for PDF file. I wrote the following code.     1: Response.Clear();   2: Response.Buffer = true;   3: Response.ContentType = "application/pdf";   4: Response.Cache.SetCacheability(HttpCacheability.NoCache);   5: </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5211041262012608056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5211041262012608056&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5211041262012608056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5211041262012608056'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2008/01/internet-explorer-was-not-able-to-open.html' title='Internet explorer was not able to open the Internet site. The requested site is either unavailable or can not be found.Please try again later.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2230030889573928438</id><published>2007-10-19T18:09:00.001+05:30</published><updated>2007-10-19T18:09:12.100+05:30</updated><title type='text'>Add new document to Document Library in SharePoint using C#</title><summary type='text'>          We are exploring SharePoint 2007 from last few days. Here is the code for adding new document to document library using C#.  I have created a page with a file upload control and a button. When user clicks on button the selected document will be uploaded to specific document library. You need to add reference to Microsoft.SharePoint DLL to make this code running. if (FileUpload1.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2230030889573928438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2230030889573928438&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2230030889573928438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2230030889573928438'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/10/add-new-document-to-document-library-in.html' title='Add new document to Document Library in SharePoint using C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-229812204983299612</id><published>2007-10-12T17:39:00.001+05:30</published><updated>2007-10-12T17:39:07.479+05:30</updated><title type='text'>Add aspx page to SharePoint 2007</title><summary type='text'>            This post will show how to create aspx (web page) page to SharePoint 2007. You can find  a really good article to add custom page in SharePoint 2007 site. I have shown one approach describe in above article.             Create a new Web Application Project from Visual Studio 2005. You need to download web application project extension for this. Open Visual Studio 2005 and select Web </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/229812204983299612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=229812204983299612&amp;isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/229812204983299612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/229812204983299612'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/10/add-aspx-page-to-sharepoint-2007.html' title='Add aspx page to SharePoint 2007'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2303471401348746643</id><published>2007-10-12T10:50:00.001+05:30</published><updated>2007-10-12T10:50:00.463+05:30</updated><title type='text'>Page Ghosting &amp; UnGhosting And effect of PageGhosting on Performance in SharePoint 2007</title><summary type='text'>            The WSS team created a virtual path provider named SPVirtualPathProvider that is integrated into every Web application. The SPVirtualPathProvider class is integrated into the ASP.NET request handling infrastructure by the SPRequestModule. More specifically, the SPRequestModule component contains code to register the SPVirtualPathProvider class with the ASP.NET Framework as it does its</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2303471401348746643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2303471401348746643&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2303471401348746643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2303471401348746643'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/10/page-ghosting-unghosting-and-effect-of.html' title='Page Ghosting &amp;amp; UnGhosting And effect of PageGhosting on Performance in SharePoint 2007'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5232392915671987243</id><published>2007-09-27T16:54:00.001+05:30</published><updated>2007-09-27T16:54:02.473+05:30</updated><title type='text'>Parameter Sniffing and SQL Server</title><summary type='text'>        Today I came to know about an interesting point "Parameter Sniffing". I search on net and found some good material and facts about it. First, what is parameter sniffing? Below is the definition which I got from here. "Parameter sniffing refers to a process whereby SQL Server's execution environment "sniffs" the current parameter values during compilation or recompilation, and passes it </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5232392915671987243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5232392915671987243&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5232392915671987243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5232392915671987243'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/09/parameter-sniffing-and-sql-server.html' title='Parameter Sniffing and SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-206561963486107608</id><published>2007-09-27T00:33:00.001+05:30</published><updated>2007-09-27T00:33:11.050+05:30</updated><title type='text'>HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)</title><summary type='text'>        You may find this error when you try to register WCF service host using HTTP binding in windows vista. I had the same problem and I found the perfect solution here. </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/206561963486107608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=206561963486107608&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/206561963486107608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/206561963486107608'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/09/http-could-not-register-url-http8000.html' title='HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2661441457499542521</id><published>2007-09-01T16:14:00.001+05:30</published><updated>2007-09-01T16:14:39.447+05:30</updated><title type='text'>Value does not fall within the expected range exception while using ReportDataSource</title><summary type='text'>           Here is my code which produce "Value does not fall within the expected range" exception.   ReportDataSource objReportDataSource               = new ReportDataSource("CategoryProduct"); objReportDataSource.Name = "NewDataSet_CategoryProducts"; // dsDataSet is DataSet object objReportDataSource.Value = dsData;              After doing some try and error method I found that this exception</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2661441457499542521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2661441457499542521&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2661441457499542521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2661441457499542521'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/09/value-does-not-fall-within-expected.html' title='Value does not fall within the expected range exception while using ReportDataSource'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8978745050138530926</id><published>2007-08-31T19:14:00.001+05:30</published><updated>2007-08-31T19:14:21.684+05:30</updated><title type='text'>Storing and Retrieving doc/pdf/xls files in SQL Server</title><summary type='text'>         I have explained how to store and retrieve image file in SQL Server in my previous post. I received many comments mentioning that how can we store and retrieve doc or pdf or excel (or any type of file) in SQL Server. Few friends (developers) have also posted comment that they receive only 13 byte when they retrieve stored image or doc or xls or pdf or rtf file. So I thought let be write </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8978745050138530926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8978745050138530926&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8978745050138530926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8978745050138530926'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/storing-and-retrieving-docpdfxls-files.html' title='Storing and Retrieving doc/pdf/xls files in SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6510141903821787324</id><published>2007-08-30T14:41:00.001+05:30</published><updated>2007-08-30T14:41:39.871+05:30</updated><title type='text'>Great tool for LINQ Query</title><summary type='text'>       Joseph Albahari has created a great tool for LINQ query expression. You can dwnload it from here. Happy Programmig !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6510141903821787324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6510141903821787324&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6510141903821787324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6510141903821787324'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/great-tool-for-linq-query.html' title='Great tool for LINQ Query'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2183031677922481551</id><published>2007-08-25T15:33:00.001+05:30</published><updated>2007-08-25T15:50:25.036+05:30</updated><title type='text'>How to use transaction in LINQ using C#</title><summary type='text'>           I installed VS 2008 beta 2 before few days and started exploring it. I looked in to the LINQ and found very interesting.  LINQ generates DataContext class which provides classes and methods which is used in OR-Mapping. You can also use your own stored procedures and views with LINQ. You may require to use transaction with your own SPs for Insert, Delete or Update operations.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2183031677922481551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2183031677922481551&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2183031677922481551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2183031677922481551'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/how-to-use-transaction-in-linq-using-c.html' title='How to use transaction in LINQ using C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5259188523388821843</id><published>2007-08-23T16:55:00.001+05:30</published><updated>2007-08-23T16:55:54.275+05:30</updated><title type='text'>Raise event from user control to main page / Event delegation from user control to aspx page in ASP.NET,C#</title><summary type='text'>          "What is delegate?" we all have faced this question in one or more interview. :) and the most common answer is "Function pointer". Here I am showing a simple example of delegate. I have one user control and one aspx page. The user control contains one button. When user click on this button I will call a method on main page using delegate. Here is my user control, &lt;%@ Control Language="C</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5259188523388821843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5259188523388821843&amp;isPopup=true' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5259188523388821843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5259188523388821843'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/raise-event-from-user-control-to-main.html' title='Raise event from user control to main page / Event delegation from user control to aspx page in ASP.NET,C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2519618647054232386</id><published>2007-08-21T18:39:00.001+05:30</published><updated>2007-08-21T18:39:02.274+05:30</updated><title type='text'>Application failed to initialize properly(0xcC000142). Press OK to terminate the application</title><summary type='text'> Hi,              I am having a small issue. I am calling a console application from ASP.NET 2.0 website. Below is my code,  string strPassword = Convert.ToString("Password");System.Security.SecureString ssPassword = new System.Security.SecureString();foreach (char chr in strPassword){          ssPassword.AppendChar(chr);}  System.Diagnostics.ProcessStartInfo info = new </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2519618647054232386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2519618647054232386&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2519618647054232386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2519618647054232386'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/application-failed-to-initialize.html' title='Application failed to initialize properly(0xcC000142). Press OK to terminate the application'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-5346444308951973693</id><published>2007-08-21T17:06:00.001+05:30</published><updated>2007-08-21T17:06:58.388+05:30</updated><title type='text'>Hide console window in console application</title><summary type='text'>          As you all know when you execute an console application it will load command prompt and shows out put. There are amny situation in which you do not want this console window to be dislayed to user while your application runing. You can do that by calling some unmanaged functions. I have used following method to do that which is posted by Brendan Grant on MSDN. using </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/5346444308951973693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=5346444308951973693&amp;isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5346444308951973693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/5346444308951973693'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/hide-console-window-in-console.html' title='Hide console window in console application'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2241852396341367683</id><published>2007-08-16T12:21:00.001+05:30</published><updated>2007-08-16T12:21:15.840+05:30</updated><title type='text'>Viewpoint content is not displayed OR Mime type for Viewpoint content</title><summary type='text'>        We are using Viewpoint 3-D content in our LMS (Learning Management System). The content is working fine in my local machine. However when I uploaded the LMS on deployment server the contect stopped working. The content loads perfectly. User can listen the sound and can change the step and steps, however 3-D content is not visible. After doing dome google search I found about Mime type </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2241852396341367683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2241852396341367683&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2241852396341367683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2241852396341367683'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/viewpoint-content-is-not-displayed-or.html' title='Viewpoint content is not displayed OR Mime type for Viewpoint content'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4251352363738813832</id><published>2007-08-08T17:23:00.001+05:30</published><updated>2007-08-08T17:23:48.830+05:30</updated><title type='text'>Generate thumbnail image in dotnet</title><summary type='text'>          If you have created any e-commerce site, you must have used thumbnail image to display product. You may have seen many sites which display thumbnail image and product description and when user click on image it shows large image of the product.  You can do this by uploading two different images for each product OR by uploading a single image and runtime generate thumbnail image from </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4251352363738813832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4251352363738813832&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4251352363738813832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4251352363738813832'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/generate-thumbnail-image-in-dotnet.html' title='Generate thumbnail image in dotnet'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6568114709531021782</id><published>2007-08-08T15:56:00.001+05:30</published><updated>2007-08-08T15:56:29.224+05:30</updated><title type='text'>Get height and width of image / Generate image object from byte array</title><summary type='text'>          We are storing image in database in our recent project. We do not store height and width for that image in database.  After few months of deployment the client wants to display the height and width of each image while we display image.  As we do not store height and width in database we need to find that runtime when we load the image from database. Below is the code that we used to </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6568114709531021782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6568114709531021782&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6568114709531021782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6568114709531021782'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/get-height-and-width-of-image-generate.html' title='Get height and width of image / Generate image object from byte array'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-471096026522345715</id><published>2007-08-01T18:16:00.001+05:30</published><updated>2007-08-01T18:16:59.868+05:30</updated><title type='text'>Using the inserted and deleted Tables in SQL Sever</title><summary type='text'>          DML trigger statements use two special tables: the deleted table and the inserted tables. SQL Server 2005 automatically creates and manages these tables. You can use these temporary, memory-resident tables to test the effects of certain data modifications and to set conditions for DML trigger actions. You cannot directly modify the data in the tables or perform data definition language </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/471096026522345715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=471096026522345715&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/471096026522345715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/471096026522345715'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/using-inserted-and-deleted-tables-in.html' title='Using the inserted and deleted Tables in SQL Sever'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4013096343558652382</id><published>2007-08-01T17:00:00.001+05:30</published><updated>2007-08-01T17:00:20.479+05:30</updated><title type='text'>Triggres in SQL Sever</title><summary type='text'>           A trigger is single or multiple SQL statements that fires as an actionwhen event (like INSERT, DELETE,UPDATE, CREATE, ALTER, DROP) occures. You can devide tringgers in to two parts. DDL Triggers and DML Triggers. DDL (Data Defenition Language)  Triggers              DDL Triggers are a special kind of trigger that fire in response to Data Definition Language (DDL) statements. These </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4013096343558652382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4013096343558652382&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4013096343558652382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4013096343558652382'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/08/triggres-in-sql-sever.html' title='Triggres in SQL Sever'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8146565239702517913</id><published>2007-07-30T11:12:00.001+05:30</published><updated>2007-07-30T11:14:19.487+05:30</updated><title type='text'>Debugging JavaScript in MAC Safari / Tool to debug JavaScript in Safari</title><summary type='text'>      Safari has inbuilt debug menu for java script. By default it is hidden. Safari's "Debug" menu allows you to turn on the logging of JavaScript errors. To display the debug menu in Mac OS X, open a Terminal window and type:             defaults write com.apple.Safari IncludeDebugMenu 1       To display the debug menu in Safari 3.0 for Windows, use a text editor to add the following to the </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8146565239702517913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8146565239702517913&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8146565239702517913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8146565239702517913'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/07/debuging-javascript-in-mac-safari-tool.html' title='Debugging JavaScript in MAC Safari / Tool to debug JavaScript in Safari'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7782058366015689915</id><published>2007-07-28T17:17:00.001+05:30</published><updated>2007-07-28T17:17:45.518+05:30</updated><title type='text'>Session.SessionID is not unique</title><summary type='text'>    I have seen many forums in which users are asking that Session.SessionID is not unique. You also have seen forums saying that "I am getting different value for SessionID on every page or in each post back." Yes they are correct !!!! "This is not possible. How can it be?", I know this is your reaction. We have read in all the books and seen practically that SessionID is unique, until user logs</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7782058366015689915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7782058366015689915&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7782058366015689915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7782058366015689915'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/07/sessionsessionid-is-not-unique.html' title='Session.SessionID is not unique'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6172105718500084783</id><published>2007-07-24T17:37:00.001+05:30</published><updated>2007-07-24T17:39:01.250+05:30</updated><title type='text'>Dispose and Finalize in Dot Net OR Maemory Management using Dispose and Finalize</title><summary type='text'>       You can find article here Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6172105718500084783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6172105718500084783&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6172105718500084783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6172105718500084783'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/07/dispose-and-finalize-in-dot-net-or.html' title='Dispose and Finalize in Dot Net OR Maemory Management using Dispose and Finalize'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2611876470908841506</id><published>2007-07-23T12:50:00.001+05:30</published><updated>2007-07-23T12:50:26.817+05:30</updated><title type='text'>Delete single row from duplicate rows in SQL Server 2005 and 2000</title><summary type='text'>        Lets assume that you are using SQL Server 2005 for your current project. You found that you have few rows which have duplicate data in all the columns. Lets consider that you have table name "Example" which has two columns ID and Name.  CREATE TABLE [dbo].[Example]([ID] [int] NOT NULL,[Name] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL) ON [PRIMARY] Fig - (1) Create Statement </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2611876470908841506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2611876470908841506&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2611876470908841506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2611876470908841506'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/07/delete-single-row-from-duplicate-rows.html' title='Delete single row from duplicate rows in SQL Server 2005 and 2000'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3649514219187691341</id><published>2007-07-03T19:51:00.001+05:30</published><updated>2007-07-03T19:51:18.964+05:30</updated><title type='text'>Anonymous Type in C#</title><summary type='text'>           Anonymous types are a convenient language feature of C# and VB that enable developers to concisely define inline CLR types within code, without having to explicitly define a formal class declaration of the type.            Anonymous types are particularly useful when querying and transforming/projecting/shaping data with LINQ.              C# "Orcas" introduces a new var keyword that </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3649514219187691341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3649514219187691341&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3649514219187691341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3649514219187691341'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/07/anonymous-type-in-c.html' title='Anonymous Type in C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-9217228399037242085</id><published>2007-06-25T14:18:00.001+05:30</published><updated>2007-06-25T14:18:59.980+05:30</updated><title type='text'>Color Picker control in ASP.NET</title><summary type='text'>      Recently I have to use color picker control in my project so that each user has its own UI. The best color picker example I found on blogger.com. This inspired me to create my own color picker control.         You can find the user control here. Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/9217228399037242085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=9217228399037242085&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9217228399037242085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9217228399037242085'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/color-picker-control-in-aspnet.html' title='Color Picker control in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8608896122738160742</id><published>2007-06-20T15:28:00.001+05:30</published><updated>2007-06-20T16:20:22.873+05:30</updated><title type='text'>Create/Delete/View Virtual Directory or Website in IIS using C#</title><summary type='text'>     Hi, in my previous atrlicle I show how to create virtual directory. Here I have attched the code for creating , deleteing or listing virtual directories or website in IIS using ASP.NET and C#.      Code uses DirectoryService name space which allows access to Internet Information Services (IIS). The System.DirectoryServices namespace also provides access to the Active Directory. The classes </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8608896122738160742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8608896122738160742&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8608896122738160742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8608896122738160742'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/createdeleteview-virtual-directory-or.html' title='Create/Delete/View Virtual Directory or Website in IIS using C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7946581979244645760</id><published>2007-06-19T16:27:00.001+05:30</published><updated>2007-06-19T16:27:22.522+05:30</updated><title type='text'>PNG issue in IE 6 or previous version</title><summary type='text'>      In my recent project, I found a starnge behaviour of PNG file. We have created PNG files with transparent back ground for logo. Everything is working fine in IE 7 , Opera, Firefox and even in Safari. However when we saw the image in IE 6 we found a problem that it does not display as transparent back ground.      Here is the PNG file with transparent back ground. Just save it to your PC and</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7946581979244645760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7946581979244645760&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7946581979244645760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7946581979244645760'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/png-issue-in-ie-6-or-previous-version.html' title='PNG issue in IE 6 or previous version'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2610657214465393503</id><published>2007-06-13T11:32:00.001+05:30</published><updated>2007-06-13T11:32:32.848+05:30</updated><title type='text'>Moving Options/values up and down in list box using javascript</title><summary type='text'>         Recently I found a really good article on moving options up and down in list box using javascript. Here is the link. Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2610657214465393503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2610657214465393503&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2610657214465393503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2610657214465393503'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/moving-optionsvalues-up-and-down-in.html' title='Moving Options/values up and down in list box using javascript'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3257882516698196</id><published>2007-06-13T11:27:00.001+05:30</published><updated>2007-06-13T11:27:42.485+05:30</updated><title type='text'>Moving value from one list box to other list box using javascript</title><summary type='text'>           Recent ly I found a really good article on moving value from one list box to another list box using javascript. Here is the link. Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3257882516698196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3257882516698196&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3257882516698196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3257882516698196'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/moving-value-from-one-list-box-to-other.html' title='Moving value from one list box to other list box using javascript'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1359226439543841965</id><published>2007-06-06T14:39:00.001+05:30</published><updated>2007-06-06T14:52:22.106+05:30</updated><title type='text'>Shadow Copying</title><summary type='text'>                A fantastic feature of ASP.NET is that the code for a Web site can be changed on the fly without shutting down the Web server. When a Web site's file is changed on the hard disk, ASP.NET detects this, unloads the AppDomain that contains the old version of the files (when the last currently running request finishes), and then creates a new AppDomain, loading into it the new </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1359226439543841965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1359226439543841965&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1359226439543841965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1359226439543841965'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/shadow-copying.html' title='Shadow Copying'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4119204874760198626</id><published>2007-06-06T13:15:00.001+05:30</published><updated>2007-06-06T13:15:12.664+05:30</updated><title type='text'>Add items in Drop Down List or List Box using Javascript</title><summary type='text'>        I have seen lots of questions in diffrent forums for adding items in drop down list or list box using javascript. Below is the script for the same.   &lt;script type="text/javascript"&gt;    function AddItem(Text,Value)    {        // Create Option object        var opt = document.createElement("option");                // Add Option to Dropdown/Listbox        document.getElementById</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4119204874760198626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4119204874760198626&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4119204874760198626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4119204874760198626'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/add-items-in-drop-down-list-or-list-box.html' title='Add items in Drop Down List or List Box using Javascript'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-207627868185105229</id><published>2007-06-04T14:51:00.001+05:30</published><updated>2007-06-04T14:51:00.122+05:30</updated><title type='text'>Create Virtual Directory in IIS using C#</title><summary type='text'>            In my recent project I need to create virtual directory in IIS programmatically.  I was searching on net and found a really good article posted by Dipali Choksi. You can find the artilce here. I have copied that article below for my reference.   Using System.DirectoryServices;private void btnCreateDirectory_Click(object sender, EventArgs e){          string strSchema = "</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/207627868185105229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=207627868185105229&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/207627868185105229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/207627868185105229'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/06/create-virtual-directory-in-iis-using-c_04.html' title='Create Virtual Directory in IIS using C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6734884483932615315</id><published>2007-05-28T17:01:00.001+05:30</published><updated>2007-05-28T17:01:43.846+05:30</updated><title type='text'>Thousand Separator function for Java Script</title><summary type='text'>     In my project, I have to display the total of selected item in thousand separated format. I am using java script to find total of selected values. Now I have to display the result in Thousand deperated format (like 12,345.00). Here the function that I have used to do that.       &lt;script language = "javascript"&gt;    function ThousandSeparator(decimalDigits,Value)    {           // Separator </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6734884483932615315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6734884483932615315&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6734884483932615315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6734884483932615315'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/thousand-separator-function-for-java.html' title='Thousand Separator function for Java Script'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7601896608960640983</id><published>2007-05-26T13:05:00.001+05:30</published><updated>2007-05-26T13:05:40.605+05:30</updated><title type='text'>An error occured while establishing a connection to server. When connectiing to SQL Server 2005,...SQL Network Interfaces, error:26 - Error Locating Server/Instance Specified.</title><summary type='text'>      I have seen this error so many time so I thought that let me post the solution that work for me. First thing check your connection string that it points correct server. This is the most common mistake. Sometime connection string points to SQL Express, while machine does not have SQL Expressed installed.       If the connection string is correct, second step is to check congiguration of SQL.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7601896608960640983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7601896608960640983&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7601896608960640983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7601896608960640983'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/error-occured-while-establishing.html' title='An error occured while establishing a connection to server. When connectiing to SQL Server 2005,...SQL Network Interfaces, error:26 - Error Locating Server/Instance Specified.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2275995809390886742</id><published>2007-05-24T17:58:00.001+05:30</published><updated>2007-05-24T17:58:03.691+05:30</updated><title type='text'>Disable right click on page.</title><summary type='text'>       Here is the code to disable right click on page.  &lt;html&gt;&lt;body oncontextmenu="return false;"&gt;     Try right click.&lt;/body&gt;&lt;/html&gt;    Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2275995809390886742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2275995809390886742&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2275995809390886742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2275995809390886742'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/disable-right-click-on-page.html' title='Disable right click on page.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-9038914476873497710</id><published>2007-05-24T17:04:00.001+05:30</published><updated>2007-05-24T17:04:32.545+05:30</updated><title type='text'>Prototype.js</title><summary type='text'>       Today while surfing, I found a good javascript framework Prototype.js. It is a JavaScript library written by Sam Stephenson. This amazingly well thought and well written piece of standards-compliant code takes a lot of the burden associated with creating rich, highly interactive web pages that characterize the Web 2.0 off your back.        This framework helps the developers to write a </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/9038914476873497710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=9038914476873497710&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9038914476873497710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9038914476873497710'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/prototypejs.html' title='Prototype.js'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4771092506049989122</id><published>2007-05-24T13:05:00.001+05:30</published><updated>2007-05-24T13:05:40.110+05:30</updated><title type='text'>UML Diagrams</title><summary type='text'>      I have to create class and Sequence diagrams in my recent project. I was searching for for some quick and good material for UML diagrams. I found the really cool article here.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4771092506049989122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4771092506049989122&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4771092506049989122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4771092506049989122'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/uml-diagrams.html' title='UML Diagrams'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7364438860807191104</id><published>2007-05-03T17:36:00.001+05:30</published><updated>2007-05-03T17:36:37.475+05:30</updated><title type='text'>Custom DateTime Format Specifier</title><summary type='text'>      Yesterday during surfing I foud really important material on net. I was feeling sleepy so not addded site in favorite and hence notable to give reference here. However I have copied the content in notepad. Its really very helpfull. d  Displays the current day of the month.  dd  Displays the current day of the month, where values &lt; 10 have a leading zero.  ddd  Displays the three-letter </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7364438860807191104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7364438860807191104&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7364438860807191104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7364438860807191104'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/05/custom-datetime-format-specifier.html' title='Custom DateTime Format Specifier'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-2148367019368027922</id><published>2007-04-30T14:32:00.001+05:30</published><updated>2007-04-30T14:33:28.109+05:30</updated><title type='text'>HTTP 405 -Resource not allowed Error in IIS</title><summary type='text'>       When attempting to POST to a web page in Internet Information Services (IIS) 5.1 under Windows 2000 (Win2k) or Windows XP, you may receive the following error:   The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect.  --------------------------------------------------------------------------------  Please try the following: If </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/2148367019368027922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=2148367019368027922&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2148367019368027922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/2148367019368027922'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/http-405-resource-not-allowed-error-in.html' title='HTTP 405 -Resource not allowed Error in IIS'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-9204131248680262909</id><published>2007-04-20T17:24:00.001+05:30</published><updated>2007-04-20T17:24:06.127+05:30</updated><title type='text'>ASP.NET Session State Management Using SQL Server</title><summary type='text'>             Web applications are by nature stateless. Statelessness is both an advantage and a disadvantage. When resources are not being consumed by maintaining connections and state, scalability is tremendously improved. But the lack of state reduces functionality severely. Ecommerce applications require state to be maintained as the user navigates from page to page. ASP.NET’s Session object </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/9204131248680262909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=9204131248680262909&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9204131248680262909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/9204131248680262909'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/aspnet-session-state-management-using.html' title='ASP.NET Session State Management Using SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4496024552982632524</id><published>2007-04-19T12:37:00.001+05:30</published><updated>2007-04-19T12:37:13.705+05:30</updated><title type='text'>Unable to load DLL 'ABCpdfCE6.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)</title><summary type='text'>    This is a common error that may occure while you are using ABCPDF to generate PDF in asp.net. If you install the component on your machine and use that in application it works fine. However when you copy that application on a machine on which component is not installed, it throws eception as "Unable to load DLL 'ABCpdfCE6.dll': The specified module could not be found. (Exception from HRESULT:</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4496024552982632524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4496024552982632524&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4496024552982632524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4496024552982632524'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/unable-to-load-dll-specified-module.html' title='Unable to load DLL &amp;#39;ABCpdfCE6.dll&amp;#39;: The specified module could not be found. (Exception from HRESULT: 0x8007007E)'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6632255730579818341</id><published>2007-04-19T11:56:00.001+05:30</published><updated>2007-04-19T11:56:41.695+05:30</updated><title type='text'>Create PDF in ASP.NET</title><summary type='text'>           In my current web application I have to genarate PDF for subcription information and need to attach in email. I was searching a component which can generate PDF from HTML content. ABC PDF is really a cool component to generate PDF and really simple to use in application. You can find the trial version here. Happy Programming !!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6632255730579818341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6632255730579818341&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6632255730579818341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6632255730579818341'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/create-pdf-in-aspnet.html' title='Create PDF in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-35207114371706603</id><published>2007-04-18T00:24:00.001+05:30</published><updated>2007-04-18T00:24:00.542+05:30</updated><title type='text'>Session Management in ASP.NET</title><summary type='text'>ASP.NET Session State: Architectural and Performance Considerations  I recently came across a great post on one of the internal forums describing the strengths and weaknesses of different ASP.NET session state strategies.  As you're probably aware, state management is an important consideration for web developers. The HTTP protocol is connectionless, so any web application that persists data </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/35207114371706603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=35207114371706603&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/35207114371706603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/35207114371706603'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/session-management-in-aspnet_18.html' title='Session Management in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1426740966633595460</id><published>2007-04-18T00:21:00.001+05:30</published><updated>2007-04-18T00:21:21.485+05:30</updated><title type='text'>Session Management in ASP.NET</title><summary type='text'>ASP.NET Session State: Architectural and Performance Considerations  I recently came across a great post on one of the internal forums describing the strengths and weaknesses of different ASP.NET session state strategies. Its author, J.D. Meier, has graciously given me permission to use it as the basis of a blog entry.  As you're probably aware, state management is an important consideration for </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1426740966633595460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1426740966633595460&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1426740966633595460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1426740966633595460'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/session-management-in-aspnet.html' title='Session Management in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1115149196357435527</id><published>2007-04-18T00:08:00.001+05:30</published><updated>2007-04-18T00:08:13.268+05:30</updated><title type='text'>Difference between user defined function and stored procedure</title><summary type='text'> Advantages of User Defined Functions Before SQL 2000, User Defined Functions (UDFs), were not available. Stored Procedures were often used in their place. When advantages or disadvantages of User Defined Functions are discussed, the comparison is usually to Stored Procedures.  One of the advantages of User Defined Functions over Stored Procedures, is the fact that a UDF can be used in a Select, </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1115149196357435527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1115149196357435527&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1115149196357435527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1115149196357435527'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/difference-between-user-defined.html' title='Difference between user defined function and stored procedure'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6601880966013019746</id><published>2007-04-17T18:52:00.001+05:30</published><updated>2007-04-17T18:52:45.595+05:30</updated><title type='text'>Javascript function to check valid decimal value with specified digits after decimal point</title><summary type='text'>    Below is the function that validates only positive decimal numbers in text box. You can specify number of digits that can be allow after decimal point.  var DigitsAfterDecimal = 8;function CheckUnit()    {                if(document.getElementById            ("TextBoxName").value == '' )        {            alert("Please enter valid decimal             value");            return false;</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6601880966013019746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6601880966013019746&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6601880966013019746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6601880966013019746'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/javascript-function-to-check-valid.html' title='Javascript function to check valid decimal value with specified digits after decimal point'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3957267658231825113</id><published>2007-04-08T01:03:00.001+05:30</published><updated>2007-04-08T01:03:40.949+05:30</updated><title type='text'>Transferring sessions from asp to aspx</title><summary type='text'>          In my starting days with dotnet before 2 years, all vendors were converting from ASP to ASP.NET. They still wanted some of the pages in ASP. The real problem is to transfer session from asp page to aspx page.  The easiest way I found was shown below.          Lest say that you have a page Old.asp and a page New.aspx . You need to transfer the session from Old to New. The idea is create </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3957267658231825113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3957267658231825113&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3957267658231825113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3957267658231825113'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/transferring-sessions-from-asp-to-aspx.html' title='Transferring sessions from asp to aspx'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-6364140876156938356</id><published>2007-04-06T20:22:00.001+05:30</published><updated>2007-04-06T20:22:08.651+05:30</updated><title type='text'>Validation of viewstate MAC failed.</title><summary type='text'>            I was trying to post my aspx page to new page using JavaScript. The common methods "document.form1.submit()". I have specified action and method attribute also. Still I was getting error on form submit as shown below, "Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that &lt;machineKey&gt; configuration specifies the same validationKey and </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/6364140876156938356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=6364140876156938356&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6364140876156938356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/6364140876156938356'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/validation-of-viewstate-mac-failed.html' title='Validation of viewstate MAC failed.'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4679774825497720841</id><published>2007-04-03T00:08:00.001+05:30</published><updated>2007-04-03T00:08:38.298+05:30</updated><title type='text'>Single Sign on between Form Authentication Applications</title><summary type='text'>    In my recent interview, I faced an interesting question. "Can we use single sign on for diffrent Form Authentication Sites?". Obviously my answer was "No Idea". After that I search on net for this and found that, yes !! we can do that. Below is the way to achieve this.    SSO for parent and child application in the virtual sub-directoryLets assume that we have two .NET applications - Foo and </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4679774825497720841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4679774825497720841&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4679774825497720841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4679774825497720841'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/04/single-sign-on-between-form.html' title='Single Sign on between Form Authentication Applications'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7308966318750472535</id><published>2007-03-26T23:40:00.001+05:30</published><updated>2007-03-26T23:40:27.665+05:30</updated><title type='text'>Add to Favorite in Firefox and IE</title><summary type='text'>      I was looking for the javascript to add the link in favorite. I have tried window.external.AddFavorite(location.href, document.title) which is working only in IE. I need to do that for firefox also. After spending few mnutes on google, I found the code working in both.  &lt;script type="text/javascript"&gt; function bookmarksite(){         if (document.all)        {             // For IE</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7308966318750472535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7308966318750472535&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7308966318750472535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7308966318750472535'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/add-to-favorite-in-firefox-and-ie.html' title='Add to Favorite in Firefox and IE'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8509841135533769131</id><published>2007-03-24T15:55:00.001+05:30</published><updated>2007-03-24T15:55:37.221+05:30</updated><title type='text'>Default button in ASP.NET</title><summary type='text'>           I was creating a search page and I require that when user press enter key, by default search button's click event should be fire. I look around for the solution and find the easiest one. You just need to write below line in page load of  your code behind file.   Form.DefaultButton = btnSubmit.UniqueID;            Here btnSubmit is the name of button. Happy Programming!!!!</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8509841135533769131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8509841135533769131&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8509841135533769131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8509841135533769131'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/default-button-in-aspnet.html' title='Default button in ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7342151021321735127</id><published>2007-03-19T17:23:00.001+05:30</published><updated>2007-03-19T17:23:40.448+05:30</updated><title type='text'>Nullable datatypes in C#</title><summary type='text'>       In C# 2.0 there is a special datatypes called Nullable datatypes. You can assign null to them. Here is some basic information regarding Nullable data types.         You can make any value types to nullable data types by writing as shown below.  public int? intA = null; Fig - (1) Declaring integer data types so it can have null as value.         Fig (1) shows how to declare data types do </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7342151021321735127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7342151021321735127&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7342151021321735127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7342151021321735127'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/nullable-datatypes-in-c.html' title='Nullable datatypes in C#'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1880251632373203068</id><published>2007-03-16T15:57:00.001+05:30</published><updated>2007-03-16T15:57:40.152+05:30</updated><title type='text'>Remove/Delete element from page using JavaScript working in FireFox,IE,Opera</title><summary type='text'>        Few days ago, I was recalling my Java script skill. I was generating Grid using java script script. Instead of using Display property ('none' or 'block') to show or hide the control, I was creating and removing element each time. Creating element is not a big deal. However the script for removing element is different in IE and Firefox.        In IE, we can remove the element using, </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1880251632373203068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1880251632373203068&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1880251632373203068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1880251632373203068'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/removedelete-element-from-page-using.html' title='Remove/Delete element from page using JavaScript working in FireFox,IE,Opera'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7211435661387172892</id><published>2007-03-15T23:32:00.001+05:30</published><updated>2007-03-15T23:32:55.732+05:30</updated><title type='text'>Create Serial Number Column using SQL Server</title><summary type='text'>       There is a common requirement to show records with serial number in Grid.  The common scenario is, we take template field and label in Item Template. In Row_DataBound we can generate serial number using variable which is increamnted each time. The another approach is to genarate this column in SQL itself. Yes you can do that..! Here is a Query for that.  SELECT ROW_NUMBER()  OVER (ORDER BY</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7211435661387172892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7211435661387172892&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7211435661387172892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7211435661387172892'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/create-serial-number-column-using-sql.html' title='Create Serial Number Column using SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8630598174852055905</id><published>2007-03-11T01:48:00.001+05:30</published><updated>2007-03-11T01:48:57.752+05:30</updated><title type='text'>Call parent window's javascript function from child window OR passing data from child window to parent window in javascript</title><summary type='text'>                Hi, I was working on small application and I had a requirement as described here. I was creating a page in wjich user can add multiple cotact detail for him. The page has facility for add, delete and edit the contact. I was storing all these information in view state and finally on Save All button adding them to database. Afte the page is completed client has requested that user </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8630598174852055905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8630598174852055905&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8630598174852055905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8630598174852055905'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/call-parent-window-javascript-function.html' title='Call parent window&amp;#39;s javascript function from child window OR passing data from child window to parent window in javascript'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-7891436724665368306</id><published>2007-03-06T02:04:00.001+05:30</published><updated>2007-03-06T02:04:18.793+05:30</updated><title type='text'>Storing and Retrieving Image in SQL Server</title><summary type='text'>           Hi, I saw many developers are asking this questions in different forums. Recently I saw this question on MSDN forum and I thought let me write a blog on this. I know many of us found this too easy however for new bees its bit hard.             In this article, I had used SQL Server 2005 as back end and C# as front end. SQL Server has "Image" data type to store the image. In Oracle and </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/7891436724665368306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=7891436724665368306&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7891436724665368306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/7891436724665368306'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/storing-and-retrieving-image-in-sql.html' title='Storing and Retrieving Image in SQL Server'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-4403733912533306955</id><published>2007-03-01T13:25:00.001+05:30</published><updated>2007-03-01T13:25:11.846+05:30</updated><title type='text'>Impersonation using Code</title><summary type='text'>      I was reading about impersonation and delegation. The most common way I found for impersonation is to write  a tag "&lt;impersonate = "true" username="Name" password ="password" /&gt;"  in web.config file.  This will impersoname specific user to each request. I want to impersonate network user for only one request.      In my project I have to create a directory which is shared on network and has</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/4403733912533306955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=4403733912533306955&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4403733912533306955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/4403733912533306955'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/03/impersonation-using-code.html' title='Impersonation using Code'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1545672928346118711</id><published>2007-02-28T16:20:00.001+05:30</published><updated>2007-02-28T16:20:44.439+05:30</updated><title type='text'>Remove extra space from Validation Summary</title><summary type='text'>       Hi, You all have observe that when we use validation summary,  it takes some extra space between header text and error messages.       You can remove extra space by using style sheet. Below is the code. &lt;style type="text/css"&gt;    UL   {          margin: 0 ;          padding:5px;   } &lt;/style&gt;  Fig - (1) CSS to remove extra space.  Happy Programming.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1545672928346118711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1545672928346118711&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1545672928346118711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1545672928346118711'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/remove-extra-space-from-validation.html' title='Remove extra space from Validation Summary'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-3092513192125333178</id><published>2007-02-26T13:29:00.001+05:30</published><updated>2007-02-26T13:29:36.816+05:30</updated><title type='text'>Google Map API control for ASP.NET</title><summary type='text'>              I have to work with google map in my current project. I search on net for the documentation of the API. Google has given really good exaples how to use that. However, everything is done using javascript. I was searching for the control that allow me to do all this at code behind. I found really good control at               http://be.sys-con.com/read/171162_1.htm           I have </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/3092513192125333178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=3092513192125333178&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3092513192125333178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/3092513192125333178'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/google-map-api-control-for-aspnet.html' title='Google Map API control for ASP.NET'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8290071381562824817</id><published>2007-02-22T19:00:00.001+05:30</published><updated>2007-02-22T19:00:18.280+05:30</updated><title type='text'>Use XML as input parameter to SP</title><summary type='text'>         Few days ago, in my blog(http://chiragrdarji.wordpress.com/2007/02/19/split-function-in-sql/)  I mentioned how to pass and use multiple values in single parameter in SP. I have mentioned that you can use XML format to do the same. Let me show you how to do that.          Cionsider that you have to delete 5 rows from table and you have value of primary key for those 5 records. You have to</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8290071381562824817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8290071381562824817&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8290071381562824817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8290071381562824817'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/use-xml-as-input-parameter-to-sp.html' title='Use XML as input parameter to SP'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-8271906547491016431</id><published>2007-02-21T13:33:00.001+05:30</published><updated>2007-02-21T13:33:02.176+05:30</updated><title type='text'>Auto-attach to process aspnet_wp.exe on machine xxxxxxx failed. Error code 0x8013134b</title><summary type='text'>         You can find the solution for this error at,  http://chiragrdarji.wordpress.com/2007/02/21/auto-attach-to-process-aspnet_wpexe-on-machine-xxxxxxx-failed-error-code-0x8013134b/ Happy Programming.</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/8271906547491016431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=8271906547491016431&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8271906547491016431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/8271906547491016431'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/auto-attach-to-process-aspnetwpexe-on.html' title='Auto-attach to process aspnet_wp.exe on machine xxxxxxx failed. Error code 0x8013134b'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1997896735423236042</id><published>2007-02-19T12:26:00.001+05:30</published><updated>2007-02-19T12:26:29.248+05:30</updated><title type='text'>Split function in SQL</title><summary type='text'>          I was working at home and extending a gridview control with some extra features I required. I have added one column with checkbox for multiple delete. To delete multiple records I need to pass either multiple ID to SP and delete all or can pass each ID one by one to SP.          I passed all ID as coma separated string to SP.  I used split function to split the coma separated ID, so </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1997896735423236042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1997896735423236042&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1997896735423236042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1997896735423236042'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/split-function-in-sql.html' title='Split function in SQL'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1690584468724739925</id><published>2007-02-16T17:21:00.001+05:30</published><updated>2007-02-16T17:21:01.234+05:30</updated><title type='text'>Dotnet 3.0 Training Material</title><summary type='text'>        I was serching for good material to learn cotnet 3.0. I found the good link which allows to download PPT file. Below is the link,         http://www.dotnet-university.com/</summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1690584468724739925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1690584468724739925&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1690584468724739925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1690584468724739925'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/dotnet-30-training-material.html' title='Dotnet 3.0 Training Material'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12446838.post-1474283211265010062</id><published>2007-02-16T13:44:00.003+05:30</published><updated>2007-02-16T13:44:54.686+05:30</updated><title type='text'>Using publisher policy assemblies</title><summary type='text'>            As we all knows .NET support side by side execution of multiple versions of component. In most cases, updating a component is simple.However, even in the .NET world, it is possible to break assembly binding when you update a component.  One achieve that control is the publisher policy assembly. What is a publisher policy assembly?                 A publisher policy assembly is an </summary><link rel='replies' type='application/atom+xml' href='http://chiragrdarji.blogspot.com/feeds/1474283211265010062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12446838&amp;postID=1474283211265010062&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1474283211265010062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12446838/posts/default/1474283211265010062'/><link rel='alternate' type='text/html' href='http://chiragrdarji.blogspot.com/2007/02/using-publisher-policy-assemblies.html' title='Using publisher policy assemblies'/><author><name>Raja</name><uri>http://www.blogger.com/profile/01555956548038611316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://a.wordpress.com/avatar/chiragrdarji-48.jpg'/></author><thr:total>0</thr:total></entry></feed>
