<?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-31384722</id><updated>2011-11-27T16:39:26.796-08:00</updated><category term='BLOB storage in sql server'/><category term='windows application'/><category term='error in visual studio'/><category term='Custom Webpart in MOSS 2007'/><category term='XSD'/><category term='.Net 1.1'/><category term='render rdlc as excel document'/><category term='image data type'/><category term='pdf from local report'/><category term='binary streaming'/><category term='IE Web Controls'/><category term='Limit text length in textarea'/><category term='Microsoft® Tech·Ed Middle East 2010'/><category term='excel from local report'/><category term='Ajax pre-loader image online generator'/><category term='Import Wizard'/><category term='SQL Server 2005 Express'/><category term='Share Point 2003'/><category term='ATLAS'/><category term='always on top'/><category term='Javscript'/><category term='MOSS 2007 Customization'/><category term='Print Preview with CSS'/><category term='excel import in asp.net'/><category term='Grouping'/><category term='Export Wizard'/><category term='AJAX Tab Container'/><category term='CSS menu'/><category term='dotnet'/><category term='File Upload'/><category term='GirdView'/><category term='FireFox'/><category term='stsam.exe'/><category term='winforms'/><category term='Temperory Tables'/><category term='CSS'/><category term='SQL Server 2005 Express DTS Wizard'/><category term='_vti_bin/lists.asmx'/><category term='View State'/><category term='OnClientClick and Form Validation'/><category term='Web.config'/><category term='The open source'/><category term='File v/s BLOB storage in applications'/><category term='MDI child window'/><category term='VS.Net 2005'/><category term='Cannot create/shadow copy'/><category term='Microsoft Search Engine'/><category term='asp.net menu'/><category term='visual studio'/><category term='Parameters'/><category term='Crystal Report'/><category term='Array'/><category term='FileUpload Control'/><category term='text area text length'/><category term='asp.net'/><category term='return value from window.showModalDialog'/><category term='Failed to decrypt the Web.config in asp.net'/><category term='google browser'/><category term='dbo.aspnet_CheckSchemaVersion'/><category term='CSS page layout'/><category term='numeric'/><category term='.Net 2.0'/><category term='ASP.NET FAQ for interviews'/><category term='MOSS 2007'/><category term='ASP.Net 2.0'/><category term='URL Rewriting'/><category term='.Net'/><category term='SQL Server'/><category term='Custom Web Parts'/><category term='Free CSS web template'/><category term='Printer Friendly'/><category term='Object Library'/><category term='Import excel in dataset'/><category term='Menu Control'/><category term='Security'/><category term='IDE'/><category term='excel import'/><category term='Cross Database'/><category term='DataFormatString for gridview in asp.net'/><category term='MICROSoft AJAX ASP.net'/><category term='windows worm Conficker'/><category term='Formdigest control'/><category term='Get GridView row in button click event'/><category term='Referential Integrity'/><category term='Shopping Cart Web Template'/><category term='asp.net reporting'/><category term='Disaster Recovery in SharePoint Products and Technologies 2003'/><category term='Redirect URI cannot contain newline characters'/><category term='text-align:center'/><category term='Custom Pages in MOSS 2007'/><category term='Share Point Customization'/><category term='read excel'/><category term='Improve site performance by compressing ViewState'/><category term='asp.net validation'/><category term='SharePoint'/><category term='ASP.Net and Share Point'/><category term='The server instance specified was not found. Please specify the server&apos;s address and port'/><category term='aspnet_regsql'/><category term='Pass Array to javascript'/><category term='Web Service'/><category term='css button'/><category term='WSS 3.0'/><category term='read excel in asp.net'/><category term='convert excel into dataset'/><category term='integer only'/><category term='Bing'/><category term='Google Chrome'/><category term='excel binding in asp.net'/><category term='Share Point'/><category term='Mini icons for your web applications'/><category term='Active Directory'/><category term='VS.Net 2003'/><category term='Get page number for group failed'/><category term='Export Import DTS wizard'/><category term='Javascript Arrays'/><category term='blobs'/><category term='imageURL'/><category term='SiteMapNode'/><category term='Web Service Consumption'/><category term='Calendar Control'/><category term='DataKeys'/><category term='ASP.Net 2.0 Membership provider'/><category term='rdlc as pdf document'/><title type='text'>:::Dots and nets::. Microsoft Developer Channel</title><subtitle type='html'>public class dotsAndNets{
  "..i would change world but they won't give me 
  the source code" - 'X'
}</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-31384722.post-6509919402930395788</id><published>2010-03-04T02:21:00.000-08:00</published><updated>2010-03-04T02:32:13.556-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft® Tech·Ed Middle East 2010'/><title type='text'>Microsoft® Tech·Ed Middle East 2010</title><content type='html'>Oh..at last i got the opprotunity to attend the Tech-Ed 2010 MENA. The even was very successfull, being attended by professionals from across Midde East and Africa.&lt;br /&gt;&lt;br /&gt;I have got the wonderful chance to meet &lt;a href="http://www.sharepointjoel.com/"&gt;Joel&lt;/a&gt; and Shahid Gaglani (once again). Joel as always done sessions with smiles and Shahid was not lined up for the session (unfortunately).&lt;br /&gt;&lt;br /&gt;The other exciting figures of the event are &lt;a href="http://www.hanselman.com/blog/"&gt;Scott Hanselman&lt;/a&gt; and Micheal Noel!. Scott is excellent in his work, his session was awesome!...You are the man!.. You made the &lt;a href="http://www.asp.net/(S(d35rmemuuono1wvm1gsp2n45))/mvc/"&gt;Asp.net MVC&lt;/a&gt; simpler to me.&lt;br /&gt;&lt;br /&gt;Noel, you are the ocean of knowledge. You have the stuff to speak!&lt;br /&gt;&lt;br /&gt;The very interested tracks were on MVC and SharePoint!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6509919402930395788?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6509919402930395788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6509919402930395788' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6509919402930395788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6509919402930395788'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2010/03/microsoft-tech-ed-middle-east-2010.html' title='Microsoft® Tech·Ed Middle East 2010'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-941598756399335218</id><published>2009-11-04T21:13:00.000-08:00</published><updated>2009-11-04T21:15:28.217-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dotnet'/><category scheme='http://www.blogger.com/atom/ns#' term='Active Directory'/><title type='text'>Active Directory and .Net</title><content type='html'>Excellent resource for programming AD (LDAP) in .Net&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnettreats.com/tipstricks/adnet.aspx"&gt;http://www.dotnettreats.com/tipstricks/adnet.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-941598756399335218?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/941598756399335218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=941598756399335218' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/941598756399335218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/941598756399335218'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/11/active-directory-and-dotnet.html' title='Active Directory and .Net'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6849422310024537953</id><published>2009-06-07T21:54:00.000-07:00</published><updated>2009-06-07T21:57:32.140-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IDE'/><category scheme='http://www.blogger.com/atom/ns#' term='The open source'/><title type='text'>Open Source IDE for .Net (Free...)</title><content type='html'>The open source IDE for .net (Free Tool)&lt;br /&gt;&lt;a href="http://www.icsharpcode.net/OpenSource/SD/Default.aspx"&gt;http://www.icsharpcode.net/OpenSource/SD/Default.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ Soldier&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6849422310024537953?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6849422310024537953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6849422310024537953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6849422310024537953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6849422310024537953'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/06/open-source-ide-dotnet.html' title='Open Source IDE for .Net (Free...)'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1875859974594062528</id><published>2009-06-05T23:45:00.003-07:00</published><updated>2009-06-05T23:48:33.304-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bing'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Search Engine'/><title type='text'>Microsoft Search Engine - Bing</title><content type='html'>Microsoft has formally launched its new "decision engine" called Bing, &lt;br /&gt;Try &lt;a href="www.bing.com"&gt;www.bing.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1875859974594062528?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1875859974594062528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1875859974594062528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1875859974594062528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1875859974594062528'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/06/microsoft-search-engine-bing.html' title='Microsoft Search Engine - Bing'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7084239802646863184</id><published>2009-05-19T12:47:00.001-07:00</published><updated>2009-05-19T12:51:11.722-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='return value from window.showModalDialog'/><title type='text'>How to return value from window.showModalDialog to parent window in javascript ?</title><content type='html'>Here is the example&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Function to open dialog window from parent window&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;function showFleetDialog() &lt;br /&gt;{&lt;br /&gt;    var oReturnValue = window.showModalDialog("/abc/page.aspx", this, "dialogWidth:800px;dialogHeight:500px;resizable:yes;");&lt;br /&gt;    if(oReturnValue != null) &lt;br /&gt;            document.getElementById('&lt;%= txtFleetNo.ClientID %&gt;').value = oReturnValue.FleetCode;&lt;br /&gt;            return false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Function to retun value from dialog window&lt;/strong&gt;&lt;br /&gt;function closeThisWindow(fleetCode, fleetId) &lt;br /&gt;{            &lt;br /&gt;  var o = new Object();&lt;br /&gt;  o.FleetCode = fleetCode;&lt;br /&gt;  o.FleetId = fleetId;&lt;br /&gt;  window.returnValue = o;&lt;br /&gt;  window.close();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/dotnetSoldier&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7084239802646863184?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7084239802646863184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7084239802646863184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7084239802646863184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7084239802646863184'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/05/return-value-window-showmodaldialog.html' title='How to return value from window.showModalDialog to parent window in javascript ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7663129285773216437</id><published>2009-04-22T22:09:00.000-07:00</published><updated>2009-04-22T22:26:37.446-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Failed to decrypt the Web.config in asp.net'/><title type='text'>Failed to decrypt the Web.config in asp.net</title><content type='html'>After encrypting the appSettings in web.config file using the command&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;aspnet_regiis -pef "appSettings" "c:\&amp;lt;appfolder&amp;gt;"&lt;/strong&gt;&lt;br /&gt;you may recieve the following error &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;"Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened." &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;or the site will not work since it cannot read/decrypt the web.config contents (connection string or any similiar data).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;This is because your ASP.NET application identity does not have access to the .NET Framework configuration key store. To give rights use the following command&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;aspnet_regiis -pa "NetFrameworkConfigurationKey" "&amp;lt;application pool identity account&amp;gt;"&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7663129285773216437?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7663129285773216437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7663129285773216437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7663129285773216437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7663129285773216437'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/04/failed-to-decrypt-webconfig.html' title='Failed to decrypt the Web.config in asp.net'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1293768801734133247</id><published>2009-01-19T20:12:00.000-08:00</published><updated>2009-01-19T20:26:27.363-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows worm Conficker'/><title type='text'>Millions effected with windows worm - Conficker, Kido or Downadup</title><content type='html'>The worm Conficker was discovered in October 2008. Anti-virus firm F-Secure estimates there are now 8.9m machines infected. &lt;br /&gt;&lt;br /&gt;According to Microsoft, the worm works by searching for a Windows executable file called "services.exe" and then becomes part of that code. It then copies itself into the Windows system folder as a random file of a type known as a "dll". It gives itself a 5-8 character name, such as piftoc.dll, and then modifies the Registry, which lists key Windows settings, to run the infected dll file as a service.&lt;br /&gt;&lt;br /&gt;Once the worm is up and running, it creates an HTTP server, resets a machine's System Restore point (making it far harder to recover the infected system) and then downloads files from the hacker's web site. &lt;br /&gt;&lt;br /&gt;Anti-virus firm F-Secure says that the worm uses a complicated algorithm to generate hundreds of different domain names every day, such as mphtfrxs.net, imctaef.cc, and hcweu.org. Only one of these will actually be the site used to download the hackers' files. On the face of it, tracing this one site is almost impossible.&lt;br /&gt;&lt;br /&gt;Once the worm is running on the computer, it makes it very hard for users to restore their machine to a safe point before their operating system was infected, and automatically starts to download more malicious programs, that further compromise the PC, from hackers’ websites.&lt;br /&gt;&lt;br /&gt;It’s using multiple replication mechanisms, including USB sticks, so if someone got an infection from one company and then takes his USB stick to another firm, it could infect that network too.&lt;br /&gt;&lt;br /&gt;Computers users are advised to ensure their anti-virus software, operating system and firewall is up to date, and that they have installed a Microsoft patch designed to combat the problem, &lt;a href="http://www.microsoft.com/technet/security/Bulletin/MS08-067.mspx"&gt;MS08-067, which is available from the Microsoft site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://news.bbc.co.uk/2/hi/technology/7832652.stm"&gt;Read More from BBC...&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1293768801734133247?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1293768801734133247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1293768801734133247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1293768801734133247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1293768801734133247'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/01/windows-worm-conficker-kido-or-downadup.html' title='Millions effected with windows worm - Conficker, Kido or Downadup'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5699130491195956784</id><published>2009-01-09T12:36:00.001-08:00</published><updated>2009-01-09T12:39:37.386-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Get GridView row in button click event'/><title type='text'>Get GridViewRow in button click event in GridView control</title><content type='html'>When we use template field columns with buttons in gridview, we may need to access the row number to find the datakeys in the button click event. And here is the code how it looks like..&lt;br /&gt;&lt;br /&gt;protected void lnkBtnCheckIn_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;   LinkButton lnkButton = sender as LinkButton;&lt;br /&gt;   GridViewRow row = lnkButton.Parent.Parent as GridViewRow;&lt;br /&gt;   int fleetMovemetId = 0;&lt;br /&gt;   int.TryParse(Gridview1.DataKeys[row.RowIndex].Values[1].ToString(), out fleetMovemetId);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Njoy..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5699130491195956784?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5699130491195956784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5699130491195956784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5699130491195956784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5699130491195956784'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/01/get-gridview-row-in-button-click-event.html' title='Get GridViewRow in button click event in GridView control'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-9207035849972205408</id><published>2009-01-09T04:15:00.000-08:00</published><updated>2009-01-09T04:19:54.547-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataFormatString for gridview in asp.net'/><title type='text'>DataFormatString in GridView control</title><content type='html'>Here is the  DataFormatString for date as 02-Jan-2009 02:10 PM in gridview in asp.net&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:boundfield headertext="C.I. Date &amp;amp; Time" datafield="checkin_datetime" htmlencode="false" dataformatstring="{0: dd-MMM-yyyy hh:mm tt}" /&amp;gt;&lt;br /&gt;&lt;br /&gt;-::HTH::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-9207035849972205408?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/9207035849972205408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=9207035849972205408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/9207035849972205408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/9207035849972205408'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/01/dataformatstring-in-gridview-control.html' title='DataFormatString in GridView control'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6501841745903742445</id><published>2009-01-09T02:54:00.000-08:00</published><updated>2009-01-09T12:40:23.022-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Redirect URI cannot contain newline characters'/><title type='text'>Error in Asp.Net : "Redirect URI cannot contain newline characters"</title><content type='html'>While you send the error message as query string to an error page using response.redirect method in asp.net, you may come across the following error.&lt;br /&gt;To get through, you should use URLEncode and URLDecode alone or with combination of HTMLEncode and HTMLDecode.&lt;br /&gt;&lt;br /&gt;Eg:-&lt;br /&gt;Response.Redirect(@"~/errorpage.aspx?.err=" + Server.UrlEncode(exception.Message) + "&amp;amp;.src=" + Server.UrlEncode(exception.Source));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6501841745903742445?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6501841745903742445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6501841745903742445' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6501841745903742445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6501841745903742445'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2009/01/redirect-uri-cannot-contain-newline.html' title='Error in Asp.Net : &quot;Redirect URI cannot contain newline characters&quot;'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7933492834262210025</id><published>2008-12-30T01:49:00.000-08:00</published><updated>2008-12-30T01:53:12.692-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File v/s BLOB storage in applications'/><title type='text'>File v/s BLOB storage in applications</title><content type='html'>This is my one of the old articles on File storage in applications. May help some readers..&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/database/File_Vs_Blob_Storage.aspx"&gt;http://www.codeproject.com/KB/database/File_Vs_Blob_Storage.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7933492834262210025?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7933492834262210025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7933492834262210025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7933492834262210025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7933492834262210025'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/file-vs-blob-storage-in-applications.html' title='File v/s BLOB storage in applications'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5002011493729332095</id><published>2008-12-30T01:46:00.001-08:00</published><updated>2008-12-30T01:49:00.641-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BLOB storage in sql server'/><title type='text'>BLOB Storage in SQL Server. How to store and retrive BLOBS in asp.net application</title><content type='html'>I have written an article on how to work on BLOB objects in asp.net and sql server. This may help the novice application developers.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/database/Store_and_manipulat_BLOBs.aspx"&gt;http://www.codeproject.com/KB/database/Store_and_manipulat_BLOBs.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-:HTH:-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5002011493729332095?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5002011493729332095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5002011493729332095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5002011493729332095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5002011493729332095'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/blob-storage.html' title='BLOB Storage in SQL Server. How to store and retrive BLOBS in asp.net application'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1316627954250187436</id><published>2008-12-30T01:33:00.000-08:00</published><updated>2008-12-30T01:35:18.878-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Improve site performance by compressing ViewState'/><title type='text'>How to improve site performance by compressing ViewState ?</title><content type='html'>Here is an article that describes how to improve aspnet site peroformance by compressing viewstate. Worth reading...&lt;a href="http://www.dotnetbips.com/articles/22d33d11-1a75-42c8-bbf6-ca1a345d3fcf.aspx"&gt;http://www.dotnetbips.com/articles/22d33d11-1a75-42c8-bbf6-ca1a345d3fcf.aspx&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1316627954250187436?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1316627954250187436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1316627954250187436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1316627954250187436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1316627954250187436'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/improve-performance-by-compressing.html' title='How to improve site performance by compressing ViewState ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-3075611931735067411</id><published>2008-12-30T01:30:00.001-08:00</published><updated>2008-12-30T01:33:02.422-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET FAQ for interviews'/><title type='text'>Best ASP.NET FAQ for interviews</title><content type='html'>Here are some useful links...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/faq/aspnet/default.aspx"&gt;http://www.syncfusion.com/faq/aspnet/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.aspnetfaq.com"&gt;http://www.aspnetfaq.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4081&amp;lngWId=10"&gt;http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4081&amp;lngWId=10&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.techinterviews.com/?p=193"&gt;http://www.techinterviews.com/?p=193&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.crsw.com/mark/articles/254.aspx"&gt;http://blogs.crsw.com/mark/articles/254.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-3075611931735067411?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/3075611931735067411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=3075611931735067411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/3075611931735067411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/3075611931735067411'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/best-aspnet-faq-for-interviews.html' title='Best ASP.NET FAQ for interviews'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-303092850640488105</id><published>2008-12-30T01:24:00.000-08:00</published><updated>2008-12-30T01:25:45.036-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shopping Cart Web Template'/><title type='text'>Shopping Cart Web Template</title><content type='html'>Here is a nice shopping cart web template..Take it up from there...&lt;br /&gt;&lt;a href="http://demo.x-cart.com"&gt;http://demo.x-cart.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-303092850640488105?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/303092850640488105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=303092850640488105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/303092850640488105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/303092850640488105'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/shopping-cart-web-template.html' title='Shopping Cart Web Template'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7459804320388590049</id><published>2008-12-30T01:23:00.000-08:00</published><updated>2008-12-30T01:24:33.068-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Free CSS web template'/><title type='text'>Another free CSS web template</title><content type='html'>This will help the beginners to start with the simple site design and layouts..&lt;br /&gt;Grab it..&lt;br /&gt;&lt;a href="http://www.free-css-templates.com"&gt;http://www.free-css-templates.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7459804320388590049?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7459804320388590049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7459804320388590049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7459804320388590049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7459804320388590049'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/another-free-css-web-template.html' title='Another free CSS web template'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1613293957636986330</id><published>2008-12-30T01:19:00.000-08:00</published><updated>2008-12-30T01:20:59.488-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mini icons for your web applications'/><title type='text'>Mini icons for your web applications....</title><content type='html'>Here are some nice icons which we can use it inside the controlsa and for CSS while developing web applications...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://icons.primail.ch/ "&gt;http://icons.primail.ch/ &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Digg it....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1613293957636986330?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1613293957636986330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1613293957636986330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1613293957636986330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1613293957636986330'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/mini-icons-for-your-web-applications.html' title='Mini icons for your web applications....'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4787877378444221363</id><published>2008-12-30T01:09:00.000-08:00</published><updated>2008-12-30T01:19:18.937-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Disaster Recovery in SharePoint Products and Technologies 2003'/><title type='text'>Disaster Recovery in SharePoint Products and Technologies 2003</title><content type='html'>The below informations will help you a lot when you start managing the SharePoint server farm of your organization since failure is not an option for us (IT) !&lt;br /&gt;&lt;br /&gt;This URL points to a page on TECHNET that may interest you:  &lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc750142.aspx"&gt;http://technet.microsoft.com/en-us/library/cc750142.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How to perform a disaster recovery operation of Windows SharePoint Services 2.0 Companyweb and Windows SharePoint Services 2.0 databases?&lt;br /&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/827701"&gt;http://support.microsoft.com/default.aspx/kb/827701&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Move SharePoint sites across server farm&lt;br /&gt;&lt;a href="http://blogs.msdn.com/priyo/archive/2006/03/24/559896.aspx "&gt;http://blogs.msdn.com/priyo/archive/2006/03/24/559896.aspx &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I thought this Help and How-to article from Microsoft(R) Office Online might interest you. &lt;a href="http://office.microsoft.com/en-us/sharepointdesigner/HA100699391033.aspx?WT.mc_id=42 "&gt;"Back up, restore, or move a SharePoint site"&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-::HTH::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4787877378444221363?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4787877378444221363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4787877378444221363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4787877378444221363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4787877378444221363'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/disaster-recovery-in-sharepoint.html' title='Disaster Recovery in SharePoint Products and Technologies 2003'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6355186054345187588</id><published>2008-12-30T01:07:00.000-08:00</published><updated>2008-12-30T01:13:42.398-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax pre-loader image online generator'/><title type='text'>Ajax pre-loader image online generator</title><content type='html'>Here we go!...&lt;a href="http://www.ajaxload.info/"&gt;http://www.ajaxload.info/&lt;/a&gt;&lt;br /&gt;You can have your own ajax pre-loader...build your own styles..&lt;br /&gt;&lt;br /&gt;Ziyad&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6355186054345187588?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6355186054345187588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6355186054345187588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6355186054345187588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6355186054345187588'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/ajax-pre-loader-image-online-generator.html' title='Ajax pre-loader image online generator'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1492978643582498439</id><published>2008-12-30T01:01:00.000-08:00</published><updated>2008-12-30T01:02:17.289-08:00</updated><title type='text'>Here is a joke!</title><content type='html'>Long back, a person who sacrificed his sleep, forgot his family, forgot his food, Forgot laughter were called "Saints", But now they are called.. "&lt;strong&gt;IT professionals&lt;/strong&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1492978643582498439?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1492978643582498439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1492978643582498439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1492978643582498439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1492978643582498439'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/here-is-joke.html' title='Here is a joke!'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4276867088852106404</id><published>2008-12-29T04:44:00.000-08:00</published><updated>2008-12-29T04:51:43.087-08:00</updated><title type='text'>Happy Holidays !</title><content type='html'>Dear readers,&lt;br /&gt;I wish you all Merry Christmas, Happy New Year and Happy Holidays !&lt;br /&gt;&lt;br /&gt;Rgds, Z&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4276867088852106404?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4276867088852106404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4276867088852106404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4276867088852106404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4276867088852106404'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/happy-holidays.html' title='Happy Holidays !'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1492107745238231469</id><published>2008-12-29T04:35:00.000-08:00</published><updated>2008-12-29T04:38:23.143-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='css button'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS page layout'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS menu'/><title type='text'>Tool to generate CSS Menu, CSS Button, CSS Page Layout, etc. and free template</title><content type='html'>Hey developers, here is the nice tool to create your own CSS driven menu, web page layout, button and nice site template for free...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cssportal.com/"&gt;http://www.cssportal.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this will help us in our work...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1492107745238231469?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1492107745238231469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1492107745238231469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1492107745238231469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1492107745238231469'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/css-menu-generator.html' title='Tool to generate CSS Menu, CSS Button, CSS Page Layout, etc. and free template'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-3808127278745876752</id><published>2008-12-28T09:25:00.001-08:00</published><updated>2008-12-28T09:30:27.814-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='render rdlc as excel document'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net reporting'/><category scheme='http://www.blogger.com/atom/ns#' term='excel from local report'/><title type='text'>How to render RDLC (local report) as excel in asp.net ?</title><content type='html'>Here we go - to render the rdlc local report in asp.net web application&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;public static void GenerateExcelFromLocalReport()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //get your report datasource from the database  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    IDataReader iReader = GetReportDataSourceReader();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    LocalReport report = new LocalReport();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    report.ReportPath = HttpContext.Current.Server.MapPath("~/reports&lt;br /&gt;      /rdlc/MyReport.rdlc");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    report.DataSources.Add(new ReportDataSource("DataSource1", iReader));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    ReportParameter[] parameters = new ReportParameter[3];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    parameters[0] = new ReportParameter("Filter1", "Filter1's value"));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    parameters[1] = new ReportParameter("Filter2", "Filter2's value");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    parameters[2] = new ReportParameter("Footer", "Footer's value");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    report.SetParameters(parameters);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //code to render report as excel document&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    string encoding = String.Empty;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    string mimeType = String.Empty;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    string extension = String.Empty;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Warning[] warnings = null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    string[] streamids = null;            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    byte[] byteArray = report.Render("Excel", null, out mimeType,&lt;br /&gt;       out encoding, out extension, out streamids, out warnings);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.AddHeader("Content-Disposition",&lt;br /&gt;      "attachment; filename=MyExcel.xls");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.AddHeader("Content-Length",&lt;br /&gt;      byteArray.Length.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.ContentType = "application/octet-stream";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.BinaryWrite(byteArray);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    HttpContext.Current.Response.End();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-::HTH::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-3808127278745876752?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/3808127278745876752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=3808127278745876752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/3808127278745876752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/3808127278745876752'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/generate-excel-from-local-report.html' title='How to render RDLC (local report) as excel in asp.net ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6354747626629210420</id><published>2008-12-28T09:07:00.000-08:00</published><updated>2008-12-28T09:37:11.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net reporting'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf from local report'/><category scheme='http://www.blogger.com/atom/ns#' term='rdlc as pdf document'/><title type='text'>How to generate or render .pdf document  from local report (rdlc)  with parameters ?</title><content type='html'>Here is the code to render the rdlc (local report) as pdf document in asp.net web application.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;public void GeneratePDFFromLocalReport()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;              &lt;span style=";font-family:courier new;font-size:90%;"  &gt;//get your report datasource from the database&lt;br /&gt; IDataReader iReader = GetReportDataSourceReader();&lt;br /&gt; LocalReport report = new LocalReport();&lt;br /&gt; report.ReportPath =&lt;br /&gt; HttpContext.Current.Server.MapPath("~/reports/rdlc/MyReport.rdlc");&lt;br /&gt; report.DataSources.Add(new ReportDataSource("DataSource1", iReader));&lt;br /&gt; ReportParameter[] parameters = new ReportParameter[3];&lt;br /&gt; parameters[0] = new ReportParameter("Filter1", "Filter1's value"));&lt;br /&gt; parameters[1] = new ReportParameter("Filter2", "Filter2's value");&lt;br /&gt; parameters[2] = new ReportParameter("Footer", "Footer's value");&lt;br /&gt; report.SetParameters(parameters);&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;   //&lt;br /&gt; //code to render report as pdf document&lt;br /&gt; string encoding = String.Empty;&lt;br /&gt; string mimeType = String.Empty;&lt;br /&gt; string extension = String.Empty;&lt;br /&gt; Warning[] warnings = null;&lt;br /&gt; string[] streamids = null;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;          &lt;/span&gt;         &lt;span style=";font-family:courier new;font-size:85%;"  &gt;//&lt;br /&gt;            byte[] byteArray = report.Render("PDF", null,&lt;br /&gt;      out mimeType, out encoding, out extension, out streamids, out warnings);&lt;br /&gt; //&lt;br /&gt; HttpContext.Current.Response.ContentType = "Application/pdf";&lt;br /&gt;   HttpContext.Current.Response.AddHeader("Content-Disposition",&lt;br /&gt;   "attachment; filename=MyPDF.pdf");&lt;br /&gt; HttpContext.Current.Response.AddHeader("Content-Length",&lt;br /&gt;   byteArray.Length.ToString());&lt;br /&gt; HttpContext.Current.Response.ContentType = "application/octet-stream";&lt;br /&gt; HttpContext.Current.Response.BinaryWrite(byteArray);&lt;br /&gt; HttpContext.Current.Response.End();&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-::HTH::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6354747626629210420?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6354747626629210420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6354747626629210420' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6354747626629210420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6354747626629210420'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/12/generate-pdf-from-local-report.html' title='How to generate or render .pdf document  from local report (rdlc)  with parameters ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4393825834576575453</id><published>2008-10-17T01:51:00.000-07:00</published><updated>2008-10-17T02:06:41.849-07:00</updated><title type='text'>Error while binding databound control in asp.net. "Eval(), Bind() can only be used in the context of a databound control"</title><content type='html'>Did you ever get a message "&lt;strong&gt;Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control&lt;/strong&gt;" while binding a databound control ?&lt;br /&gt;&lt;br /&gt;If you ask me this question, my answer is Yes, i did receive the above message when i tried binding a dropdownlist template column inside the gridview control in &lt;a href="http://www.asp.net/"&gt;asp.net 2.0&lt;/a&gt;. I was surprised seeing the message hitting me all the rack and was curious to see the issue in detail.&lt;br /&gt;I had already done the binding of template column (drop down) in the row item created event.&lt;br /&gt;&lt;br /&gt;Upong further investigarion i came to know that there is a difference between &amp;lt;%#Eval("field_name") %&amp;gt; and &amp;lt;%# Databinder.Eval("filed_name") %&amp;gt;&lt;br /&gt;&lt;br /&gt;In the Eval(), ASP.net resolves the object to which databinding is done where as in the Databinder.Eval() since we give the target object manually, ASP.net has nothing to resolve.&lt;br /&gt;&lt;br /&gt;So the &lt;strong&gt;resolution&lt;/strong&gt; is use &amp;lt;%# Databinder.Eval("filed_name") %&amp;gt; instead &amp;lt;%# Eval("field_name") %&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4393825834576575453?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4393825834576575453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4393825834576575453' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4393825834576575453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4393825834576575453'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/10/eval-bind-can-only-be-used-in-context.html' title='Error while binding databound control in asp.net. &quot;Eval(), Bind() can only be used in the context of a databound control&quot;'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1880790164613404543</id><published>2008-09-19T03:22:00.004-07:00</published><updated>2008-09-19T03:36:47.653-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='error in visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Cannot create/shadow copy'/><title type='text'>Cannot create/shadow copy &lt;your assembly file&gt; when that file already exists</title><content type='html'>&lt;span class="Apple-style-span" style="  white-space: pre; "&gt;&lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Cannot create/shadow copy &amp;lt; your assembly file dll &amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;your&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; when that file already exists&lt;/span&gt;&lt;/span&gt;&lt;/your&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;When you compile the web projects in visual studio 2005/2008, you may receive the above message. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;And in order to get rid of this, you can either kill the process aspnet_wp.exe using the task manager &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;or add the following tag in the web.config inside system.web tag.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&amp;lt;hostingEnvironment shadowCopyBinAssemblies="false" /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Although the former resolution is just a temperory fix, the later one will fix this issue for that &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;project permanantly.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;-::-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1880790164613404543?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1880790164613404543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1880790164613404543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1880790164613404543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1880790164613404543'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/09/cannot-create-shadow-copy-visual-studio_1635.html' title='Cannot create/shadow copy &amp;lt;your assembly file&amp;gt; when that file already exists'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1154582183422396882</id><published>2008-09-15T01:36:00.001-07:00</published><updated>2008-09-15T01:40:30.043-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text area text length'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Limit text length in textarea'/><title type='text'>Javascript to limit characters (length) in Text Area or Multiline TextBox</title><content type='html'>Bind the below function to keypress event as below&lt;br /&gt;&lt;br /&gt;txtJustification.Attributes.Add("onkeypress", "return limitText('" + txtJustification.ClientID + "', 3000);");&lt;br /&gt;&lt;br /&gt;function limitText(limitField, limitNum)&lt;br /&gt;{&lt;br /&gt;var obj = document.getElementById(limitField);&lt;br /&gt;if (obj.value.length &gt; limitNum){return false;} else return true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hope this helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1154582183422396882?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1154582183422396882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1154582183422396882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1154582183422396882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1154582183422396882'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/09/limit-text-length-in-textarea.html' title='Javascript to limit characters (length) in Text Area or Multiline TextBox'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-37079453433655338</id><published>2008-09-15T01:29:00.000-07:00</published><updated>2008-09-15T01:33:39.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MDI child window'/><category scheme='http://www.blogger.com/atom/ns#' term='always on top'/><category scheme='http://www.blogger.com/atom/ns#' term='winforms'/><title type='text'>MDI Child Window always on top - Winforms</title><content type='html'>&lt;p&gt;As MDI Child winform cannot be shown on top by using "BringToFront" or "TopLevel=true" properties. This could be achieved only by setting the property frm.Owner = frmMDI&lt;/p&gt;&lt;p&gt;Hope this helps&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-37079453433655338?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/37079453433655338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=37079453433655338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/37079453433655338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/37079453433655338'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/09/mdi-child-window-on-top.html' title='MDI Child Window always on top - Winforms'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5988418768447512961</id><published>2008-09-15T01:23:00.001-07:00</published><updated>2008-09-15T01:25:00.985-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net validation'/><category scheme='http://www.blogger.com/atom/ns#' term='OnClientClick and Form Validation'/><title type='text'>OnClientClick and Form Validation in Asp.net</title><content type='html'>&lt;p&gt;When we use OnClienClick script for a button in asp.net, you can notice that all the associated validation controls (validation group) will fail to validate. This happens because the OnClientClick script overrides form validation script.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To fix this, here is the work around.Add the below code in Page Load event&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Button1.Attributes.Add("onclick", "if(confirm('do this ?') == false) return false;");&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This will execute the client script and then executes the form validations scripts before post back.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope this helps &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5988418768447512961?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5988418768447512961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5988418768447512961' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5988418768447512961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5988418768447512961'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/09/onclientclick-and-form-validation.html' title='OnClientClick and Form Validation in Asp.net'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-921102253865805515</id><published>2008-09-05T04:10:00.001-07:00</published><updated>2008-09-19T00:20:32.143-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net menu'/><category scheme='http://www.blogger.com/atom/ns#' term='google browser'/><category scheme='http://www.blogger.com/atom/ns#' term='Google Chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>ASP.NET Menu control not being rendered properly in Google Chrome</title><content type='html'>Today i tried installing the Google Chrome in my laptop machine. Although it is light and nice in look and rich in features (as usual from Google), it showed some weired behaviour when i open my online applications. Especially the ASP.Net Menu Control was not rendered as is to be.&lt;br /&gt;&lt;br /&gt;It does not display the child nodes on hover and when we click any menu item, it then refresh the page with child nodes...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cause &amp;amp; Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The reason for this weird behaviour is just because the way the menus are rendered in chrome is different from IE and Fire Fox (FF). The recent chrome browser render the &amp;lt;a&amp;gt; component as &amp;lt;div&amp;gt; and &amp;lt;span&amp;gt; . If you look into the view source, you may notice that the menu structure as below.&lt;br /&gt;&amp;lt;div id="ctl00_mainMenu"&amp;gt;&lt;br /&gt;&amp;lt;span&amp;gt;&amp;lt;a class="ctl00_mainMenu_1" href="Test1.aspx"&amp;gt;Menu1&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span&amp;gt;&amp;lt;a class="ctl00_mainMenu_1" href="Test2.aspx"&amp;gt;Menu2&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span&amp;gt;&amp;lt;a class="ctl00_mainMenu_1" href="Test3.aspx"&amp;gt;Mwnu3&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;It is because of both Internet Explorer and Firefox render the ASP.NET Menu control as &amp;lt;table&amp;gt;--&amp;lt;a&amp;gt; mark up.&lt;br /&gt;However, the rendered mark up for the latest beta version of Google Chrome will be like the following code, the &amp;lt;table&amp;gt; and &amp;lt;a&amp;gt; become to &amp;lt;div&amp;gt; and &amp;lt;span&amp;gt; :&lt;br /&gt;And the best resolution for the subject issue is to &lt;a href="http://www.asp.net/CssAdapters/"&gt;ASP.NET 2.0 CSS Friendly Control Adapters &lt;/a&gt;1.0. This adapter will render the ASP.NET Menu in Google Chrome properly&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-921102253865805515?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/921102253865805515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=921102253865805515' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/921102253865805515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/921102253865805515'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/09/aspnet-menu-not-working-in-chrome.html' title='ASP.NET Menu control not being rendered properly in Google Chrome'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5342360842012092299</id><published>2008-08-13T20:59:00.000-07:00</published><updated>2008-08-13T21:07:41.148-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='read excel in asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='read excel'/><category scheme='http://www.blogger.com/atom/ns#' term='Import excel in dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='excel import'/><category scheme='http://www.blogger.com/atom/ns#' term='convert excel into dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='excel binding in asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='excel import in asp.net'/><title type='text'>Import Excel into Dataset</title><content type='html'>To make mass data entry, we seldom use the excel imports in application. This saves time and effort involved in the task. Here is the demonstration how to.?&lt;br /&gt;&lt;br /&gt;1. Upload th excel file into Application Server (IIS Site Folder)&lt;br /&gt;&lt;br /&gt;   FileUpload1.SaveAs(Server.MapPath("~/xcel/") + FileUpload1.FileName);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Connect excel sheet, read data and import into a dataset.&lt;br /&gt;&lt;br /&gt;   DataSet myDataset = new DataSet();&lt;br /&gt;   string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;&lt;br /&gt;            Data Source=" + FilePath + @";&lt;br /&gt;            Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1""";&lt;br /&gt;   OleDbConnection conn = new OleDbConnection(strConn);&lt;br /&gt;   conn.Open();   &lt;br /&gt;   DataTable DTable = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);&lt;br /&gt;   //here the code will read sheet from spreadsheet with any name --generic&lt;br /&gt;   OleDbDataAdapter myData = new OleDbDataAdapter&lt;br /&gt;           (@"SELECT * FROM [" + &lt;br /&gt;           DTable.Rows[0]["TABLE_NAME"].ToString() + "]", conn);&lt;br /&gt;   //        &lt;br /&gt;   myData.Fill(myDataset);&lt;br /&gt;&lt;br /&gt;That is the end. The code is not restricted or limited to any name of the sheet in the excel spread sheet. ....&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5342360842012092299?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5342360842012092299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5342360842012092299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5342360842012092299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5342360842012092299'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/08/import-excel-into-dataset.html' title='Import Excel into Dataset'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-8851416886001963158</id><published>2008-08-01T13:51:00.000-07:00</published><updated>2008-08-01T13:54:59.259-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text-align:center'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='FireFox'/><title type='text'>CSS text-align:center not working in FireFox (FF)</title><content type='html'>The CSS style for any component text-align:center will not work in FireFox (FF) browser. The work around is to have the CSS defined as follows. If you defined the below CSS for body, it will work in both IE and FF. You have to defined both CSS for the body as defined below (one after another) to have cross browser compatibiltiy. It will not work if you asssing only text-align: -moz-center;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;body&lt;br /&gt;{&lt;br /&gt;    text-align: center;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;body&lt;br /&gt;{&lt;br /&gt;    text-align: -moz-center;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-8851416886001963158?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/8851416886001963158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=8851416886001963158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8851416886001963158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8851416886001963158'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/08/css-text-aligncenter-not-working-in.html' title='CSS text-align:center not working in FireFox (FF)'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7987664406651172265</id><published>2008-07-29T06:07:00.001-07:00</published><updated>2008-07-29T06:08:59.508-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javscript'/><category scheme='http://www.blogger.com/atom/ns#' term='numeric'/><category scheme='http://www.blogger.com/atom/ns#' term='integer only'/><title type='text'>Javascript to accept only numeric values</title><content type='html'>Here is the javascript code to accept only numeric values in textboxes. This has to binded to&lt;br /&gt;"onkeypress" event.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function onlyInteger(evt)&lt;br /&gt;{&lt;br /&gt;evt = window.event;&lt;br /&gt;var charCode = evt.keyCode;&lt;br /&gt;if (charCode &gt; 31 &amp;amp;&amp;amp; (charCode &lt;&gt; 57)) {&lt;br /&gt;status = "This field accepts numbers only.";&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;status = "";&lt;br /&gt;return true;&lt;br /&gt;} &lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7987664406651172265?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7987664406651172265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7987664406651172265' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7987664406651172265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7987664406651172265'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/07/javascript-to-accept-only-numeric.html' title='Javascript to accept only numeric values'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1351232404072051785</id><published>2008-03-25T08:41:00.000-07:00</published><updated>2008-03-25T08:44:42.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import Wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='Export Import DTS wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005 Express DTS Wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='Export Wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005 Express'/><title type='text'>SQL Server 2005 Express DTS Wizard - Export/Import Utiltity</title><content type='html'>Download Export / Import DTS package for SQL Server 2005 Express Edition from here&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/info.aspx?na=46&amp;amp;p=16&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f4%2fd%2f44dbde61-b385-4fc2-a67d-48053b8f9fad%2fSQLServer2005_DTS.msi"&gt;http://www.microsoft.com/downloads/info.aspx?na=46&amp;amp;p=16&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f4%2fd%2f44dbde61-b385-4fc2-a67d-48053b8f9fad%2fSQLServer2005_DTS.msi&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1351232404072051785?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1351232404072051785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1351232404072051785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1351232404072051785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1351232404072051785'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/03/sql-server-2005-express-dts-wizard.html' title='SQL Server 2005 Express DTS Wizard - Export/Import Utiltity'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6545453386599302714</id><published>2008-03-17T04:19:00.000-07:00</published><updated>2008-03-17T04:20:29.347-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ATLAS'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX Tab Container'/><category scheme='http://www.blogger.com/atom/ns#' term='MICROSoft AJAX ASP.net'/><title type='text'>How to apply CSS / themes for AJAX Tab Container control</title><content type='html'>Here we go!&lt;br /&gt;&lt;a href="http://mattberseth.com/blog/2007/09/more_sample_ajaxcontroltoolkit.html"&gt;http://mattberseth.com/blog/2007/09/more_sample_ajaxcontroltoolkit.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6545453386599302714?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6545453386599302714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6545453386599302714' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6545453386599302714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6545453386599302714'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/03/how-to-apply-css-themes-for-ajax-tab.html' title='How to apply CSS / themes for AJAX Tab Container control'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4152145528945270909</id><published>2008-03-11T22:48:00.000-07:00</published><updated>2008-03-11T22:57:06.592-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Share Point 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='Share Point'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net and Share Point'/><category scheme='http://www.blogger.com/atom/ns#' term='Formdigest control'/><title type='text'>Error Creating Control - Formdigest1. Failure decoding embedded permission set object</title><content type='html'>When you try to host an asp site in different apps server to query the sharepoint engine 2003, you may recieve the error&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;"Error Creating Control - Formdigest1. Failure decoding embedded permission set object" &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;while using the Formdigest control.&lt;br /&gt;&lt;br /&gt;Formdigest controls is to be used in the pages of web application where in you query and update the sharepoint data via object ibrary. Formdigest validates the security of the page while submitting a request.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;To make it work, the web apps should be deployed in the same site, i mean in the same context.&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4152145528945270909?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4152145528945270909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4152145528945270909' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4152145528945270909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4152145528945270909'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/03/error-creating-control-formdigest1.html' title='Error Creating Control - Formdigest1. Failure decoding embedded permission set object'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-2645753677953770142</id><published>2008-03-11T04:02:00.000-07:00</published><updated>2008-03-11T04:11:26.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Share Point Customization'/><category scheme='http://www.blogger.com/atom/ns#' term='WSS 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS 2007 Customization'/><category scheme='http://www.blogger.com/atom/ns#' term='Custom Pages in MOSS 2007'/><category scheme='http://www.blogger.com/atom/ns#' term='Custom Webpart in MOSS 2007'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS 2007'/><title type='text'>How to enable inline coding in MOSS 2007 or WSS 3.0 Custome aspx pages ?</title><content type='html'>By default, the inline code would throw error in custom defined aspx pages in MOSS / WSS 3.0. To make it work, add the following lines of code in the web.config.&lt;br /&gt;&lt;br /&gt;&lt;pageparserpaths&gt;&lt;br /&gt;&lt;pageparserpath virtualpath=""&gt;&amp;lt;PageParserPaths&amp;gt;&lt;br /&gt;&amp;lt;PageParserPath VirtualPath="/&lt;&gt;/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" /&amp;gt;&lt;br /&gt;&amp;lt;/PageParserPaths&amp;gt; &lt;/pageparserpaths&gt;&lt;br /&gt;&lt;br /&gt;The "PageParserPaths" tags would be already existing in web.config. All you need to do is to add the code in between to specify your folders to execute the C# script.&lt;br /&gt;&lt;br /&gt;- :: -&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-2645753677953770142?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/2645753677953770142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=2645753677953770142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2645753677953770142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2645753677953770142'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2008/03/how-to-enable-inline-coding-in-moss.html' title='How to enable inline coding in MOSS 2007 or WSS 3.0 Custome aspx pages ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1583432625651853933</id><published>2007-08-12T22:42:00.000-07:00</published><updated>2007-08-12T22:52:56.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Pass Array to javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>How to pass array from ASP.Net to Javascript?</title><content type='html'>There are scenarios where we have to pass list of values as arrray from &lt;a href="http://www.asp.net/"&gt;ASP.Net &lt;/a&gt;to client side (&lt;a href="http://www.javascript.com/"&gt;Javascript&lt;/a&gt;). And we don't have a clear cut method to accomplish this.&lt;br /&gt;&lt;br /&gt;To acheive this do as follows:-&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Prepare the string of values seperated by commas, say string ArrayString = 'Hythem', 'Apple','Banana'&lt;/li&gt;&lt;li&gt;Create the array while passing the values to the javascript &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;See the code below:-&lt;/p&gt;&lt;p&gt;string ArrayString = 'Hythem', 'Apple','Banana';&lt;br /&gt;ntxtAmt.Attributes.Add("onkeyup", "javascript:testme(new Array(" + ArrayString + ");");&lt;/p&gt;&lt;p&gt;-::-&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1583432625651853933?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1583432625651853933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1583432625651853933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1583432625651853933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1583432625651853933'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/08/how-to-pass-array-from-aspnet-to.html' title='How to pass array from ASP.Net to Javascript?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-2135054574390220691</id><published>2007-07-21T23:08:00.000-07:00</published><updated>2007-07-21T23:10:49.286-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image data type'/><category scheme='http://www.blogger.com/atom/ns#' term='winforms'/><category scheme='http://www.blogger.com/atom/ns#' term='binary streaming'/><category scheme='http://www.blogger.com/atom/ns#' term='windows application'/><category scheme='http://www.blogger.com/atom/ns#' term='blobs'/><title type='text'>How to retrieve the blob object in WinForms to physical location with "Binary Streaming" enabled ?</title><content type='html'>See the snippet below, how it works!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SqlConnection Conn = new SqlConnection("&lt;&gt;");&lt;br /&gt;SqlCommand Cmd = new SqlCommand("select docobject, filetype,docname from documents where docid = 23", Conn);&lt;br /&gt;Cmd.CommandType = CommandType.Text;&lt;br /&gt;Conn.Open();&lt;br /&gt;SqlDataReader Reader = Cmd.ExecuteReader(CommandBehavior.CloseConnection);&lt;br /&gt;//&lt;br /&gt;string DocumentName = null;&lt;br /&gt;FileStream FStream = null;&lt;br /&gt;BinaryWriter BWriter = null;&lt;br /&gt;//&lt;br /&gt;//&lt;br /&gt;//&lt;br /&gt;byte[] Binary = null;&lt;br /&gt;const int ChunkSize = 100;&lt;br /&gt;int SizeToWrite = 0;&lt;br /&gt;MemoryStream MStream = null;&lt;br /&gt;//&lt;br /&gt;while (Reader.Read())&lt;br /&gt;{&lt;br /&gt;DocumentName = Reader["docname"].ToString();&lt;br /&gt;// Create a file to hold the output.&lt;br /&gt;FStream = new FileStream(@"c:\" + DocumentName, FileMode.OpenOrCreate, FileAccess.Write);&lt;br /&gt;BWriter = new BinaryWriter(FStream);&lt;br /&gt;Binary = (Reader["docobject"]) as byte[];&lt;br /&gt;SizeToWrite = ChunkSize;&lt;br /&gt;MStream = new MemoryStream(Binary);&lt;br /&gt;//&lt;br /&gt;for (int i = 0; i &lt; Binary.GetUpperBound(0) - 1; i = i + ChunkSize)&lt;br /&gt;{&lt;br /&gt;if (i + ChunkSize &gt;= Binary.Length) SizeToWrite = Binary.Length - i;&lt;br /&gt;byte[] Chunk = new byte[SizeToWrite];&lt;br /&gt;MStream.Read(Chunk, 0, SizeToWrite);&lt;br /&gt;BWriter.Write(Chunk);&lt;br /&gt;BWriter.Flush();&lt;br /&gt;}&lt;br /&gt;BWriter.Close();&lt;br /&gt;FStream.Close();&lt;br /&gt;}&lt;br /&gt;FStream.Dispose();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-2135054574390220691?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/2135054574390220691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=2135054574390220691' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2135054574390220691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2135054574390220691'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/07/how-to-retrieve-blob-object-in-winforms.html' title='How to retrieve the blob object in WinForms to physical location with &quot;Binary Streaming&quot; enabled ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1454871955509297507</id><published>2007-07-10T20:25:00.000-07:00</published><updated>2007-07-10T20:32:19.108-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SiteMapNode'/><category scheme='http://www.blogger.com/atom/ns#' term='Menu Control'/><category scheme='http://www.blogger.com/atom/ns#' term='imageURL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>Add image to ASP.Net 2.0 Menu navigation control</title><content type='html'>To give more beautiful for intranet systems / sites, we may need icons/images to be displayed along with the menu caption.&lt;br /&gt;&lt;br /&gt;To map image with a site map node, add a custom property, say, "menuImage" in the sitemapnode tag as below&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;siteMapNode url="~/pages/wemployee.aspx" title=":: Employees" description="" menuImage="~/Images/viewdetail.gif" /&amp;gt;&lt;br /&gt;&lt;br /&gt;Now, in the code behind, add the code below:-&lt;br /&gt;&lt;br /&gt;protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)&lt;br /&gt;{&lt;br /&gt;e.Item.ImageUrl = ((SiteMapNode)e.Item.DataItem)["menuImage"];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Infact, you can have a harcoded image path as well.&lt;br /&gt;&lt;br /&gt;HTH&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1454871955509297507?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1454871955509297507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1454871955509297507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1454871955509297507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1454871955509297507'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/07/add-image-to-aspnet-20-menu-navigation.html' title='Add image to ASP.Net 2.0 Menu navigation control'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4184544043293919503</id><published>2007-07-03T00:16:00.000-07:00</published><updated>2007-07-03T00:21:06.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='Get page number for group failed'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>"Error in File &lt; Path..&gt;\ASPNET\LOCALS~1\Temp\Employees {BBE0A87A-CFF9-4682-A6AD-B0E256CF4793}.rpt:" Crystal Report error in ASP.Net 2.0</title><content type='html'>&lt;strong&gt;Did you ever encounter with this error saying &lt;br /&gt;"Error in File C:\DOCUME~1\..\ASPNET\LOCALS~1\Temp\Employees {BBE0A87A-CFF9-4682-A6AD-B0E256CF4793}.rpt: Get page number for group failed" while working with Crystal Report in ASP.Net 2.0&lt;/strong&gt; ?&lt;br /&gt;&lt;br /&gt;This error will occur when you try a postback in the .net page by a tree node click or so. And the reason behind is while postback, report is not able to find the data.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;To avoid this error, enable the caching by making the prOperty of CrystalReportSource "Enable Caching = true". &lt;br /&gt;&lt;br /&gt;HTH&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4184544043293919503?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4184544043293919503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4184544043293919503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4184544043293919503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4184544043293919503'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/07/error-in-file-aspnetlocals1tempemployee.html' title='&quot;Error in File &lt; Path..&gt;\ASPNET\LOCALS~1\Temp\Employees {BBE0A87A-CFF9-4682-A6AD-B0E256CF4793}.rpt:&quot; Crystal Report error in ASP.Net 2.0'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-1321308811157224989</id><published>2007-06-19T00:38:00.000-07:00</published><updated>2007-06-19T02:25:58.188-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Print Preview with CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Printer Friendly'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>HTML printing with custom page format</title><content type='html'>You may always noticed that whenever we try to print a web page with a click on "Print Friendly" or "Print" or "Print Preview", the page will open up a pop up window with a different simple layout with no extravaganzas, say buttons, advertisements, etc.&lt;br /&gt;&lt;br /&gt;This is simply achieved with CSS. The solution is as follows.&lt;br /&gt;&lt;br /&gt;Defined two sets of CSS for the page targeting "Print" and "Screen". See the example below.&lt;br /&gt;&lt;br /&gt;    &amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;        @media screen{&lt;br /&gt;            body {color:Red; }            &lt;br /&gt;            td{font-size:14px;}&lt;br /&gt;            .noprint{display:block !important;}&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        @media print {&lt;br /&gt;            body {fcolor:Blue;}    &lt;br /&gt;            td{font-size:7px;}&lt;br /&gt;            .noprint{display:none;}&lt;br /&gt;        }  &lt;br /&gt;    &amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;and the page is &lt;br /&gt;&lt;br /&gt;   &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;        &amp;lt;div style="text-align: center;"&amp;gt;&lt;br /&gt;            &amp;lt;table id="tblParent" style="width: 90%"&amp;gt;&lt;br /&gt;                &amp;lt;tr class="noprint"&amp;gt;&lt;br /&gt;                    &amp;lt;td&amp;gt;&lt;br /&gt;                        This is just a demonstration of how to make HTML printing&amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;                &amp;lt;tr&amp;gt;&lt;br /&gt;                    &amp;lt;td&amp;gt;&lt;br /&gt;                    &amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;                &amp;lt;tr class="noprint"&amp;gt;&lt;br /&gt;                    &amp;lt;td style="text-align: right"&amp;gt;&lt;br /&gt;                        &amp;lt;a href="#" onclick="window.print()"&amp;gt;Print&amp;lt;/a&amp;gt;&amp;nbsp;&amp;nbsp;&amp;lt;a href="#" onclick="window.close()"&amp;gt;Close&amp;lt;/a&amp;gt;&lt;br /&gt;                    &amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;                &amp;lt;tr&amp;gt;&lt;br /&gt;                    &amp;lt;th&amp;gt;&lt;br /&gt;                        Employee Informations&amp;lt;/th&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;                &amp;lt;tr&amp;gt;&lt;br /&gt;                    &amp;lt;td&amp;gt;&lt;br /&gt;                        &amp;lt;asp:Repeater ID="Repeater1" runat="server"&amp;gt;&lt;br /&gt;                            &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;                                &amp;lt;table id="tblEmployee" style="width: 100%"&amp;gt;&lt;br /&gt;                                    &amp;lt;tr&amp;gt;&lt;br /&gt;                                        &amp;lt;td style="width: 5%;"&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td style="width: 30%;"&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td style="width: 5%;"&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td style="width: 60%;"&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                    &amp;lt;/tr&amp;gt;&lt;br /&gt;                                    &amp;lt;tr&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            Last Name&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                            :&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            &amp;lt;%# Eval("LastName") %&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                    &amp;lt;/tr&amp;gt;&lt;br /&gt;                                    &amp;lt;tr&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            First Name&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                            :&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            &amp;lt;%# Eval("firstname") %&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                    &amp;lt;/tr&amp;gt;&lt;br /&gt;                                    &amp;lt;tr&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            Title&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td&amp;gt;&lt;br /&gt;                                            :&amp;lt;/td&amp;gt;&lt;br /&gt;                                        &amp;lt;td align="left"&amp;gt;&lt;br /&gt;                                            &amp;lt;%# Eval("title") %&amp;gt;&lt;br /&gt;                                        &amp;lt;/td&amp;gt;&lt;br /&gt;                                    &amp;lt;/tr&amp;gt;&lt;br /&gt;                                &amp;lt;/table&amp;gt;&lt;br /&gt;                            &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;                        &amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;                    &amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;            &amp;lt;/table&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;Here the section of the page with class .noprint is displayed while displaying on the "screen" and hidden while printing, say buttons and other items&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-1321308811157224989?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/1321308811157224989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=1321308811157224989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1321308811157224989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/1321308811157224989'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/06/html-printing-with-custom-page-format.html' title='HTML printing with custom page format'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-350770060582217707</id><published>2007-06-17T03:55:00.000-07:00</published><updated>2007-06-17T04:06:48.652-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><category scheme='http://www.blogger.com/atom/ns#' term='URL Rewriting'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>URL rewriting in ASP.Net 2.0! Purpose and how to?</title><content type='html'>&lt;p&gt;URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL. &lt;/p&gt;&lt;p&gt;Creating data-driven ASP.NET websites often results in a single Web page that displays a subset of the database's data based on querystring parameters. For example, in designing an e-commerce site, one of your tasks would be to allow users to browse through the products for sale. To facilitate this, you might create a page called displayCategory.aspx that would display the products for a given category. The category's products to view would be specified by a querystring parameter. That is, if the user wanted to browse the Widgets for sale, and all Widgets had a had a CategoryID of 5, the user would visit: http://yousite.com/displayCategory.aspx?CategoryID=5.&lt;br /&gt;There are two downsides to creating a website with such URLs. First, from the end user's perspective, the URL http://yousite.com/displayCategory.aspx?CategoryID=5 is a mess. Usability expert &lt;a onclick="javascript:Track('ctl00_LibFrame_ctl02ctl00_LibFrame_ctl05',this);" href="http://useit.com/"&gt;Jakob Neilsen&lt;/a&gt; &lt;a onclick="javascript:Track('ctl00_LibFrame_ctl02ctl00_LibFrame_ctl06',this);" href="http://www.useit.com/alertbox/990321.html"&gt;recommends&lt;/a&gt; that URLs be chosen so that they: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Are short. &lt;/li&gt;&lt;li&gt;Are easy to type. &lt;/li&gt;&lt;li&gt;Visualize the site structure. &lt;/li&gt;&lt;li&gt;"Hackable," allowing the user to navigate through the site by hacking off parts of the URL. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I would add to that list that URLs should also be easy to remember. The URL http://yousite.com/displayCategory.aspx?CategoryID=5 meets none of Neilsen's criteria, nor is it easy to remember. Asking users to type in querystring values makes a URL hard to type and makes the URL "hackable" only by experienced Web developers who have an understanding of the purpose of querystring parameters and their name/value pair structure.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A better approach is to allow for a sensible, memorable URL, such as http://yoursite.com/products/Widgets. By just looking at the URL you can infer what will be displayed—information about Widgets. The URL is easy to remember and share, too. I can tell my colleague, "Check out yoursite.com/products/Widgets," and she'll likely be able to bring up the page without needing to ask me again what the URL was. (Try doing that with, say, an Amazon.com page!) The URL also appears, and should behave, "hackable." That is, if the user hacks of the end of the URL, and types in http://yoursite.com/products, they should see a listing of all products, or at least a listing of all categories of products they can view.&lt;/p&gt;&lt;strong&gt;How to configure URL rewriting in asp.net 2.0?&lt;/strong&gt;&lt;br /&gt;Add the following code in web.config with proper mapping informations.&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" ?"&amp;gt;&lt;br /&gt;&amp;lt;configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&amp;gt;&lt;br /&gt;&amp;lt;system.web"&amp;gt;&lt;br /&gt;    &amp;lt;urlmappings enabled="true""&amp;gt;     &lt;br /&gt;       &amp;lt;add url="~/Autos.aspx" mappedurl="~/Default.aspx?category=autos"&amp;gt;     &lt;br /&gt;       &amp;lt;add url="~/Games.aspx" mappedurl="~/Default.aspx?category=games"&amp;gt;     &lt;br /&gt;   &amp;lt;/urlmappings&amp;gt;&lt;br /&gt;&amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&lt;br /&gt;Now, add the mapping in the ISAPI filter of IIS.&lt;br /&gt;Say, if you use the extention ".mspx", add the extension to the ISS pointing to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll. That means, whatever request with extension .mspx should be handled by aspnet worker thread.&lt;br /&gt;&lt;br /&gt;HTH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-350770060582217707?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/350770060582217707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=350770060582217707' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/350770060582217707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/350770060582217707'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/06/url-rewriting-in-aspnet-20-purpose-and.html' title='URL rewriting in ASP.Net 2.0! Purpose and how to?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-8779508067463445326</id><published>2007-06-03T20:29:00.000-07:00</published><updated>2007-06-03T20:42:30.226-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='The server instance specified was not found. Please specify the server&apos;s address and port'/><category scheme='http://www.blogger.com/atom/ns#' term='stsam.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='Object Library'/><title type='text'>"The server instance specified was not found" error message when you perform an operation on a virtual server in Windows SharePoint Services</title><content type='html'>In Microsoft Windows SharePoint Services, when you use the Stsadm.exe command-line tool to perform an operation on a virtual server by using its host name, or try access a site by URL using SharePoint Object Library, or when you create a custom Web application that uses the Windows SharePoint Services object model to perform an operation on a virtual server by using its host name, you may receive the following error message:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;The server instance specified was not found. Please specify the server's address and port.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;eg:-&lt;br /&gt;&lt;br /&gt;SPSite MySite = new SPSite(&lt;a href="http://spsite"&gt;http://spsite&lt;/a&gt;);&lt;br /&gt;String SiteURL = MySite.Url.ToString ();&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;br /&gt;This may occur due to the fact that virtual server of the site is assigned a specific IP address (instead of "All Unassgined" configuration) and server name is mapped in Domain Control (DNS). In these cases, WSS will not query DNS to resolve the host name since the hostname is not mapped in the metabase.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Assign a host header name to the IP address that is configured for the virtual server in IIS. By doing so, Windows SharePoint Services can map the virtual server to the host name. To assign a host header name for a virtual server in IIS, follow these steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Start Internet Information Services (IIS) Manager.&lt;/li&gt;&lt;li&gt;Expand ServerName, and then expand Web Sites.&lt;/li&gt;&lt;li&gt;Right-click the Web site that you want, and then click Properties.&lt;/li&gt;&lt;li&gt;Click the Web Site tab, and then under Web site identification, click Advanced.&lt;/li&gt;&lt;li&gt;Under Multiple identities for this Web site, click Add.&lt;/li&gt;&lt;li&gt;In the Add/Edit Web Site Identification dialog box, specify an IP address, TCP port, and host header value, and then click OK&lt;/li&gt;&lt;li&gt;Click OK, and then click OK.&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;If the IP address of the virtual server in IIS is set to All Unassigned, perform the operation on the virtual server by using the server name.&lt;/li&gt;&lt;li&gt;Perform the operation on the virtual server by using the IP address that is assigned to the virtual server.&lt;/li&gt;&lt;/ul&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-8779508067463445326?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/8779508067463445326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=8779508067463445326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8779508067463445326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8779508067463445326'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/06/server-instance-specified-was-not-found.html' title='&quot;The server instance specified was not found&quot; error message when you perform an operation on a virtual server in Windows SharePoint Services'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-154910788303812794</id><published>2007-06-01T07:46:00.000-07:00</published><updated>2007-06-01T07:50:05.807-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0 Membership provider'/><category scheme='http://www.blogger.com/atom/ns#' term='dbo.aspnet_CheckSchemaVersion'/><category scheme='http://www.blogger.com/atom/ns#' term='aspnet_regsql'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>Error on security tab : Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion' in ASP.Net 2.0 Web Administration Tool</title><content type='html'>&lt;p&gt;&lt;strong&gt;Error while configuring ASP.Net 2.0 membership provider with Web &lt;/strong&gt;&lt;strong&gt;Administration tool&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;You may receive the following error while configuring the .net 2.0 membership provider.&lt;/p&gt;&lt;p&gt;Error on security tab : &lt;strong&gt;Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'&lt;/strong&gt; in ASP.Net 2.0 Web Administration Tool&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;/p&gt;You must have to create the SQL schema in the database you're going to use for membership. To do this, you can run aspnet_regsql from the v2.0 directory. That'll open up a wizard and walk you through the steps to create the SQL stored procs and such that are needed for the security and membership stuff&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-154910788303812794?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/154910788303812794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=154910788303812794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/154910788303812794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/154910788303812794'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/06/error-on-security-tab-could-not-find.html' title='Error on security tab : Could not find stored procedure &apos;dbo.aspnet_CheckSchemaVersion&apos; in ASP.Net 2.0 Web Administration Tool'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7537191197318693368</id><published>2007-05-31T00:28:00.000-07:00</published><updated>2007-05-31T02:03:54.127-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grouping'/><category scheme='http://www.blogger.com/atom/ns#' term='GirdView'/><category scheme='http://www.blogger.com/atom/ns#' term='DataKeys'/><category scheme='http://www.blogger.com/atom/ns#' term='View State'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>How to handle hidden columns/values in gridview 2.0?</title><content type='html'>&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is always a "Fact" that we are not supposed to disclose any confidential data to the browser, whether it is a primary key or not. At the same time we may need those values for further processing of the page logic. In datagrid (.net 1.1), we always used to get the hidden values in the viewstate and we can make use of those values in client side script.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;However, the situation is changed now!. Due to security breach, microsoft has come up with new term "DataKeys" in order to hide the hidden fields forever (from rendering). You cannot see the hidden column values in View State. At the sametime, you can have multiple datakeys for a particular gridview control. Doing so, you can extract the values of those fields against each row, but only from code behind as it is not rendered in the browser.&lt;br /&gt;&lt;br /&gt;You can access the values as below :&lt;br /&gt;&lt;br /&gt;GridView.DataKeys[i].Values[j].ToString()&lt;br /&gt;where 'i' represent the rownumber and 'j' represent the index of DataKeys (defined).&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7537191197318693368?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7537191197318693368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7537191197318693368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7537191197318693368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7537191197318693368'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/05/how-to-handle-hidden-columnsvalues-in.html' title='How to handle hidden columns/values in gridview 2.0?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-2341698164487065109</id><published>2007-03-14T03:12:00.001-07:00</published><updated>2007-05-31T01:52:38.733-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cross Database'/><category scheme='http://www.blogger.com/atom/ns#' term='Referential Integrity'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Is cross database referential integrity possible ?</title><content type='html'>Cross database referential integrity is not possible in SQL. Hence deletion of any master data stored in one database will make orphan the related data in other databases (transaction db). Also, if cross – database constrain is possible, then it is more or less similar to saying that you can have PK-FK relation for databases. i.e., you cannot drop a database when there are some PK records for some FK records in the other database. Right? Any thought? Let me know if you find any thing!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And as per the third party tool, remote-keys this could be achieved. But it is more like a work around, achieving the same programmatically (DDL statements in triggers)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hence to my knowledge, it is not possible in SQL where as the feature is available in SYBASE. Any different thought ?&lt;br /&gt;&lt;br /&gt;What developer says?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms189799.aspx#"&gt;http://msdn2.microsoft.com/en-us/library/ms189799.aspx#&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.thescripts.com/forum/thread584690.html"&gt;http://www.thescripts.com/forum/thread584690.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What Third Party says?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.remote-keys.com/product.aspx"&gt;http://www.remote-keys.com/product.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-2341698164487065109?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/2341698164487065109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=2341698164487065109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2341698164487065109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2341698164487065109'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/03/is-cross-database-referential-integrity.html' title='Is cross database referential integrity possible ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-917916587455450059</id><published>2007-02-21T23:44:00.000-08:00</published><updated>2007-05-31T01:54:53.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Share Point 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='IE Web Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='Custom Web Parts'/><category scheme='http://www.blogger.com/atom/ns#' term='Calendar Control'/><title type='text'>IE Web User Controls deployment in SharePoint 2003 - How to?</title><content type='html'>Although Microsoft has stopped support for MS IE Web Controls, we would use it when we need some conrols like TreeView in .Net 1.1 - say sharepoint 2003&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Steps&lt;/strong&gt;&lt;br /&gt;1. Add the controls in .ascx (used for web parts)&lt;br /&gt;2. While deploying, copy the Microsoft.Web.UI.WebControls.dll to the bin of WSS root&lt;br /&gt;3. Deploy the above dll in GAC (if required)&lt;br /&gt;4. Run the Build.Bat file from C:\Program Files\IE Web Controls (installation folder). While doing this, care should be taken for CSC.exe location - either run it from VS.Net Command prompt (after switiching to the above location) or include the path of CSC.exe in the "Environment Variables" of system. This will generate a \build\Runtime folder with script file required for the controls&lt;br /&gt;5. Copy the above folder to the root of WSS&lt;br /&gt;6. Exclude the path for the above folder, say &lt;strong&gt;webctrl_client&lt;/strong&gt; (only type the folder name as it is in the root folder) by configuring the virutal server (use SharePoint Central Administration page)&lt;br /&gt;&lt;br /&gt;Now it will work!!&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-917916587455450059?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/917916587455450059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=917916587455450059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/917916587455450059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/917916587455450059'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/ie-web-user-controls-deployment-in.html' title='IE Web User Controls deployment in SharePoint 2003 - How to?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5026210427832679409</id><published>2007-02-20T11:35:00.000-08:00</published><updated>2007-05-31T01:55:48.233-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='XSD'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Temperory Tables'/><title type='text'>How do we generate XSD in VS.Net for reporting from a stored procedure containing #temp tables (local) ?</title><content type='html'>In many scenarios we may have to use local temp tables in procedures instead of functions returning tables. Always, temp tables are best in performance. When there is any temp table involved in an sp, say for reporting, VS.Net will not allow you to generate a typed dataset (.xsd) out of that.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Comment the lines containting temp tables in sp&lt;br /&gt;2. Generate .xsd file in .net IDE&lt;br /&gt;3. Uncomment the comments&lt;br /&gt;&lt;br /&gt;Yeah!!! It worked&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5026210427832679409?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5026210427832679409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5026210427832679409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5026210427832679409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5026210427832679409'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/how-do-we-generate-xsd-in-vsnet-for.html' title='How do we generate XSD in VS.Net for reporting from a stored procedure containing #temp tables (local) ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-7340042884579169615</id><published>2007-02-12T23:12:00.000-08:00</published><updated>2007-05-31T01:58:15.808-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Share Point 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='_vti_bin/lists.asmx'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service Consumption'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>How to consume a Share Point web service in ASP.Net web ?</title><content type='html'>It is always an appreciable effort if we consume an existing system as primary reference instead of storing same data here and there&lt;br /&gt;&lt;br /&gt;Follow the steps below:&lt;br /&gt;&lt;br /&gt;1. Add web reference in the IDE with URL of SPS site&lt;br /&gt;2. Create a proxy class with WSDL.exe utility (available in the VS.Net Tools menu)&lt;br /&gt;Go to command prompt and type as below&lt;br /&gt;wsdl /out: c:\ProxyClass.cs http://server:90/_vti_bin/lists.asmx&lt;br /&gt;Find more options of wsdl &lt;a href="http://msdn2.microsoft.com/en-us/library/7h3ystb6(vs.80).aspx"&gt;here&lt;/a&gt;&lt;br /&gt;3. Consume the webservice via proxy class (shouled be added to the project)&lt;br /&gt;4. Now you should get all the published methods in web service via proxy class&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-7340042884579169615?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/7340042884579169615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=7340042884579169615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7340042884579169615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/7340042884579169615'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/how-to-consume-share-point-web-service.html' title='How to consume a Share Point web service in ASP.Net web ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5211309768538943111</id><published>2007-02-11T11:31:00.000-08:00</published><updated>2007-05-31T02:01:47.793-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VS.Net 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='VS.Net 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Parameters'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net 1.1'/><title type='text'>Crystal Report prompts for report parameters in VS.Net 2005 after being upgraded (VS.Net 2003)</title><content type='html'>I got parameter prompts when i run my windows application after upgrading to framework 2.0. The application was built on .net 1.1 and was running successfully&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Pass the parameter after binding the report document to the report viewer component as below. (I passed it before binding to CRV component in .net 2003)&lt;br /&gt;&lt;br /&gt;rptDoc.SetDataSource(ds.Tables[0]);&lt;br /&gt;crv.ReportSource = rptDoc;&lt;br /&gt;rptDoc.SetParameterValue("BRAND", Application.ProductName);&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5211309768538943111?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5211309768538943111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5211309768538943111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5211309768538943111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5211309768538943111'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/crystal-report-prompts-for-report.html' title='Crystal Report prompts for report parameters in VS.Net 2005 after being upgraded (VS.Net 2003)'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-2672677121807438748</id><published>2007-02-10T06:25:00.001-08:00</published><updated>2007-02-10T06:27:04.141-08:00</updated><title type='text'>Configuration Error - Unrecognized attribute 'xmlns' web.config - ASP.net 2.0</title><content type='html'>When you try running a ASP.net 2.0 web application, you may receive a  web.config error as &lt;strong&gt;"Unrecognized attribute 'xmlns'"&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Line 1:  &amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;Line 2:  &lt;br /&gt;Line 3:  &amp;lt;configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&amp;gt;&lt;br /&gt;Line 4:  &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reason&lt;/strong&gt;&lt;br /&gt;Your system/server must be running more than one version of .net framework&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;1. Choose Start -&gt; Control Panel -&gt; Administrative Tools -&gt; Internet Information Services&lt;br /&gt;2. Expand the nodes until you can see your virtual directory&lt;br /&gt;3. Right-click on the virtual directory and click Properties&lt;br /&gt;4. Select the ASP.NET tab&lt;br /&gt;5. Under the ASP.NET version, choose 2.0.50215.0&lt;br /&gt;6. Click OK.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-2672677121807438748?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/2672677121807438748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=2672677121807438748' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2672677121807438748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/2672677121807438748'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/configuration-error-unrecognized.html' title='Configuration Error - Unrecognized attribute &apos;xmlns&apos; web.config - ASP.net 2.0'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-5840489908942392382</id><published>2007-02-07T10:29:00.000-08:00</published><updated>2007-02-07T10:34:35.018-08:00</updated><title type='text'>VS.Net 2005 Templates not found after applying the patch VS80-KB915364-X86-ENU</title><content type='html'>You might have surprised seeing no templates when you open the VS2005 IDE after installing the patch VS80-KB915364-X86-ENU&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Regenerate the templates by running 'devenv /installvstemplates' or reinstall &lt;br /&gt;Visual Studio.  &lt;br /&gt;Note: Action requires Administrator privileges. &lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-5840489908942392382?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/5840489908942392382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=5840489908942392382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5840489908942392382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/5840489908942392382'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/vsnet-2005-templates-not-found-after.html' title='VS.Net 2005 Templates not found after applying the patch VS80-KB915364-X86-ENU'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-6797267972387741343</id><published>2007-02-07T10:18:00.000-08:00</published><updated>2007-02-07T19:57:49.826-08:00</updated><title type='text'>SQL Server 2000 installation fails with "...previous program installation..." error message</title><content type='html'>When you install SQL Server 2000, this error message may occur: &lt;br /&gt;&lt;br /&gt;"A previous program installation created pending file operations on the installation machine. You must restart the computer before running setup."&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;1.Run the Windows Registry Editor &lt;br /&gt;2.Go to HKEY_LOCAL_MACHINE\SYSTEM\&lt;br /&gt;CurrentControlSet\Control\SessionManager &lt;br /&gt;3.Delete the pendingfilerenameoperations key &lt;br /&gt;&lt;br /&gt;Now it should work!!&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-6797267972387741343?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/6797267972387741343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=6797267972387741343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6797267972387741343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/6797267972387741343'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/sql-server-2000-installation-fails-with.html' title='SQL Server 2000 installation fails with &quot;...previous program installation...&quot; error message'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-8521837715158673190</id><published>2007-02-06T22:17:00.000-08:00</published><updated>2007-06-11T05:06:17.689-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File Upload'/><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload Control'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net 2.0'/><title type='text'>File upload size limitation in &lt;asp:FileUpload&gt; control</title><content type='html'>You may receive surprise results when you try to upload a file of size more thatn 4mb with &amp;lt;asp:FileUpload&amp;gt; control&lt;br /&gt;&lt;br /&gt;You may not realize it, but there is a limit to the size of a file that can be uploaded using this technique. By default, the maximum size of a file to be uploaded to the server using the FileUpload control is around 4MB. You cannot upload anything that is larger than this limit.&lt;br /&gt;&lt;br /&gt;To change this size limit, you make some changes in either the web.config (found in the ASP.NET 2.0 configuration folder at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG) or your application's web.config file.&lt;br /&gt;&lt;br /&gt;In the web.config file, find or add a node as following inside System.Web tag:&lt;br /&gt;&lt;br /&gt;&amp;lt;httpRuntime&lt;br /&gt;executionTimeout="110"&lt;br /&gt;maxRequestLength="4096"&lt;br /&gt;requestLengthDiskThreshold="80"&lt;br /&gt;useFullyQualifiedRedirectUrl="false"&lt;br /&gt;minFreeThreads="8"&lt;br /&gt;minLocalRequestFreeThreads="4"&lt;br /&gt;appRequestQueueLimit="5000"&lt;br /&gt;enableKernelOutputCache="true"&lt;br /&gt;enableVersionHeader="true"&lt;br /&gt;requireRootedSaveAsPath="true"&lt;br /&gt;enable="true"&lt;br /&gt;shutdownTimeout="90"&lt;br /&gt;delayNotificationTimeout="5"&lt;br /&gt;waitChangeNotification="0"&lt;br /&gt;maxWaitChangeNotification="0"&lt;br /&gt;enableHeaderChecking="true"&lt;br /&gt;sendCacheControlHeader="true"&lt;br /&gt;apartmentThreading="false" /&amp;gt;&lt;br /&gt;&lt;br /&gt;By default, this is set to 4096 kilobytes (KB). Simply change this value to increase the size of the files that you can upload to the server. If you want to allow 10 megabyte (MB) files to be uploaded to the server, set the maxRequestLength value to 11264, meaning that the application allows files that are up to 11000 KB to be uploaded to the server.&lt;br /&gt;&lt;br /&gt;-::-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-8521837715158673190?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/8521837715158673190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=8521837715158673190' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8521837715158673190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8521837715158673190'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/file-upload-size-limitation-in-control.html' title='File upload size limitation in &amp;lt;asp:FileUpload&amp;gt; control'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4745917299981491733</id><published>2007-02-05T23:28:00.000-08:00</published><updated>2007-02-05T23:39:38.334-08:00</updated><title type='text'>How to embed WMP in asp.net pages and how can we redirect the request when the movie ends</title><content type='html'>You can either user &amp;lt;img&amp;gt; or &amp;lt;object&amp;gt; to embed movies in *.aspx. But to capture the events, you should use the later &lt;br /&gt;&lt;br /&gt;Use the below &amp;lt;object tag&amp;gt; to embed WMP in .aspx / html pages&lt;br /&gt;&amp;lt;object id="VIDEO" width="100%" height="100%"  &lt;br /&gt; classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"&lt;br /&gt; type="application/x-oleobject"&amp;gt;&lt;br /&gt; &amp;lt;param name="URL" value="http://localhost/QaQcTraining/movies/start.wmv" /&amp;gt; &lt;br /&gt; &amp;lt;param name="SendPlayStateChangeEvents" value="True" /&amp;gt;&lt;br /&gt; &amp;lt;param name="AutoStart" value="True" /&amp;gt;&lt;br /&gt; &amp;lt;param name="uiMode" value="none" /&amp;gt; &lt;br /&gt; &amp;lt;param name="windowlessVideo" value="True" /&amp;gt;&lt;br /&gt; &amp;lt;param name="stretchToFit" value="true" /&amp;gt;&lt;br /&gt;&amp;lt;/object&amp;lt;&lt;br /&gt;&lt;br /&gt;Now, use the below script to capature the events of WMP&lt;br /&gt;&amp;lt;script language=jscript FOR = VIDEO EVENT = playStateChange(NewState) type=text/jscript&amp;gt;&lt;br /&gt;        // Test for the player current state, display a message for each.&lt;br /&gt;        switch (NewState){&lt;br /&gt;            case 1:&lt;br /&gt;                //myText.value = "Stopped";&lt;br /&gt;                //alert('stoped');&lt;br /&gt;                location.href="qform.aspx"; &lt;br /&gt;                //redirecting to different page after the movie plays&lt;br /&gt;                break;&lt;br /&gt;&lt;br /&gt;            case 2:&lt;br /&gt;                //myText.value = "Paused";&lt;br /&gt;                //alert('paused');&lt;br /&gt;                break;&lt;br /&gt;&lt;br /&gt;            case 3:&lt;br /&gt;                //myText.value = "Playing";&lt;br /&gt;                //alert('playing');&lt;br /&gt;                break;&lt;br /&gt;&lt;br /&gt;            // Other cases go here.&lt;br /&gt;&lt;br /&gt;            default:&lt;br /&gt;                //alert('def');&lt;br /&gt;                //myText.value = "";&lt;br /&gt;        }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4745917299981491733?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4745917299981491733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4745917299981491733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4745917299981491733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4745917299981491733'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/02/how-to-embed-wmp-in-aspnet-pages-and.html' title='How to embed WMP in asp.net pages and how can we redirect the request when the movie ends'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-8927382777440185094</id><published>2007-01-28T03:28:00.000-08:00</published><updated>2007-01-28T09:15:00.281-08:00</updated><title type='text'>SQL2000 Enterprise Manager not working after installing SQL2005 version in the same box</title><content type='html'>When you install both versions together, one after another and try opeining the Enterprise Manager, you may recieve a message as below&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;snap-in failed to initialize&lt;br /&gt;Name: &lt;unknown&gt;&lt;br /&gt;CLSID: {00100100-1816-11d0-8eF5-00AA0062c58F}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;Try reregistering sqlmmc.dll &lt;br /&gt;ie.regsvr32 C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmmc.dll&lt;br /&gt;&lt;br /&gt;-:-:-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-8927382777440185094?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/8927382777440185094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=8927382777440185094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8927382777440185094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/8927382777440185094'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/01/sql2000-enterprise-manager-not-working.html' title='SQL2000 Enterprise Manager not working after installing SQL2005 version in the same box'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-4311613912531304547</id><published>2007-01-24T02:51:00.000-08:00</published><updated>2007-01-24T02:57:55.046-08:00</updated><title type='text'>How to implement AJAX in Share Point 2003 ?</title><content type='html'>There is no straightaway thing to accomplish this. Although Microsoft has released its AJAX toolkit, it is only compatible with .net framework 2.0 while SP2003 is built on .net framework 1.1. To get around this, we have to go for some javascript libraries.&lt;br /&gt;Anthem.net is the best best to achieve. This is basically an open source with rich control functionality built on the top of microsoft's standard web controls. It supports both versions of .net frameworks as well.&lt;br /&gt;To get the ajax functionality for a set of controls in a web page, add anthem panel and embed all standard web controls within it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuration&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To get the functionality for a set of controls in the web page, use Anthem Panel control and embed the controls within it. Or else use individual Anthem Controls.&lt;br /&gt;&lt;br /&gt;&amp;lt;anthem:panel id="MenuPanel" runat="server" AddCallBacks="true" AutoUpdateAfterCallBack="true"&lt;br /&gt;TextDuringCallBack="Please wait..." width="100%"&amp;gt;&lt;br /&gt;&lt;br /&gt;In the above configuration, "Please wait..." would be displayed in the control's Text portion while callback happens (TextDuringCallBack). For example, on button click, button text will change to "Please wait.." and remain till callback finishes. AutoUpdateAfterCallBack ensures that controls are refreshed after callback.&lt;br /&gt;While porting the anthem technology to SP server, there are times when the callback updates doesn't happen properly. In that case, in the button click events (triggering events), add MenuPanel.UpdateAfterCallBack=true;&lt;br /&gt;&lt;br /&gt;Now develop the webpart and call the webpages as .ascx. &lt;br /&gt;&lt;br /&gt;It works great! Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-4311613912531304547?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/4311613912531304547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=4311613912531304547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4311613912531304547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/4311613912531304547'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2007/01/how-to-implement-ajax-in-share-point.html' title='How to implement AJAX in Share Point 2003 ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115692355832789773</id><published>2006-08-30T00:37:00.000-07:00</published><updated>2006-08-30T00:39:19.066-07:00</updated><title type='text'>Opacity property of WinForms is not working</title><content type='html'>The Opacity property of WinForm will not work for MDI Child forms due to some problems in form paintings. Infact, it is designed ONLY for top level windows.&lt;br /&gt;&lt;br /&gt;Read @ &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingMDIChildForms.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingMDIChildForms.asp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115692355832789773?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115692355832789773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115692355832789773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115692355832789773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115692355832789773'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/opacity-property-of-winforms-is-not.html' title='Opacity property of WinForms is not working'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115605898597634541</id><published>2006-08-20T00:15:00.000-07:00</published><updated>2006-08-20T00:29:45.986-07:00</updated><title type='text'>Integrate SQL Reporting Service 2005 with Sharepoint Portal 2003 with Web Part</title><content type='html'>Reporting Service rendering web part for share point  is available at %\Program Files\Microsoft SQL Server\90\Tools\Reporting Services\SharePoint when SQL Reporting Service 2005 is installed.&lt;br /&gt;&lt;br /&gt;Install the above web part in share point with stsadm.exe. It consists of two web parts, Report Explorer and Report Viewer. Report Explorer is basically for listing the reports available in the reporting service in the specified folder (configuration of web part) and Report Viewer web part is for rendering report. Drag both web part in one of the sharepoint pages&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuration&lt;/strong&gt;&lt;br /&gt;Enter the report manager url in the "Report Manager URL" property of Report Explorer web part.&lt;br /&gt;Enter the folder name in the "Startpath" property of Report Explorer web part so that it will list only those reports in that folder. (It can remain empty)&lt;br /&gt;&lt;br /&gt;In design mode of the page, go to properties of Report Viewer web part and select&lt;br /&gt;Connections - &gt; Get report from -&gt; Report Explorer.&lt;br /&gt;&lt;br /&gt;Now, click one of the reports in the Report Explorer web part listing and find the report rendered in the report viewer web part&lt;br /&gt;&lt;br /&gt;Zm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115605898597634541?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115605898597634541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115605898597634541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115605898597634541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115605898597634541'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/integrate-sql-reporting-service-2005.html' title='Integrate SQL Reporting Service 2005 with Sharepoint Portal 2003 with Web Part'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115605802204168125</id><published>2006-08-19T23:44:00.000-07:00</published><updated>2006-08-20T00:13:42.050-07:00</updated><title type='text'>SQL Reporting Service 2005 Express and Business Intelligence Development Studio - How to install and configure ?</title><content type='html'>SQL Reporting Service 2005 Express is available when you install the &lt;strong&gt;SQL Server 2005 Express Edition with Advanced Services SP1&lt;/strong&gt; edition. This is frely downloadable at &lt;a href="http://msdn.microsoft.com/vstudio/express/sql/download/"&gt;http://msdn.microsoft.com/vstudio/express/sql/download/&lt;/a&gt;. &lt;span style="color:#000000;"&gt;Keep the servicing component selected while installing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To install the Business Intelligence Development Studio, download &lt;strong&gt;Microsoft SQL Server 2005 Express Edition Toolkit SP1&lt;/strong&gt; from the same URL &lt;a href="http://msdn.microsoft.com/vstudio/express/sql/download/"&gt;http://msdn.microsoft.com/vstudio/express/sql/download/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115605802204168125?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115605802204168125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115605802204168125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115605802204168125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115605802204168125'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/sql-reporting-service-2005-express-and.html' title='SQL Reporting Service 2005 Express and Business Intelligence Development Studio - How to install and configure ?'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115571483714912820</id><published>2006-08-16T00:10:00.000-07:00</published><updated>2006-08-16T02:46:07.553-07:00</updated><title type='text'>Display Mail Inbox, Tasks and Calendar from MS Outlook in Sharepoint Sites with web parts</title><content type='html'>You can do this in two better ways.&lt;br /&gt;&lt;br /&gt;1. Drag "Content Editor Web Part" and paste the following script into the Source Editor&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;object classid="clsid:0006F063-0000-0000-C000-000000000046" id="ViewCtlFolder" width="100%" height="400px" codetype= "application/x-oleobject"&lt;br /&gt;codebase="http://activex.microsoft.com/&lt;br /&gt;activex/controls/office/outlctlx.CAB#ver=9,0,0,3203"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;param name="Namespace" value="MAPI"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;param name="Folder" value="Inbox"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;param name="Restriction" value=""&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;param name="DeferUpdate" value="0"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&amp;lt;/object&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#333333;"&gt;2. Create a generic web part using VS.Net and rewrite the function RenderWebPart like below&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;&lt;span style="color:#990000;"&gt;protected override void RenderWebPart(HtmlTextWriter output)&lt;br /&gt;{&lt;br /&gt;string str = "--above written script--";&lt;br /&gt;output.Write(str);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that, to view Calender or Tasks instead of inbox, you can replace the term "Inbox" in the script with corresponding item.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Z&lt;/span&gt;m&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115571483714912820?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115571483714912820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115571483714912820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115571483714912820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115571483714912820'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/display-mail-inbox-tasks-and-calendar.html' title='Display Mail Inbox, Tasks and Calendar from MS Outlook in Sharepoint Sites with web parts'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115555798558731840</id><published>2006-08-14T05:01:00.000-07:00</published><updated>2006-08-14T05:19:45.596-07:00</updated><title type='text'>How to install SQL Server Business Intelligence Development Studio along with SQL 2005 Express and SQL 2005 Reporting Service</title><content type='html'>&lt;span style="font-family:arial;font-size:85%;"&gt;SQL Server 2005 Reporting Service is version dependant on SQL Server. If you install SQL 2005 Express, you can only install express edition of SQL Server 2005 Reporting Service (RS).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Business Intelligence Development Studio is the default report designer of SQL Reporting Serivce. It is an addin for VS.Net 2005 with templates for "Report Projects"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;How to install the express editions ?&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Downlaod SQL Server 2005 Express with Advanced Service (this includes the reporting services) and install. While installing keep the item "Reporting Service" checked&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Download SQL Server 2005 Express Toolkit ( &lt;/span&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=" displaylang="en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3c856b93-369f-4c6f-9357-c35384179543&amp;amp;DisplayLang=en"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=3c856b93-369f-4c6f-9357-c35384179543&amp;DisplayLang=en&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;). The kit includes the business intelligent development studio&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Now, go to Start - Settings - Control Panel  and click Add remove programs&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Click the "Change" button of MS SQL Server 2005&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Click the link "To install a new component, click here"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Locate the new .exe file of Express Toolkit by clicking the "Browse" button&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Proceed the installations with "Next" button clicks.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-size:130%;"&gt;-Z&lt;/span&gt;m&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115555798558731840?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115555798558731840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115555798558731840' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115555798558731840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115555798558731840'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/how-to-install-sql-server-business.html' title='How to install SQL Server Business Intelligence Development Studio along with SQL 2005 Express and SQL 2005 Reporting Service'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115555656633129260</id><published>2006-08-14T04:10:00.000-07:00</published><updated>2006-08-14T04:56:06.393-07:00</updated><title type='text'>Not able to connect Sql Server 2005 Express remotely</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color:#6633ff;"&gt;"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)&lt;/span&gt; "&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;By default, when you install Sql Server 2005 Express Edition, it will not allow the applications or clients to connect remotely as like OracleXE. This causes the sytem to throw the above error message. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;To enable the remote connection, &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Go to Start - Programs - Microsoft SQL Server 2005 - Configuration Tools - SQL Server Surface Area Configuration&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Click the link "Surface Area Configuration for Services and Connections"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Now expand the tree SQLEXPRESS - Database Engine -  Remote Connections in the "View by Instance" tab&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:georgia;"&gt;Select "Local and remote connections" and "Using both TCP/IP and named pipes" and apply the changes&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;~&lt;span style="font-size:130%;"&gt;Z&lt;/span&gt;&lt;span style="font-size:78%;"&gt;m&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115555656633129260?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115555656633129260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115555656633129260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115555656633129260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115555656633129260'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/not-able-to-connect-sql-server-2005.html' title='Not able to connect Sql Server 2005 Express remotely'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115502184351016679</id><published>2006-08-08T00:11:00.000-07:00</published><updated>2006-08-08T00:29:46.670-07:00</updated><title type='text'>Body onLoad() event in content pages - ASP.net 2.0</title><content type='html'>How we can use the onLoad() event in ASP.Net 2.0 content pages ?&lt;br /&gt;&lt;br /&gt;Simple !.&lt;br /&gt;A content page is basicall a page inherited from a MasterPage (.master) in .net framework 2.0. This can be adhieved by either two ways.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;1. Javascript function override&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Add body onLoad() event in the master page and override the function used in the event in the inherited content pages.&lt;br /&gt;&lt;br /&gt;Say,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;in master page&lt;/strong&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;script language=" javascript" type=" text/javascript"&amp;gt;&lt;br /&gt;       function testonload(){ //an empty function&lt;br /&gt;          var x = 'empty';&lt;br /&gt;       }&lt;br /&gt;   &amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;..&lt;br /&gt;...&lt;br /&gt;....&lt;br /&gt;.....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;in content page&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:content id="Content1" runat="Server" contentplaceholderid="ContentPlaceHolder1"&amp;gt;&lt;br /&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;&lt;br /&gt;function testonload(prodid, div) {&lt;br /&gt;//client script logic goes here..!!&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;2. Bind client script to body in code behind&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;br /&gt;Give an id to the body tag of the masgter page and add runat="server" sot that it is available in the code behind.&lt;br /&gt;&lt;br /&gt;Now in content pages, add the following code in the page_load event&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HtmlGenericControl body = (HtmlGenericControl)Page.Master.FindControl("bodyMaster");&lt;br /&gt;body.Attributes.Add("onload", "toggle('parameters');");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Keep coding,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;?xml:namespace prefix = asp /&gt;&lt;asp:content id="Content1" runat="Server" contentplaceholderid="ContentPlaceHolder1"&gt;&lt;/asp:content&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115502184351016679?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115502184351016679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115502184351016679' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115502184351016679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115502184351016679'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/08/body-onload-event-in-content-pages.html' title='Body onLoad() event in content pages - ASP.net 2.0'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115365465247766618</id><published>2006-07-23T04:24:00.000-07:00</published><updated>2006-07-23T04:37:32.486-07:00</updated><title type='text'>Service-oriented architecture (SOA)</title><content type='html'>&lt;span style="font-family:arial;font-size:85%;"&gt;A service is a function that is well-defined, self-contained, and does not depend on the context or state of other services&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;The technology of Web Services is the most likely connection technology of service-oriented architectures. Web services essentially use XML to create a robust connection.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;The following figure illustrates a basic service-oriented architecture. It shows a service consumer at the right sending a service request message to a service provider at the left. The service provider returns a response message to the service consumer. The request and subsequent response connections are defined in some way that is understandable to both the service consumer and service provider. A service provider can also be a service consumer.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115365465247766618?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115365465247766618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115365465247766618' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115365465247766618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115365465247766618'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/07/service-oriented-architecture-soa.html' title='Service-oriented architecture (SOA)'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115338169367982055</id><published>2006-07-20T00:45:00.000-07:00</published><updated>2006-07-20T00:48:13.686-07:00</updated><title type='text'>Sharepoint - an application development platform!!!</title><content type='html'>&lt;p&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Do you think Sharepoint an engine for just document sharing and versioning?  Oooooops..!!&lt;br /&gt;A big no……It is a lot more than that. Apart from using InfoPath to make feeder forms for sharepoint web services, you can make it use as a platform for systems applications development. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;.net Web Parts&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;To customize the sharepoint sites with user-defined business process flows and workflows, user should develop custom web parts on .net technologies. It is basically similar to an application development on .net with more or less constraints and standards.&lt;br /&gt;For example, if the user wants the SP to display the logged in user name, he needs to write a web part to display it in the pages. There web part templates comes into picture. It is freely downloadable from Microsoft web site and it is a plug-in to the VS.Net 2003. &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115338169367982055?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115338169367982055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115338169367982055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115338169367982055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115338169367982055'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/07/sharepoint-application-development.html' title='Sharepoint - an application development platform!!!'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31384722.post-115337370612811668</id><published>2006-07-19T22:33:00.000-07:00</published><updated>2006-07-19T23:27:55.800-07:00</updated><title type='text'>Choosing between a User Control or Web Part for SharePoint</title><content type='html'>&lt;span style="font-family:arial;font-size:85%;"&gt;I generally recommend that users don't write Web Parts unless they have to. That confuses a lot of people since most people believe that you have to write Web Parts if you want to do work with SharePoint. This is only partially true.&lt;br /&gt;SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From Share Point’s point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control.&lt;br /&gt;When faced with a decision on how to get content into a SharePoint Web Part on a portal, the question becomes when should you use a user control and when should you use a Web Part. In order to understand this decision, we must first understand the strengths and weaknesses of each approach. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;strong&gt;The Power of User Controls &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The ability to employ user controls as a part of a SharePoint deployment is very powerful. It takes a technology that developers are already familiar with (or should be familiar with) and is supported by tools and brings it to SharePoint.&lt;br /&gt;AdvantagesThere are three primary advantages to user controls when dealing with SharePoint. They are: familiarity, reusability, and development speed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;· Familiarity&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;One of the keys to development is managing the degree of change that the team is put through as it transitions from technology to technology. Part of managing that change is minimizing it where possible. This is one of the reasons that user controls are such a good solution for many organizations. User controls are a core ASP.NET construct, they are something that developers are likely already familiar with — or at least aware of.&lt;br /&gt;This familiarity increases the knowledge reuse coming into the project, which keeps morale high, improves productivity, and improves reuse of the experience after the SharePoint project.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;strong&gt;· Reusability&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Another way user controls are advantageous is that they can be used with other ASP.NET-based solutions. They aren't explicitly tied to SharePoint. If for some reason in the future you decide that SharePoint isn't the right platform for the solutions you're building — or you decide you need to reuse the technology in another non-SharePoint project — you have that capability. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;strong&gt;· Development Speed&lt;/strong&gt;&lt;br /&gt;Direct support by Visual Studio for a visual interface for user controls — as opposed to manually adding in controls through code — is a great advantage in development speed. Having a visual look and feel instantly available makes the process go faster.&lt;br /&gt;&lt;br /&gt;Debugging is faster too, as you can construct testing harnesses that fully exercise and instrument the user control. Web Parts are essentially only runable from within SharePoint. This means that you must deal with all of the SharePoint infrastructure while trying to debug.&lt;br /&gt;&lt;br /&gt;ASP.NET 2.0 Web Parts and their ability to be used with SharePoint hold promise, but since right now the story of SharePoint and ASP.NET 2.0 is still not perfect, it's more of a future consideration than a potential solution for today.&lt;br /&gt;Maintenance is also easier and faster with User Controls, primarily because they are easier to understand and debug. The net of this is that developing with user controls is substantially faster than developing a Web Part for everything but the most trivial implementations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Disadvantages &lt;/strong&gt;&lt;br /&gt;The picture isn't completely rosy or there wouldn't be much discussion about whether to do a user control or a Web Part. There are some places where user controls may not be a great fit.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;· Performance&lt;/strong&gt;&lt;br /&gt;While the overhead of shimming a user control into a SharePoint site may be trivial for most sites, an extremely large site may have to consider the performance impact of having multiple Web Parts actually coming from user controls.&lt;br /&gt;As a practical matter, most people won't be in a situation where the performance difference between user controls and Web Parts will really matter. However, it is still one of the major objections raised by larger organizations to using user controls for their SharePoint development.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;· Deployment&lt;/strong&gt;&lt;br /&gt;The story for deploying user controls is a bit messy. Single compiled DLLs for entire ASP.NET Web sites mean dumping a series of DLLs in to the bin directory or having all of your user controls in one massive project. Although this problem is substantially mitigated with ASP.NET 2.0, it's still an issue for deployments today.&lt;br /&gt;Adding more difficulty is the deployment mechanism created for SharePoint, which doesn't work well with the structure created by the most popular shim — SmartPart. The net result is that deploying user controls can take a different procedure than even deploying your Web Parts. While this is a challenge, it is one that can be relatively easily overcome by some process and tools.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Performance of Web Parts &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;For most people, the default answer is to build Web Parts for SharePoint — there are plenty of &lt;/span&gt;&lt;a href="http://www.intranetjournal.com/articles/200510/ij_10_10_05a.html"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;articles on how to do it&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;, including a few of mine. They have the distinct advantage of being the "stock" answer to the problem. And in some cases they are the best answer for the job.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;The primary advantage for creating a Web Part is that everything is available. You can manipulate the tool bar; you can change everything about the way the Web Part behaves. With a user control shim you have limited abilities to reach outside of the container that you're in.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Other than that, the user control's strengths are the Web Part's weaknesses. It's unfamiliar. It's not reusable. It is more difficult to develop and debug. Similarly, the user controls weaknesses are the Web Parts strengths. Web Parts are the best performers. Web Parts have a structured deployment mechanism supported by the core infrastructure.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;In most organizations the core advantage for Web Parts turns out to be their performance over user controls. As mentioned above, this is rarely a real concern; rather it is a conditioned response to be concerned with the scalability of the platform. In terms of real performance the difference is fairly minor. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;strong&gt;Making the Evaluation &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;Because the basic understanding of the differences isn't enough, this section dives into some of the other considerations, which emphasizes various strengths or weaknesses of various approaches.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;Visual Construction&lt;/strong&gt;&lt;br /&gt;One of the most popular reasons why I move the bar from creating a user control to creating a Web Part is when the familiarity and development speed benefits of a user control are neutralized. This typically happens when the entire output of the Web Part (or area on the page) is built dynamically. The benefit of the user interface for a user control becomes useless. The familiarity with the concepts fades to the background as the output of the user control becomes more dynamic than normal.&lt;br /&gt;&lt;br /&gt;For instance, if you're rendering a set of links or doing replacements on a string to be output, what advantages does a user control really have? The answer is not much, if any. In these cases, it may be better to build a Web Part, which has fewer "moving parts," rather than trying to shoehorn the content into a user control.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Coupling&lt;/strong&gt;&lt;br /&gt;One of the benefits of a user control is that it can be transported from SharePoint and used in other ASP.NET applications. However, what happens if the user control is tightly coupled to SharePoint. If it has a reference to the Microsoft.SharePoint.dll, then it's no longer reusable outside of SharePoint. So the reusability advantage disappears when you need to make direct use of SharePoint features. In these cases, if the user interface is simple, it may just make sense to be coded as a Web Part. Web Parts are necessarily coupled to SharePoint, therefore the additional coupling to SharePoint is immaterial. When building a replacement Web Part, which controls links on a list page, we made the decision to build a Web Part rather than a user control because the Web Part was deeply integrated into SharePoint. The Web Part applies additional criteria to the visibility of some of the related links — such as 'Alert Me.' Building a user control would not have helped reusability and would have been equally challenging to debug.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Performance&lt;/strong&gt;&lt;br /&gt;Although I generally believe that performance is too often on developers' minds there are times when performance is an issue to be considered. Generally speaking, the cost of a server and the associated software to run it is trivial in comparison to the cost of developing the solution. With a server being had for less than $5,000 and $5,000 not really even covering the full cost of a developer for a few weeks, it rarely makes sense to focus on performance.&lt;br /&gt;&lt;br /&gt;There are, however, obvious places where it makes sense to care about performance. Items that are on every single page are good candidates to be Web Parts. Even with a low overall site volume, a Web Part that is on every page will generate a fair amount of volume, so performance is a valid concern.&lt;br /&gt;&lt;br /&gt;For instance, we have a replacement for the Content Editor Web Part. The Web Part's primary function is to allow for relative paths and to enhance caching capabilities. It was done as a Web Part because it exists at least twice on every page — once for the header and again for the footer. This "core" component was pushed towards the side of performance even though it may have been just as easy or easier to develop as a user control.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;A Better Mousetrap&lt;/strong&gt;&lt;br /&gt;The final consideration is that Web Parts lend themselves to a configuration-based design pattern. In other words, you create a generic component to fetch content from a URL rather than creating separate Web Parts for each URL to be fetched. This configuration-based approach is very helpful in reducing code duplication and improving the overall solution.&lt;br /&gt;&lt;br /&gt;With SmartPart, there is still a problem with managing how information is pushed down to the user control. The solution is to create your own user control wrapper or to subclass SmartPart to add the ability to push in properties from SharePoint, the query string, and even a form post. This allows you to leverage SharePoint features without creating a coupling between the user controls and SharePoint.&lt;br /&gt;&lt;br /&gt;For instance, a user control can expose a public property that accepts the identifier for the current record. The shim has the ID for the current record from the SharePoint properties for the site and notices it available as a public property on the user control. It can push the ID into the public property of the user control. This allows the user control to remain free of SharePoint coupling and still leverage a configuration based approach&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Conclusion&lt;br /&gt;&lt;/strong&gt;Most of the time the assumption is that you have to write a SharePoint Web Part to get functionality in SharePoint is wrong. More frequently, it is appropriate to develop ASP.NET user controls and leverage them in SharePoint through shim technologies like SmartPart&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31384722-115337370612811668?l=dotnetsoldier.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsoldier.blogspot.com/feeds/115337370612811668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31384722&amp;postID=115337370612811668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115337370612811668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31384722/posts/default/115337370612811668'/><link rel='alternate' type='text/html' href='http://dotnetsoldier.blogspot.com/2006/07/choosing-between-user-control-or-web.html' title='Choosing between a User Control or Web Part for SharePoint'/><author><name>dotNetSoldier</name><uri>http://www.blogger.com/profile/15770261538029523668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_LQ-3m4uF-VU/TDV6PncAfMI/AAAAAAAADuo/tzkLW-gDn3M/S220/me5.JPG'/></author><thr:total>0</thr:total></entry></feed>
