tag:blogger.com,1999:blog-281850302024-03-13T16:42:31.365+05:30spicy.netPremhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-28185030.post-1133317361660680872008-08-08T23:07:00.005+05:302008-08-08T23:58:13.980+05:30I becomes We<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGEoTx8Vib5xHhiYj93ZVk10ndkTXHHxz-0j7KxoHJE-Vihic1iFkx8sEnypUnhts-xWR1QnjN83Z5QqWinOW2rL65GBQGbHmMamezWKzOUft9y8aA6_Ma7Qbiel24gpPdjs/s1600-h/IMG_0509-1.jpg"><img id="BLOGGER_PHOTO_ID_5232215150997762930" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGEoTx8Vib5xHhiYj93ZVk10ndkTXHHxz-0j7KxoHJE-Vihic1iFkx8sEnypUnhts-xWR1QnjN83Z5QqWinOW2rL65GBQGbHmMamezWKzOUft9y8aA6_Ma7Qbiel24gpPdjs/s400/IMG_0509-1.jpg" border="0" /></a><br /><div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPQH999-xquwzo9fUtXos5l9_95awavYrAHYPEzZHCXvtK1Iet0O3rYLwcxOCp7iYc0ws5LucCsQAMWAGmQcMrL8otzUmYxKKPeqendSTkp6-uty3ArXpj0iU0e8yl9fM4FFU/s1600-h/IMG_0511.jpg"></a><br /><br /><div align="left"><span style="font-family:verdana;color:#660000;"><span style="font-family:verdana;"><em>After a long travel I got my sweetheart smitha on Apr 11 th 2008. Wow felt like entered into a new world with her. From that day my heart was full of her nothing but full of happiness. Here I want to explain her she is good hearted by birth. She does what i like and wish. Then let me continue my journey.. weekly twice will meet in a big shopping mall, and shared many things... :-). To explore our relationship we got married on jun 23 2008. I want to say thanks for giving me a wonder full heart to me. We are living in same fresh till now... and for ever.</em></span> </span></div><br /><br /><div align="left"></div></div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com1tag:blogger.com,1999:blog-28185030.post-1171643279828136432007-02-16T20:52:00.000+05:302007-02-16T21:57:59.840+05:30Asynchoronous Data Fetching...<span style="font-size:85%;">We would have faced Session Timeout Issue and some runtime error if we have huge number of records to be displayed in web. To eliminate this we can go for a mixture of Asynchoronous call and caching. I have explained in macro level and you can tune based upon your requirements.</span><br /><span style="font-size:85%;">Please follow these steps...</span><br /><span style="font-size:85%;">Step1:</span><br /><span style="font-size:85%;"> <span style="color:#ff6600;"> /*Declare a Delegate*/</span></span><br /><span style="font-size:85%;"> private delegate void ExampleDelegate();</span><br /><span style="font-size:85%;">Step2:</span><br /><span style="font-size:85%;"> <span style="color:#ff6600;"> /*Map the delegate to a function which is going to be a asynchronous*/</span></span><br /><span style="font-size:85%;"> ExampleDelegate dlgInstance = new ExampleDelegate(GetSmartsData); </span><br /><span style="font-size:85%;">Step3:</span><br /><span style="font-size:85%;"> <span style="color:#ff6600;">/*Invoke the call back function*/ </span></span><br /><span style="font-size:85%;"> dlgInstance.BeginInvoke(new AsyncCallback(DrawGrid),null);</span><br /><span style="font-size:85%;">Step4:</span><br /><span style="font-size:85%;"> <span style="color:#006600;"> </span><span style="color:#ff6600;">/*Actual Async enabled Function*/</span></span><br /><span style="font-size:85%;"> private void GetSmartsData() </span><span style="font-size:85%;"> { Populate the date from the DB asynchronously.Let us assume the data in dataset object ds.</span><span style="font-size:85%;">}</span><br /><span style="font-size:85%;">Step5:</span><br /><span style="font-size:85%;"> <span style="color:#006600;"> </span><span style="color:#ff6600;">/*Call back function with caching */</span></span><br /><span style="font-size:85%;"> private void DrawGrid(IAsyncResult results) { </span><br /><span style="font-size:85%;"> Cache.Insert("FirstGrid",ds,null,System.DateTime.Now.AddMinutes(15),new System.TimeSpan(0)); </span><br /><span style="font-size:85%;"> }</span><br /><span style="font-size:85%;"></span><br /><span style="font-size:85%;">It is working fine in my application.Please let me know if any issues. Happy coding.</span>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1152586254907210802006-07-11T08:15:00.000+05:302006-07-11T08:20:54.916+05:30Intellisense for SQL ServerHi All,<br /><br />Sharing with you guys a free and cool add in for your sql query analyzer of SQL Prompt.You can download this cool tool from <a href="http://www.red-gate.com/products/SQL_Prompt/index.htm">Reg-gate</a> site, Which is a free download till 1st-September. Hurry guys..<br /><br />Let it make our jobs easier....Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com2tag:blogger.com,1999:blog-28185030.post-1152040576762868992006-07-05T00:35:00.000+05:302006-07-05T00:47:19.510+05:30How to make a PDF files to speak ?!!@<div align="justify">Hey you know onething one of my friend is too lazy to read, <span style="color:#3333ff;">need is the mother of invention :-)</span>. He gave a wonderful feature that is available in Acrobat Reader. That will read out of the content very clearly. The amazing thing page scrolls automatically when it reads out. Then the question of how to do this ?</div><div align="justify"> </div><ul><li><div align="justify">Open any PDF file which as content in readable format.</div></li><li><div align="justify">Press Ctrl+Shift+B </div></li></ul><p align="justify">Thats it!!! You can just listen the Acrobat reads for you.... Hope you enjoy this :-) Now I know how my lazy friend knows lot of things without reading.</p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151871281963832122006-07-03T00:11:00.000+05:302006-07-03T01:44:42.000+05:30Basics of Microsoft Building Blocks<div align="justify"><span style="font-family:verdana;">Small piece of information which I want to share, regarding Microsoft Application Building blocks.</span></div><div align="justify"><br /><span style="font-family:verdana;">Like every developer and architect out there, you want your solutions to be efficient, robust, elegant, and cost effective. But as you well know, attaining these goals isn't always easy. Microsoft has begun the process of making your life easier by publishing information on patterns and practices, some of which you’ll find enlightening and useful.</span></div><div align="justify"><span style="font-family:verdana;"></span> </div><div align="justify"><span style="font-family:verdana;">I address each of the blocks to help you get a feel for how it can be used.</span></div><div align="justify"><span style="font-family:verdana;"></span> </div><ol><li><div align="justify"><span style="font-family:verdana;"><strong>Data Access Application Block</strong> - Implements a data access helper component, SqlHelper, which helps execute statements against SQL Server 7.0 and higher by exposing a set of static methods and reduces the amount of data access code you have to write</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Exception Management Application Block</strong> - Provides a simple and flexible mechanism for publishing exception information through an ExceptionManager class. Also supports filtering and creating your own exception publishers to publish data to sources other than files and event logs using text and XML.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Aggregation Application Block</strong> - A component that to collect information from various sources for the application. The application then makes requests to the aggregate component and it returns a single XML document of the collected data.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Asynchronous Invocation Application Block</strong> - A component that dispatches requests on background threads and then notifies the application when complete.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Caching Application Block</strong> - Allows applications to make requests of a CacheManager object that either returns the data. Allows items to be expired from cache and cached data to be stored in a variety of format including SQL Server, File etc.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Configuration Management Application Block</strong> - A component that abstracts the location of configuration information used in an application and adds features including encryption, caching.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>Updater Application Block</strong> - A component that can be used to download new versions of applications to client machines.Provides optional support for custom downloading and verification components in client machines.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong>User Interface Process Application Block</strong> - A component that allow you to separate the logic and state of a user process from the UI needed to collect data and navigate.</span></div></li></ol><p align="justify"><span style="font-family:verdana;">I am going to start exploring on each of these application blocks in detail in my upcoming blogs. Because I have to explore on these blocks day by day... :-)<br /></p></span>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151838731154367522006-07-02T16:25:00.000+05:302006-07-02T16:42:11.166+05:30Loading image from embedded resource<p align="justify">Guys to add an image as an embedded resource in a Windows Forms application,Please traverse these steps.</p><ol><li><div align="justify"> add the image file to the project with Project Add Existing Item.</div></li><li><div align="justify"> Then select the file in the Solution Explorer, go to the Properties Window, and set its Build Action property to Embedded Resource. At this point the file will be embedded within your compiled file, when you build the project. </div></li><li><div align="justify">The following routine shows how to load the embedded image in a PictureBox, at runtime:<br /><br />//load the bitmap...<br /><span style="color:#ff6600;"><strong>string bmpName = "MyNameSpace.sync.bmp";<br /></strong></span>System.IO.Stream strm = null;<br />try<br />{<br />strm = this.GetType().Assembly.GetManifestResourceStream(bmpName);<br />string[] s = this.GetType().Assembly.GetManifestResourceNames();<br />pictureBox1.Image = new Bitmap(strm);<br />}<br />catch(Exception ex)<br />{<br />MessageBox.Show(ex.Message.ToString());<br />}<br />finally<br />{<br />if(strm != null)<br />strm.Close();<br />}</div></li></ol><p align="justify"><br />Note that we have use the project's default namespace as a prefix while reading image from Resource.</p><div align="justify">Please go thru this <a href="http://www.codeproject.com/dotnet/Extracting_Embedded_Image.asp">Extensive Sample</a> </div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151835739889903192006-07-02T15:41:00.000+05:302006-07-02T16:05:49.266+05:30Writing in Web.config file dynamically...<div align="justify"><span style="font-family:verdana;"><strong>Introduction:</strong><br />Web.config allows the developers to change the configuration of the application without having to build the application. Its not a good idea to write to the configuration file dynamically as it will restart the application. But sometimes we need the feature to dynamically write to the config file. This can be the case when you allow the users to personalize the connection string. In this article we will see how we can dynamically write the connection string to the Web.config file.<br /><strong>What are we going to write?</strong><br />Since, we are changing the connection string dynamically we will need to write the key as well as the database name to the configuration file.<br /></div><div align="justify"><pre><appsettings><a href="http://photos1.blogger.com/blogger/7089/2981/1600/Comment-Dynamic-Web.Config.jpg"><img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/400/Comment-Dynamic-Web.Config.jpg" border="0" /></a></span><span style="font-family:verdana;"><pre></pre></span><div align="left"></div><span style="font-family:Verdana;"><strong>C# Code:</strong></span></pre></div><div align="justify">We will need to include the namespace System.xml. All we are doing is setting the <add>tag in web.config file. </div><div align="justify"></div><div align="left"><span style="color:#000066;">private void SetConfigSettings()<br />{<br />string path = Server.MapPath("Web.config");<br />string newConnectionString = @"Server=local;Database="+txtDatabaseName.Text+";Trusted_Connection=true";<br />XmlDocument xDoc = new XmlDocument();<br />xDoc.Load(path);<br />XmlNodeList nodeList = xDoc.GetElementsByTagName("appSettings");<br />XmlNodeList nodeAppSettings = nodeList[0].ChildNodes;<br />XmlAttributeCollection xmlAttCollection = nodeAppSettings[0].Attributes;<br />xmlAttCollection[0].InnerXml = txtKey.Text; // for key attribute<br />xmlAttCollection[1].InnerXml = newConnectionString; // for value attribute<br />xDoc.Save(path); // saves the web.config file<br />}</span></div><div align="justify"><span style="color:#000066;"></span></div><div align="justify"><span style="color:#000000;"><strong>Conculsion:</strong></span></div><div align="justify">Although it's not a good idea to write to the configuration file dynamically but sometimes depending on the situation we might have to use that approach.</div><div align="justify"></div><div align="justify"><strong><span style="font-family:Verdana;"></span></strong></div><div align="justify"></div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151780801251256662006-07-02T00:15:00.000+05:302006-07-02T00:36:41.300+05:30How to comment out ASP.NET Tags?<div align="justify"><span style="font-family:verdana;">If we want to comment the asp.net server controls we can use <%-- and --%>pair. </span></div><div align="justify"><span style="font-family:Verdana;"></span></div><div align="justify"><span style="font-family:verdana;"><strong>Example:</strong></span></div><div align="justify"><strong><span style="font-family:Verdana;"></span></strong></div><div align="justify"><span style="font-family:verdana;"></span></div><div align="justify"><span style="font-family:verdana;"></span> </div><div align="justify"><span style="font-family:verdana;"><img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger/7089/2981/400/Comment-ASP.NET%20Tags.1.jpg" border="0" /></div></span><br /><p>Happy coding... It is getting late I am moving to watch Brazil Match :-)</p><p> </p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151746717164665812006-07-01T14:55:00.000+05:302006-07-01T15:30:53.090+05:30Creating Setup and Deployment Projects in VS.NET<p align="justify"><span style="font-family:verdana;"><strong><span style="font-size:85%;">Section 1: Introduction</span></strong><br />This step-by-step tutorial guides you how to create a setup and deployment project using Visual Studio .NET to build a setup of your applications. Before creating Setup we should have answer for these questions<br />1. Why?<br />If we automate the installation instead of manual installation I can assure that 30-40% of post-installation issues can be reduced. </span></p><p align="justify"><span style="font-family:verdana;">2. Deployment Plans?<br />There are many topics that have to be thought about before releasing a plan for process of installation. Some of the critical questions to these issues are as follows:Q: </span></p><ul><li><div align="justify"><span style="font-family:verdana;">a) What do you want to deploy? Is it a Web application files setup, Client Desktop Setup or a Database installation?</span></div></li><li><div align="justify"><span style="font-family:verdana;">b) What are the pre-installation Harware configuration i.e processor settings,RAM, disk space etc; Software packages i.e MS Office, </span><a href="http://www.blogger.com/l"><span style="font-family:verdana;">SQL Server</span></a><span style="font-family:verdana;"> Enterprise edition, etc that are mandatory for you to setup?</span></div></li><li><div align="justify"><span style="font-family:verdana;">c) Which are the physical paths for your custom files, system files, Database (.dat, mdf etc), configuration files, read-write files? This is critical today since for us to be Windows 2003 compliant there are certain rules that have to be followed in this regard.Q: </span></div></li><li><div align="justify"><span style="font-family:verdana;">d) What do you want to configure post-installation? These may include things like configuring database connection string in your Web.config files; </span></div></li></ul><p align="justify"><span style="font-family:verdana;">Section 2:Project Types </span></p><p align="justify"><span style="font-family:verdana;">There are five types of setup and deployment projects in VS.NET, but three are of significant importance that are “SetUp Project”, “Web Setup Project” and “Merge Module Project”. </span></p><p align="justify"><a href="http://photos1.blogger.com/blogger/7089/2981/1600/first.jpg"><span style="font-family:verdana;"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/320/first.jpg" border="0" /></span></a></p><ul><li><div align="justify"><span style="font-family:verdana;"><strong><span style="font-size:85%;">Setup Project</span> -</strong> Generic type of project that could be used for all type of applications including web based application. </span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong><span style="font-size:85%;">Web SetUp Project</span> - </strong>Name suggests the type; this project type helps in creating virtual directories for web based applications during installation.</span></div></li><li><div align="justify"><span style="font-family:verdana;"><strong><span style="font-size:85%;">Merge Module Project</span> - </strong>When you want to install some additional third party software like MSDE along with your application then you can use this type of project. Use a *.msm extension based merge module installation of MSDE along with your own and create a setup. </span></div></li></ul><p align="justify"><strong><span style="font-family:verdana;font-size:85%;">Get Started</span></strong></p><p align="justify"><span style="font-family:verdana;">1) Select a SetUp Project type as shown in Display 1.</span></p><p align="justify"><span style="font-family:verdana;">2) The default File System editor will appear in the window as shown in Display 2</span></p><p align="justify"><a href="http://photos1.blogger.com/blogger/7089/2981/1600/sec.jpg"><span style="font-family:verdana;"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/320/sec.jpg" border="0" /></span></a><span style="font-family:verdana;">3) One can add special folders here into which they intend to add files. Just right click on the editor to view the special folder types available. These are the folders into which you can drag and drop an entire folder structure with files. </span></p><p align="justify"><br /><span style="font-family:verdana;">4) Click on Registry editor and navigate to that editor (Display 3). One can configure registry settings here like “Manufacturer’s name”, “Version No”, etc.</span></p><p align="justify"><span style="font-family:verdana;">5) There is also Launch Conditions editor available. This is of greatest use since one can pre-validate for certain rules even before installation.</span></p><p align="justify"><a href="http://photos1.blogger.com/blogger/7089/2981/1600/thr.jpg"><span style="font-family:verdana;"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/320/thr.jpg" border="0" /></span></a></p><p align="justify"><span style="font-family:verdana;">6) File types editor is used to associate a default command action, File description , icon and extension for your custom files. There are many occasions we create new file-types with extensions like “.rmt” or “.cpg” etc. </span></p><p align="justify"><span style="font-family:verdana;">7) User Interface editor is provided in VS.Net by default with certain additional dialogs as per the requirements (refer display 9). Add for e.g. Textboxes (A) option that provides you with 4 textbox with edit value, label and property.This is the most important editor since this is the UI that interfaces between the user and your MSI setup. The values captured from here are used throughout the installer like in Custom actions.</span></p><p align="justify"><a href="http://photos1.blogger.com/blogger/7089/2981/1600/five.jpg"><span style="font-family:verdana;"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/320/five.jpg" border="0" /></span></a></p><p align="justify"><span style="font-family:verdana;">8) Custom actions editor is where one adds some custom built *.exe, *.bat, *.wsh and other script files. As an example I have added a new C# windows application project as in Display 11. The following code in display that has a “Messagebox.Show” for a command line argument received. This could very well be any other functionality instead of Messsagebox.</span></p><p align="justify"><span style="font-family:verdana;">9) Installer setup is now complete. Build the project and try to install. </span></p><p align="justify"><span style="font-family:verdana;">Though I have not been able to discuss complete technical features of VS.NET to create MSI, the features discussed in this article with some individual reading are very much sufficient to create a professional MSI installer.Happy Programming!</span></p><p align="justify"><span style="font-family:verdana;">Check </span><a href="http://msdn2.microsoft.com/en-us/library/seykw6dt.aspx"><span style="font-family:verdana;">Deployment Properties</span></a><span style="font-family:verdana;">, </span><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vbconthecustomactionseditor.asp"><span style="font-family:verdana;">Custom Actions</span></a><span style="font-family:verdana;"> in MSDN. </span></p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1151697089197107922006-07-01T01:21:00.000+05:302006-07-05T00:50:13.706+05:30Quandary IE WebControlsAnybody is using Microsoft Web UI Controls still !!! then I think you should come across with this problem "Access Denied : Microsoft.Web.UI.WebControls". I was facing the same error in my application. Then as usaul I started with bottemless googling and got some Elucidation for it. Try any one of these or all steps Which I have listed down :)<br /><br /><ul><li>Check whether Indexing service is running if it is then stop it.</li><li>Reboot the machine once.</li><li>Remove the ASP.NET Temporary Files from Windows folder.</li><li>Deferencing the controls.</li><li>Copy all your dlls to bin folder and add reference from it.</li><li>Remove Windows Indentity Impersonate from your app.config file or in your code.</li><li>Destory the ASP.NET Worker Process.</li></ul><p>Hope these steps makes your life somewhat easy :) </p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1150783651917005422006-06-20T11:29:00.000+05:302006-06-20T11:37:31.926+05:30Gizmos to our siteGuys if we want to add some cool techniques to our site. Please visit this <a href="http://www.thefreedictionary.com/lookup.htm">cool site</a> where we can add online dictionary, Quatation of the day, Games, Alerts etc...Then the main we can do this with one or two line of code.Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1150740146049091552006-06-19T23:12:00.000+05:302006-06-19T23:38:50.106+05:30Teched 2006This is the first time I am attending the Microsoft TechEd. I enrolled for Developer track which has few session in Vista, VSTS, XAML etc. I came to know some important teminologies from VS 2007.<br /><ol><li><div align="justify"><span style="color:#ff6600;"><em>Powershell</em></span> - Object Orienented command prompt where we can invoke .NET framework from Power shell command. </div></li><li><div align="left"><em><span style="color:#ff6600;">WCF</span></em> - Windows Configuration Foundtion is methodology where we can going create pluggings for different protocols and our business logic will sit at the top.For Example Business logic will sit at the top and we can pluggin lot of protocols like MSMQ, Web services etc.</div></li><li><div align="left"><span style="color:#ff6600;"><em>WWF</em></span> - Windows Workflow foundation is a new technique where we can create workflow and the working pattern based on to our business logic.</div></li><li><div align="left"><span style="color:#ff6600;"><em>WPF </em></span>- Windows Persentation Foundation is new techniqu where we can create User Friendly UI using rich tools within .NET. It is nothing but MS has incorporated the ADOBE Photoshot in it.</div></li><li><span style="color:#ff6600;"><em>VSTS</em></span> - Visual Studio Team System is a very good tool where we can map the tasks with Versioning of controls, and it is easy to keep track on the resources.</li><li><span style="color:#ff6600;"><em>XAML</em></span> is a markup language which is used to draw friendly UI for users.</li></ol><p></p><p align="left">Another excellent stuff was the GRT Granddays food and the highlight of the day was Nauzad’s session on BizTalk Server 2006. He almost took the session like it will understand for dummies and it was really useful.</p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1149142967257855302006-06-01T11:32:00.000+05:302006-06-01T11:52:47.266+05:30Cute Tool to convert any .bmp to .ico file<div align="justify">If we want to put a icon in windows application we mostly use vector files (.ico) , but it is rare to get any free .ico files over the NET. Then I spend some time in the NET to find a tool to convert any .bmp files to .ico files... Here it is where we can <a href="http://www.popdrops.com/pabtisetup.exe">download</a> the tool, and another cool thing is absolutly free.. :-)</div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1147985207186322282006-05-19T02:04:00.000+05:302006-05-19T02:18:34.686+05:30Using Notepad as your virtual diary...<p align="justify"><span style="font-family:verdana;">Whenever I get into for conference calls I used to open notepad and start to log the same. After few days if I open that notepad I used to wonder on which particular days call I took this note. Yeah sometimes I used to forget to type in the current date and time before starting take notes]. Today I got to know this interesting tip from </span><a href="http://vadivel.blogspot.com"><span style="font-family:verdana;">Vadivel's Blog</span></a><span style="font-family:verdana;">.</span></p><p align="justify"><span style="font-family:verdana;">Step 1: Open notepad</span></p><p align="justify"><span style="font-family:verdana;">Step 2: Type .LOG as the first line of the file and press the carriage return [Enter key]</span></p><p align="justify"><span style="font-family:verdana;">Step 3: Save and close the file.</span></p><p align="justify"><span style="font-family:verdana;">Step 4: Double click on the file and open it ... you could notice that notepad appends the current datetime at the end of the file and places the cursor on the next line.Each and everytime you open the file it automatically appends the current datetime and places the cursor on the next line. </span></p>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1147978701093985492006-05-19T00:18:00.000+05:302006-05-19T00:33:27.473+05:30How to make your Web Reference proxy URL dynamic<div align="justify">I have been facing a problem in my project that how to make the URL property for a web reference to a web service, configurable in a config file instead of compiled in the web reference proxy. This is most useful when you want to deploy a project with a web reference between different business environments (like between Testing/QA and Production) without recompiling the project. There is a simple way to do this that requires no coding at all on the developer's part (provided you are using Visual Studio for .NET). </div><div align="justify"> </div><div align="justify"><strong><u><em><span style="color:#000099;">Step1:</span></em></u></strong> </div><div align="justify"> Add web service reference in your project After you have added your web reference (which creates the proxy class with references to the web service for you automatically using VS .NET), you need to set your solution view to 'Show All':This shows the Reference.cs file for the Reference.map. This is the proxy class file that VS.NET generates automatically for you when you add a web reference. </div><div align="justify"><br /><strong><u><em><span style="color:#000099;">Step2: </span></em></u></strong></div><div align="justify"> If you look at the web reference properties you can see that there is a configuration setting called 'URL Behavior'. This setting is by default set to Static. we need to change this setting to Dynamic.Doing this in VS.NET does two things for you. It changes the Reference.cs file to have the code to look for the WSDL URL in the project's web.config file Now you can set the URL to different servers for deployment in different environments, without having to change the code. You just change the URL in your config file for your project.</div><div align="justify"><br /><strong><u><em><span style="color:#000099;">Sample:</span></em></u></strong></div><br /><a href="http://photos1.blogger.com/blogger/7089/2981/1600/WebConfig.0.gif"><img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/7089/2981/320/WebConfig.0.gif" border="0" /></a><br /><a href="http://photos1.blogger.com/blogger/7089/2981/1600/WebConfig.gif"></a><br /><div align="justify"><strong><em><u><span style="font-family:Verdana;color:#000099;"></span></u></em></strong></div><div align="justify"><a href="http://photos1.blogger.com/blogger/7089/2981/1600/WebConfig.gif"></a><a href="http://photos1.blogger.com/blogger/7089/2981/1600/WebConfig.gif"></a></div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com1tag:blogger.com,1999:blog-28185030.post-1147976663562303802006-05-18T23:41:00.000+05:302006-05-18T23:56:25.743+05:30Adding multiple instance of a control in single click !!!<div align="justify"><span style="font-family:verdana;">I think you will be surprised to find there is a provision in VS.NET to add multiple instance of a control to the designer. For this just press the ctrl key while selecting the control, and press ctrl key again before drawing the control over the designer, now it is ready to draw as many controls as you want. If you are done with it then press ctrl key again... thats it....One of the undocumented feature in .NET :-)</span></div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1147802681695007792006-05-16T23:12:00.000+05:302006-05-17T01:10:38.850+05:30Creating Zip files programmatically through .NET !!!<div align="justify"><span style="font-family:verdana;">I came across with a requirement in my project to compress a folder or files programmatically using .NET. Though I know we can do it using third party components to do this, But one of my friend vadivel gave this URL from </span><a href="http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/"><span style="font-family:verdana;">MSDN Article</span></a><span style="font-family:verdana;">, which explains the way to do it without using any third party components. But for this we need J# redistributable package to be installed in your box.</span></div>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com0tag:blogger.com,1999:blog-28185030.post-1147757083920477602006-05-16T10:47:00.000+05:302006-05-16T10:54:43.920+05:30ORACLE Means<span style="font-family:verdana;font-size:130%;color:#000066;">O<em>ak</em> r<em>idge</em> A<em>rithmetic</em> a<em>nd</em> C<em>omputer</em> l<em>ogic</em> E<em>ngine</em> !!!</span>Premhttp://www.blogger.com/profile/05923918791396836585noreply@blogger.com1