http://www.balavanchi.shridesk.com/Bala Vanchi2018-05-09T11:52:28+00:00purpose of life is joyBala VanchiBlogEngine.Net Syndication Generatorhttp://www.balavanchi.shridesk.com/opml.axdhttp://www.balavanchi.shridesk.com/syndication.axdBala Vanchipurpose of life is joyen-GBBala Vanchi0.0000000.000000http://www.balavanchi.shridesk.com/post/Web-Spoor-a-web-analyticsWeb Spoor : a web analytics2018-01-09T12:51:00+00:00Admin<p>A web analytics track of a web site traffic and provide insight and statistics by single URL linked to any web application</p>2018-01-09T12:51:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=7e5fd034-f9f1-4932-82e1-3b8a64d1e3f80http://www.balavanchi.shridesk.com/trackback.axd?id=7e5fd034-f9f1-4932-82e1-3b8a64d1e3f8http://www.balavanchi.shridesk.com/post/Web-Spoor-a-web-analytics#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=7e5fd034-f9f1-4932-82e1-3b8a64d1e3f8http://www.balavanchi.shridesk.com/post/Wise-Watcher-a-desktop-analytical-toolWise Watcher : a desktop analytical tool2017-09-19T11:41:00+00:00Admin<p><span style="font-size: 16px;">A desktop analytics tool which gives insight on people, process and technology. It is being used to measure employee productivity, identify best performers ,fix bottlenecks and process issues in the workflow.</span></p>2017-09-19T11:41:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=b53f0fd6-6aeb-49d1-bbd4-c061e18111ec0http://www.balavanchi.shridesk.com/trackback.axd?id=b53f0fd6-6aeb-49d1-bbd4-c061e18111echttp://www.balavanchi.shridesk.com/post/Wise-Watcher-a-desktop-analytical-tool#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=b53f0fd6-6aeb-49d1-bbd4-c061e18111echttp://www.balavanchi.shridesk.com/post/How-to-Copy-a-file-from-local-machine-to-Hadoop-remote-server-using-puttyHow to : Copy a file from local machine to Hadoop remote server using putty?2016-03-15T04:41:00+00:00Admin<p style="text-align: justify; text-justify: inter-word;">Currently, Im working on Big data and Hadoop. I was trying to connect and test with Hadoop server using putty instead of VM. very basic challenge I faced was copying from local to remote Hadoop server using putty.<br /><br />But there is no direct option to upload from putty GUI user interface. hence I stuck in the middle of copying files to Hadoop server. then after a long find, I got one simple solution to upload files using putty command line which is working absolutely fine. Please follow the below simple steps</p>
<ol>
<li>Download Putty : Download putty from http://www.putty.org/ website for windows.</li>
<li>Install Putty in your windows OS</li>
<li>Go to run and type cmd to open command prompt.</li>
<li>Run the below command with parameters</li>
</ol>
<pre class="brush: ps; first-line: 1; tab-size: 4; toolbar: false; ">pscp [localpathfilename] [loginname]@[servernameIP]:[serverpath]</pre>
<p><br />you can check the copied file by login to the server using putty again. <br /><br /></p>2016-03-15T04:41:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=daebb72b-d9b8-4359-a4c1-2d7a7d6478990http://www.balavanchi.shridesk.com/trackback.axd?id=daebb72b-d9b8-4359-a4c1-2d7a7d647899http://www.balavanchi.shridesk.com/post/How-to-Copy-a-file-from-local-machine-to-Hadoop-remote-server-using-putty#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=daebb72b-d9b8-4359-a4c1-2d7a7d647899http://www.balavanchi.shridesk.com/post/How-to-remove-SVC-extension-from-WCF-service-URLHow to : remove .SVC extension from WCF service URL2015-06-15T00:15:00+00:00Admin<p>By default, WCF service URL runs with .svc extension. sometimes, I felt that .svc extension is not useful when we reference or share the service URL to application or public. There is a very simple way I found to remove this extension and run as very plain URL with out any major coding.</p>
<p>Normally, URL looks like below</p>
<p><a href="http://domainname/WCFServiceName.svc/MethodName?parameter">http://domainname/WCFServiceName.<strong><span style="text-decoration: underline;">svc</span></strong>/MethodName?parameter</a></p>
<p>We need to change the above URL to below one. Looks simple and neat right?</p>
<p><a href="http://domainname/WCFServiceName/MethodName?parameter">http://domainname/WCFServiceName/MethodName?parameter</a></p>
<p>Simple solution is to implement it at web.config level using URL re-writing which is very very simple. Other methods like writing custom URL Re writing module, configure at server level are little complex than compared to web.config changes.We have to apply changes under system.webserver as below</p>
<p>below <strong>WCFServiceName </strong>names alone we need to change according to your service name. try now with removing with .svc URL. <img class="wlEmoticon wlEmoticon-smile" style="border-style: none;" src="http://www.balavanchi.com/image.axd?picture=wlEmoticon-smile.png" alt="Smile" /></p>
<p>Share your feedback!!!</p>
<pre class="brush: xml; first-line: 1; tab-size: 4; toolbar: false; "><system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<rewrite>
<rules>
<rule name="WCFServiceName" stopProcessing="true">
<match url="^WCFServiceName/(.*)$"/>
<action type="Rewrite" url="WCFServiceName.svc/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer></pre>2015-06-15T00:15:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=b4946d81-0834-4774-9004-ab9d204947890http://www.balavanchi.shridesk.com/trackback.axd?id=b4946d81-0834-4774-9004-ab9d20494789http://www.balavanchi.shridesk.com/post/How-to-remove-SVC-extension-from-WCF-service-URL#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=b4946d81-0834-4774-9004-ab9d20494789http://www.balavanchi.shridesk.com/post/How-to-rename-the-existing-page-under-blogger-in-5-stepsHow to : rename the existing page under blogger in 5 steps?2015-05-11T05:21:00+00:00Admin<p align="justify">There is no option to rename a blogger page as like any file name in OS... <img title="Smile" src="http://www.balavanchi.com/editors/tiny_mce_3_5_8/plugins/emotions/img/smiley-smile.gif" alt="Smile" border="0" /> But then ..how?</p>
<p align="justify">There is a simple trick to do that..</p>
<p align="justify">By default, blogger takes the name of the page from first line of the content. So.. here, technically, we aren't renaming the file rather we are creating new page with file name by following the below steps.</p>
<blockquote>
<p align="justify">Step 1: Create a new page under blogger.</p>
<p align="justify">Step 2: Type a desired name on the first row that you want to name the page. ( Important step)</p>
<p align="justify">Step 3: Save and Publish</p>
<p align="justify">Step 4: Copy the content from old file and paste it in new page. if you want, you can delete the name that you have added in Step 2.</p>
<p align="justify">Step 5: Delete the old file.</p>
</blockquote>
<p align="justify">That's it. your new page is ready. I have done it for one of my blog.</p>
<p align="justify">Implement and share your feedback.</p>2015-05-11T05:21:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=0351bb11-da74-4e1d-90ec-f948b6ae23ca0http://www.balavanchi.shridesk.com/trackback.axd?id=0351bb11-da74-4e1d-90ec-f948b6ae23cahttp://www.balavanchi.shridesk.com/post/How-to-rename-the-existing-page-under-blogger-in-5-steps#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=0351bb11-da74-4e1d-90ec-f948b6ae23cahttp://www.balavanchi.shridesk.com/post/How-to-ClearDelete-History-in-BrowsersHow to : Clear/Delete History in Browsers?2015-02-18T12:39:00+00:00Admin<p>Very Simple steps to clear or delete history in browsers. sometimes, it may differ from OS to OS. but you can follow the below ground rules.</p>
<h3><strong>Firefox 3.7 & Above</strong> :</h3>
<p>Click on Menus : History>Show All History>Under Library Click on the period you want to delete. > Right click on item and choose delete.</p>
<h3><strong>Chrome Browser</strong> :</h3>
<p>Click on wrench icon>choose History item>Click on Edit item on right top>Clear all browsing data.</p>
<h3>Internet Explorer:</h3>
<p>Click on Internet Options from Menu>Click on delete under Browsing History Panel.</p>
<p>Happy Surfing and cleaning <img class="wlEmoticon wlEmoticon-smile" style="border-style: none;" src="http://www.balavanchi.com/image.axd?picture=wlEmoticon-smile_1.png" alt="Smile" /></p>2015-02-18T12:39:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=b6e30022-3856-4968-8f91-845906973d590http://www.balavanchi.shridesk.com/trackback.axd?id=b6e30022-3856-4968-8f91-845906973d59http://www.balavanchi.shridesk.com/post/How-to-ClearDelete-History-in-Browsers#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=b6e30022-3856-4968-8f91-845906973d59http://www.balavanchi.shridesk.com/post/How-to-edit-an-exisiting-blog-post-in-Widows-Live-Writer-thru-blogenginenetHow to : edit an exisiting blog post in Widows Live Writer thru blogengine.net?2014-08-24T21:52:00+00:00Admin<p>With the Windows Live Writer (WLW) you can create or open local draft version of a post. but Windows Live writer don't have a feature of editing the existing posted blogs. But I found one plugin which is very useful to edit the existing blog.</p>
<p>When I search for the edit an existing blog post in google, I came across with the below nice plugin.</p>
<p>Download the below plugin and install it on your machine.</p>
<p>http://aovestdipaperino.com/pages/wlw-post-download-plugin-instructions.aspx</p>
<p>Syntax to open an existing blog post is wlw://www.yourdomain.com/?postid=[postid]. Here http should be replaced with wlw.</p>
<p>when you hit above link with your domain information and post id, existing post will open in Windows Live Writer.</p>
<h2>Edit existing post thru BlogEngine blog</h2>
<p>Under the PostView.ascx user control, add below code where ever you would like to show the "Edit in WLW" link.</p>
<p> <img src="http://www.balavanchi.shridesk.com/image.axd?picture=%2f2014%2f09%2fEdit+in+WLW.jpg" alt="" /></p>
<pre class="brush: c-sharp; first-line: 1; tab-size: 4; toolbar: false; "><asp:LoginView runat="server" ID="LoginView1"><LoggedInTemplate>
<a href="<%=Utils.AbsoluteWebRoot.ToString().Replace("http","wlw") + "?postid=" + Post.Id%>" rel="bookmark">Edit in WLW</a>
</LoggedInTemplate></asp:LoginView></pre>
<p> </p>2014-08-24T21:52:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=dbcd7cc1-f002-4678-9f40-58aace2afc9f0http://www.balavanchi.shridesk.com/trackback.axd?id=dbcd7cc1-f002-4678-9f40-58aace2afc9fhttp://www.balavanchi.shridesk.com/post/How-to-edit-an-exisiting-blog-post-in-Widows-Live-Writer-thru-blogenginenet#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=dbcd7cc1-f002-4678-9f40-58aace2afc9fhttp://www.balavanchi.shridesk.com/post/Fix-AspNet-AJAX-Control-Toolkit-error-SysExtended-is-undefinedFix : Asp.Net AJAX Control Toolkit error - Sys.Extended is undefined2014-01-27T07:21:00+00:00Admin<p>When we use the AJAX Control Toolkit ModalPopupExtender, sometimes we may get below error</p>
<blockquote>
<p>Sys.Extended is undefined<br />$create(Sys.Extended.UI.ModalPopupBehavior, {"BackgroundCssClass":...</p>
</blockquote>
<p><br />After few hours of investigation, I realized that keyword I’m using it for scriptmanager.<br />If you are using .net 4.0 framework, then change it from</p>
<blockquote>
<p><asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager></p>
</blockquote>
<p><br />To</p>
<blockquote>
<p><asp:scriptmanager ID="ToolkitScriptManager1" runat="server"></asp:scriptmanager ></p>
</blockquote>
<p>And vice-versa for 3.5 and below version.<br /><br /><br /></p>2014-01-27T07:21:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=6ad9cafe-cd96-496c-b432-8baf00fdc2030http://www.balavanchi.shridesk.com/trackback.axd?id=6ad9cafe-cd96-496c-b432-8baf00fdc203http://www.balavanchi.shridesk.com/post/Fix-AspNet-AJAX-Control-Toolkit-error-SysExtended-is-undefined#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=6ad9cafe-cd96-496c-b432-8baf00fdc203http://www.balavanchi.shridesk.com/post/How-to-Add-app_code-custom-control-into-aspx-pageHow to : Add app_code custom control into aspx page2014-01-25T07:41:00+00:00Admin<p>Some time back, I was struggling to include the custom control to a page which I have created under the app_code folder to aspx page. Manually, I have done this with tags and so on. But I couldn't register it to the page. I felt I stuck here and there is no option to do that so. But I have noticed that many places of sample application, They referred the simple custom control in their pages. Below is that simple option to refer the custom controls to your asp.net pages.<br /><br />1. Go to the aspx page design mode.<br /><br />2. Register your control with the below template<br /><br /><%@ Register Assembly="__code" TagPrefix="[TagPrefix]" Namespace="Your.Namespace" %><br /><br />3. And use the control with the below syntax<br /><br /><[TagPrefix]: [TagPrefix] id=”” runat=server></<[TagPrefix]><br /><br />Now you can easily compile and referrer the custom control under app_code folder.</p>2014-01-25T07:41:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=1f819e42-278c-48a3-b81a-8a9d907b75030http://www.balavanchi.shridesk.com/trackback.axd?id=1f819e42-278c-48a3-b81a-8a9d907b7503http://www.balavanchi.shridesk.com/post/How-to-Add-app_code-custom-control-into-aspx-page#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=1f819e42-278c-48a3-b81a-8a9d907b7503http://www.balavanchi.shridesk.com/post/Tricks-Convert-HTML-Text-to-Image-in-ASPNETTricks : Convert HTML Text to Image in ASP.NET2013-10-04T08:22:00+00:00Admin<p>Normally, We can easily convert text into image thru .net system.drawing namespace and their methods. but converting the HTML to Image in asp.net is bit a tricky one.</p>
<p><br />Why it is so tricky? Good question. right?</p>
<p><br />Trickiness is lying in-terms of output. The outcome of the image exactly should matches whatever you see that in your browser. I.e. WYSIWYG.</p>
<p><br />Generally, In HTML content, we may apply the web-fonts styles to the texts, applying colors, and some more styles we should take care while convert HTML text into image. Hence, I have used the web browser control which is part of .net windows forms. By default, asp.net website will not reference the system.windows.forms namespace, we need to refer that manually.</p>
<p><br />Create a browser object and disable the scrollbars and script errors. Set the document text of the browser object to your HTML string. Done!</p>
<p><br />At the run-time, We have to wait till it gets rendered to the browser. for that we are using application do events methods. Then we need to take screenshot of that browser programmatically and save as image. That's it. Isn't simple now.</p>
<p><br />Below is the sample C# Image generator from HTML text</p>
<pre class="brush: c-sharp; first-line: 1; tab-size: 4; ">using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace Digiflake
{
public class ImageGenerator
{
public static void RenderHTML(string html, string outputPath, Rectangle crop)
{
WebBrowser wb = new WebBrowser();
wb.ScrollBarsEnabled = false;
wb.ScriptErrorsSuppressed = true;
wb.DocumentText = html;
wb.Refresh();
while (wb.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
wb.Width = wb.Document.Body.ScrollRectangle.Width;
wb.Height = wb.Document.Body.ScrollRectangle.Height;
using (Bitmap bitmap = new Bitmap(wb.Width, wb.Height))
{
wb.DrawToBitmap(bitmap, new Rectangle(0, 0, wb.Width, wb.Height));
wb.Dispose();
Rectangle rect = new Rectangle(crop.Left, crop.Top, wb.Width - crop.Width - crop.Left, wb.Height - crop.Height - crop.Top);
Bitmap cropped = bitmap.Clone(rect, bitmap.PixelFormat);
cropped.Save(outputPath, ImageFormat.Png);
}
}
}
}</pre>2013-10-04T08:22:00+00:00AdminNormally, We can easily convert text into image thru .net system.drawing namespace and their methods. but converting the HTML to Image in asp.net is bit a tricky one.
Why it is so tricky? Good question. right?
Trickiness is lying in-terms of output. The outcome of the image exactly should matches whatever you see that in your browser. I.e. WYSIWYG.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=9b50447a-4763-4aae-b747-984b6427eb1c0http://www.balavanchi.shridesk.com/trackback.axd?id=9b50447a-4763-4aae-b747-984b6427eb1chttp://www.balavanchi.shridesk.com/post/Tricks-Convert-HTML-Text-to-Image-in-ASPNET#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=9b50447a-4763-4aae-b747-984b6427eb1chttp://www.balavanchi.shridesk.com/post/How-to-get-content-data-type-inside-a-string-in-CHow to : get content data type inside a string in C#?2013-09-06T00:46:00+00:00Admin<p>By default, .NET have the features of identifying the data type inside a string. Everybody using this feature already in our day-to-day development activity. i.e. none other than TryParse. This TryParse method will help us in identifying the right type from the string.</p>
<p>With the TryParse keyword of each data type I have created a method to return the type of the passing parameter. You can add other type or custom object types to this method which I explained it <a href="http://www.balavanchi.com/post/2013/08/20/How-to-convert-a-string-content-to-native-data-type-in-C">here</a>.</p>
<p> </p>
<pre class="brush: c-sharp;">private string GetType(string types)
{
string returnType = "object";
decimal de;
int i;
double d;
long l;
bool b;
if (int.TryParse(types, out i))
{
returnType = "int";
}
else if (long.TryParse(types, out l))
{
returnType = "long";
}
else if (double.TryParse(types, out d))
{
returnType = "double";
}
else if (decimal.TryParse(types, out de))
{
returnType = "decimal";
}
if (bool.TryParse(types, out b))
{
returnType = "bool";
}
return returnType;
}</pre>2013-09-06T00:46:00+00:00AdminBy default, .NET have the features of identifying the data type inside a string. Everybody using this feature already in our day-to-day development activity. i.e. none other than TryParse. This TryParse method will help us in identifying the right type from the string.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=0dda9ff6-c23c-4f28-a4a4-481e7db17a8e0http://www.balavanchi.shridesk.com/trackback.axd?id=0dda9ff6-c23c-4f28-a4a4-481e7db17a8ehttp://www.balavanchi.shridesk.com/post/How-to-get-content-data-type-inside-a-string-in-C#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=0dda9ff6-c23c-4f28-a4a4-481e7db17a8ehttp://www.balavanchi.shridesk.com/post/How-to-convert-a-string-content-to-native-data-type-in-CHow to : convert a string content to native data type in C#2013-08-21T00:54:00+00:00Admin<p>Most of the .NET data type having the TryParse method. This method will take input of the string and try to convert the value to the base type if it is successful, it ll return the converted value into out parameter and returns boolean value. This method will be helpful at the time of converting a string to a specific data type.</p>
<p> </p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/system.byte.tryparse.aspx" target="_blank">Byte.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.char.tryparse.aspx">Char.TryParse</a></li>
<li><a href="%20http://msdn.microsoft.com/en-us/library/system.datetime.tryparse.aspx">DateTime.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.decimal.tryparse.aspx">Decimal.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.double.tryparse.aspx">Double.TryParse </a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.guid.tryparse.aspx" target="_blank">Guid.TryParse </a></li>
<li>int.TryParse</li>
<li><a href="%20http://msdn.microsoft.com/en-us/library/system.int16.tryparse.aspx" target="_blank">Int16.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.int32.tryparse.aspx" target="_blank">Int32.TryParse </a></li>
<li><a href="%20http://msdn.microsoft.com/en-us/library/system.int64.tryparse.aspx" target="_blank">Int64.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.int64.tryparse.aspx" target="_blank">long.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.sbyte.tryparse.aspx" target="_blank">sbyte.TryParse</a></li>
<li><a href="%20http://msdn.microsoft.com/en-us/library/system.single.tryparse.aspx" target="_blank">Single.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.uint16.tryparse.aspx" target="_blank">UInt16.TryParse</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.uint32.tryparse.aspx" target="_blank">UInt32.TryParse</a></li>
<li>UInt64.TryParse </li>
</ul>2013-08-21T00:54:00+00:00AdminMost of the .NET data type having the TryParse method. This method will take input of the string and try to convert the value to the base type if it is successful, it ll return the converted value into out parameter and returns boolean value. This method will be helpful at the time of converting a string to a specific data type.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=6c829216-9fd5-404a-9475-3eb0717326ae0http://www.balavanchi.shridesk.com/trackback.axd?id=6c829216-9fd5-404a-9475-3eb0717326aehttp://www.balavanchi.shridesk.com/post/How-to-convert-a-string-content-to-native-data-type-in-C#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=6c829216-9fd5-404a-9475-3eb0717326aehttp://www.balavanchi.shridesk.com/post/Tips-Sending-emails-with-custom-name-instead-of-sender-email-in-aspnetTips : Sending emails with custom name instead of sender email in asp.net2013-08-18T23:49:00+00:00Admin<p style="text-align: justify;">While sending mails using system.net from asp.net, mail inbox always shows as username@domainname.com. This may not looks good and also not user-friendly to the users.</p>
<p style="text-align: left;">One of the ways generally recommends is to pass it as parameter in MailAddress constructor class like MailAddress(email address,<strong>display name</strong>)</p>
<blockquote>
<p style="text-align: left;">MailAddress mailAddress = new MailAddress("admin@balavanchi.com", "Bala Vanchi");</p>
</blockquote>
<p style="text-align: left;">but it may not work other than outlook or Eudora.</p>
<p style="text-align: left;">To show the user-friendly names in the inbox, use the below pattern to display the custom user-friendly names.</p>
<blockquote>
<p style="text-align: left;">MailAddress mailAddress = new MailAddress("admin@balavanchi.com", "\"Bala Vanchi\" <admin@balavanchi.com>");</p>
</blockquote>
<p style="text-align: center;">or</p>
<blockquote>mail.From = "\"Bala Vanchi\" <admin@balavanchi.com>"</blockquote>
<p style="text-align: left;"><strong>Sample C# code snippet below </strong></p>
<pre class="csharp" title="Click to copy to clipboard">MailMessage mail = new MailMessage();
mail.To = "yourname@yourdomain.com";
mail.From = "\"Bala Vanchi\" <admin@balavanchi.com>";
mail.Subject = "User-Friendly Name test";
mail.Body = "Now name appears in the FROM section should be an user-friendly one";
SmtpMail.SmtpServer = "smtp.domain.com";
SmtpMail.Send( mail );</pre>2013-08-18T23:49:00+00:00AdminWhile sending mails using system.net from asp.net, mail inbox always shows as username@domainname.com. This may not looks good and also not user-friendly to the users.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=4113e158-963a-4959-8877-b4f79ca7ad6e0http://www.balavanchi.shridesk.com/trackback.axd?id=4113e158-963a-4959-8877-b4f79ca7ad6ehttp://www.balavanchi.shridesk.com/post/Tips-Sending-emails-with-custom-name-instead-of-sender-email-in-aspnet#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=4113e158-963a-4959-8877-b4f79ca7ad6ehttp://www.balavanchi.shridesk.com/post/Financial-Freedom-Best-learning-point-from-corporate-lifeFinancial Freedom : Best learning point from corporate life2013-08-11T13:40:00+00:00Admin<p>Best learning point from corporate life:<br /> <br /> In the past few years,<br /> <br /> 1. I learnt to operate 3 critical machines</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Scanner</li>
<li><span style="mso-spacerun: yes;"> </span>Printer</li>
<li><span style="mso-spacerun: yes;"> </span>Xerox Machine</li>
</ul>
<p><br /> 2. I learnt to use 3 High End Software:</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Microsoft Word</li>
<li><span style="mso-spacerun: yes;"> </span>Microsoft Excel</li>
<li><span style="mso-spacerun: yes;"> </span>Microsoft PowerPoint</li>
</ul>
<p><br /> 3. I learnt to use 3 great short cuts:-</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Ctrl+C</li>
<li><span style="mso-spacerun: yes;"> </span>Ctrl+V</li>
<li><span style="mso-spacerun: yes;"> </span>Ctrl+S</li>
</ul>
<p><br /> 4. I learnt to say three very imp words for<br /> professional life:-</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Yes sir</li>
<li><span style="mso-spacerun: yes;"> </span>Ok sir.</li>
<li><span style="mso-spacerun: yes;"> </span>I'll Just Do That sir</li>
</ul>
<p><br /> 5. When I really wanted to quit, I learnt to: -</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Wake Up early</li>
<li><span style="mso-spacerun: yes;"> </span>Sleep late</li>
<li><span style="mso-spacerun: yes;"> </span>Continue to Work</li>
</ul>
<p><br /> 6. I learnt to: -</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Face Monday</li>
<li><span style="mso-spacerun: yes;"> </span>Fight For 6 Days</li>
<li><span style="mso-spacerun: yes;"> </span>Wait For Saturday</li>
</ul>
<p>7. I learnt to give reasons to family, friends and relatives for not making</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Phone Calls</li>
<li><span style="mso-spacerun: yes;"> </span>Messages</li>
<li><span style="mso-spacerun: yes;"> </span>Mails</li>
</ul>
<p>8. I learnt to celebrate these things far away from loved ones</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>Birthday</li>
<li><span style="mso-spacerun: yes;"> </span>New Year</li>
<li><span style="mso-spacerun: yes;"> </span>Festivals</li>
</ul>
<p><br /> 9. In last one year, People say</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>You Learnt...</li>
<li><span style="mso-spacerun: yes;"> </span>You Earned...</li>
<li><span style="mso-spacerun: yes;"> </span>You Enjoyed...</li>
</ul>
<p><br /> 10. But when I compare me with my self</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>I just Sustained...</li>
<li><span style="mso-spacerun: yes;"> </span>I just Tolerated...</li>
<li><span style="mso-spacerun: yes;"> </span>I just Survived... for bucks</li>
</ul>
<p><br /> 11. I have survived</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>For convenience of my Family...</li>
<li><span style="mso-spacerun: yes;"> </span>To avoid blame of Society...</li>
<li><span style="mso-spacerun: yes;"> </span>To get tag of Employment...</li>
</ul>
<p><br /> 12. When I already knew that I have got the wrong train.</p>
<ul>
<li><span style="mso-spacerun: yes;"> </span>I learnt to Rejoice...</li>
<li><span style="mso-spacerun: yes;"> </span>To be Happy...</li>
<li><span style="mso-spacerun: yes;"> </span>To Smile..</li>
</ul>
<blockquote>
<p>I learnt that corporate life and dreams can never meet.<br /> Because when they meet, both will lose their meaning.<br /> But still i'll be working.... Dreaming.....<br /> And back to work again.</p>
</blockquote>
<p class="MsoNormal"><span style="color: #888888;"> Source : Unknown</span></p>2013-08-11T13:40:00+00:00AdminI learnt that corporate life and dreams can never meet.
Because when they meet, both will lose their meaning.
But still i'll be working.... Dreaming.....
And back to work again.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=e45f802f-e740-4678-98a9-3fa0aa40fa6b0http://www.balavanchi.shridesk.com/trackback.axd?id=e45f802f-e740-4678-98a9-3fa0aa40fa6bhttp://www.balavanchi.shridesk.com/post/Financial-Freedom-Best-learning-point-from-corporate-life#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=e45f802f-e740-4678-98a9-3fa0aa40fa6bhttp://www.balavanchi.shridesk.com/post/Freebies-eBook-from-Microsoft-PressFreebies : eBooks from Microsoft Press2013-08-09T08:22:00+00:00Admin<p><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--></p>
<p><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--></p>
<p class="MsoNormal">Recently, there are free eBooks available for public from Microsoft Press. This is especially for people who love Windows Server, Windows Store, Windows OS, Programming and Windows Mobile.</p>
<p> You can click each link and download. These are available in the form of PDF, Mobi and ePub.</p>
<p> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2009/10/20/free-ebook-introducing-windows-server-2008-r2.aspx"><img style="background-image: none; display: inline;" title="cover for Introducing Windows Server 2008 R2" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/3808.clip_5F00_image004_5F00_56D06838.jpg" alt="cover for Introducing Windows Server 2008 R2" width="134" height="162" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2013/08/01/free-ebook-introducing-windows-server-2012-r2-preview-release.aspx"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Cover of Introducing Windows Server 2012 R2 Preview Release" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/6560.9780735682931x_5F00_5BA4F573.jpg" alt="Cover of Introducing Windows Server 2012 R2 Preview Release" width="131" height="159" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2009/10/16/free-e-book-deploying-windows-7-essential-guidance.aspx"><img style="background-image: none; display: inline;" title="cover for Deploying Windows 7" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/1016.clip_5F00_image010_5F00_78D8C3FE.png" alt="cover for Deploying Windows 7" width="131" height="162" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/11/13/free-ebook-introducing-windows-8-an-overview-for-it-professionals-final-edition.aspx"><img style="background-image: none; display: inline;" title="book cover Introducing Windows 8 Overview for IT Pros" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/0020.image_5F00_24D2D506.png" alt="book cover Introducing Windows 8 Overview for IT Pros" width="129" height="159" border="0" /></a> </p>
<p><a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/04/14/free-ebook-introducing-microsoft-sql-server-2008-r2.aspx"><img style="background-image: none; display: inline;" title="cover for Introducing Microsoft SQL Server 2008 R2" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/6644.clip_5F00_image003_5F00_5B46E8FF.jpg" alt="cover for Introducing Microsoft SQL Server 2008 R2" width="134" height="162" border="0" /></a><a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/09/05/free-ebook-introducing-windows-server-2012-rtm-edition.aspx"> <img style="background-image: none; display: inline;" title="cover for Introducing Windows Server 2012 RTM Edition" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/1680.9780735675353x_5F00_66DF8318.jpg" alt="cover for Introducing Windows Server 2012 RTM Edition" width="132" height="160" border="0" /></a> <a title="Introducing Microsoft SQL Server 2012" href="http://blogs.msdn.com/b/microsoft_press/archive/2012/03/15/free-ebook-introducing-microsoft-sql-server-2012.aspx"><img style="background-image: none; display: inline;" title="cover for Introducing Microsoft SQL Server 2012" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/0361.clip_5F00_image002_5F00_70A49E67.jpg" alt="cover for Introducing Microsoft SQL Server 2012" width="133" height="162" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2011/08/17/free-ebook-microsoft-office-365-connect-and-collaborate-virtually-anywhere-anytime.aspx"><img style="background-image: none; display: inline;" title="cover for Office 365" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/3580.clip_5F00_image007_5F00_55F8024E.jpg" alt="cover for Office 365" width="134" height="162" border="0" /></a> </p>
<p><a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/01/20/free-ebook-first-look-microsoft-office-2010.aspx"><img style="background-image: none; display: inline;" title="Cover for First Look Microsoft Office 2010" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/0434.clip_5F00_image008_5F00_00D06661.jpg" alt="Cover for First Look Microsoft Office 2010" width="134" height="162" border="0" /></a> <img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="Book Cover Rethinking Enterprise Storage" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/5808.Book_2D00_Cover_2D00_Rethinking_2D00_Enterprise_2D00_Storage_5F00_62C431EB.png" alt="Book Cover Rethinking Enterprise Storage" width="131" height="160" border="0" /> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/02/16/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx"><img style="background-image: none; display: inline;" title="cover for Understanding Microsoft Virtualization Solutions, 2nd Ed" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/8272.clip_5F00_image005_5F00_6F600588.jpg" alt="cover for Understanding Microsoft Virtualization Solutions, 2nd Ed" width="134" height="162" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/02/29/free-ebook-security-and-privacy-for-microsoft-office-users.aspx"><img style="background-image: none; display: inline;" title="cover for Security and Privacy for Microsoft Office 2010 Users" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/1325.clip_5F00_image009_5F00_753AA921.jpg" alt="cover for Security and Privacy for Microsoft Office 2010 Users" width="134" height="162" border="0" /></a></p>
<p><a href="http://blogs.msdn.com/b/microsoft_press/archive/2013/06/26/first-preview-programming-windows-store-apps-with-html-css-and-javascript-second-edition.aspx"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="Porgramming Windows Store Apps with HTML CSS and Javascript Second Edition" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/4466.Porgramming_2D00_Windows_2D00_Store_2D00_Apps_2D00_with_2D00_HTML_2D00_CSS_2D00_and_2D00_Javascript_2D00_Second_2D00_Edition_5F00_023FB53E.jpg" alt="Porgramming Windows Store Apps with HTML CSS and Javascript Second Edition" width="131" height="158" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/10/29/free-ebook-programming-windows-8-apps-with-html-css-and-javascript.aspx"><img style="background-image: none; display: inline;" title="cover for Programming Windows 8 Apps with HTML, CSS, and JavaScript" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/8546.9780735672611x_5F00_26A9699E.jpg" alt="cover for Programming Windows 8 Apps with HTML, CSS, and JavaScript" width="133" height="161" border="0" /></a><a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/09/13/free-ebook-moving-to-microsoft-visual-studio-2010.aspx"> <img style="background-image: none; display: inline;" title="cover for Moving to Visual Studio 2010" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/7380.clip_5F00_image011_5F00_4D27FA02.jpg" alt="cover for Moving to Visual Studio 2010" width="134" height="162" border="0" /></a> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx"><img title="cover for Programming Windows Phone 7" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-17-44-metablogapi/0842.9780735643352f_5F00_25418208.jpg" alt="cover for Programming Windows Phone 7" width="133" height="161" border="0" /></a></p>
<p>Link here : http://blogs.msdn.com/b/microsoft_press/archive/2012/05/04/free-ebooks-great-content-from-microsoft-press-that-won-t-cost-you-a-penny.aspx</p>2013-08-09T08:22:00+00:00AdminRecently, there are free eBooks available for public from Microsoft Press. This is especially for people who love Windows Server, Windows Store, Windows OS, Programming and Windows Mobile.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=6e22e32c-133a-4798-9afd-045f7ac60abe0http://www.balavanchi.shridesk.com/trackback.axd?id=6e22e32c-133a-4798-9afd-045f7ac60abehttp://www.balavanchi.shridesk.com/post/Freebies-eBook-from-Microsoft-Press#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=6e22e32c-133a-4798-9afd-045f7ac60abehttp://www.balavanchi.shridesk.com/post/How-to-Use-conditional-WHERE-clause-using-CASE-statement-in-MS-SQL-QueryHow to : Use conditional WHERE clause using CASE statement in MS SQL Query2013-08-07T04:20:00+00:00Admin<p>Adding case statement in where clause sometime we may not get the exact output we required. some solution suggested to add or condition instead of using case statement which again not giving desired results. but one solution I have found using case statement in where clause in reverse way.<br /><br />Suppose we have a table to keep students result with follow structure</p>
<pre class="brush: sql;">CREATE TABLE #Result
(
StudentId INT,
TeacherId INT,
GroupId INT,
Result VARCHAR(10),
MarksObtained INT
)
GO
INSERT INTO #Result
SELECT 101,1,1,'PASS',510 UNION ALL
SELECT 102,1,1,'PASS',622 UNION ALL
SELECT 103,2,1,'FAIL',174 UNION ALL
SELECT 104,2,2,'PASS',652 UNION ALL
SELECT 105,3,2,'FAIL',134</pre>
<p><br /><br />Our requirement is to create a stored procedure with only two parameters, one for id (it could be student, teacher or group id), we will call it @id and other to hold information that will decide that what type of id is being passed to stored procedure i.e. student, teacher or group, we will call it @idType<br /><br /></p>
<pre class="brush: sql;">DECLARE @Id INT -- It could be StudentId,TeacherId,GroupId
DECLARE @IdType VARCHAR(10) -- Type could be Student,Teacher or Group
We need a query which can be used for all three criteria
SELECT @Id = 2, @IdType= 'Teacher'
--OR-- @Id = 102, @IdType= 'Student'
--OR-- @Id = 1, @IdType= 'Group'
Let’s move to our targeted query, with conditional where clause.
SELECT * FROM #Result
WHERE 1 =(CASE
WHEN @IdType='Student' AND StudentId = @Id
THEN 1
WHEN @IdType='Teacher' AND TeacherId = @Id
THEN 1
WHEN @IdType='Group' AND GroupId = @Id
THEN 1
ELSE 0 END)</pre>2013-08-07T04:20:00+00:00AdminAdding case statement in where clause sometime we may not get the exact output we required. some solution suggested to add or condition instead of using case statement which again not giving desired results. but one solution I have found using case statement in where clause in reverse way.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=ab5ef5e3-9f3a-4156-8ece-1b4080d537490http://www.balavanchi.shridesk.com/trackback.axd?id=ab5ef5e3-9f3a-4156-8ece-1b4080d53749http://www.balavanchi.shridesk.com/post/How-to-Use-conditional-WHERE-clause-using-CASE-statement-in-MS-SQL-Query#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=ab5ef5e3-9f3a-4156-8ece-1b4080d53749http://www.balavanchi.shridesk.com/post/How-to-fix-SQL-timeout-error-from-ASPNET-(Parameter-Sniffing)How to : fix SQL timeout error from ASP.NET (Parameter Sniffing)?2013-02-04T06:27:00+00:00Admin<p>Yes!!! Error is because of 'Parameter Sniffing'.</p>
<p>Recently, I have faced an issue while developing an application using MS SQL 2008 and ASP.NET. I have created a SP which is running fine in from SQL Server Management Studio. But, When I execute it thru the asp.net application, it is timing out. i tried debugging and doing R&D. but in vein. later on i found the reason in the web saying parameter sniffing. Parameter sniffing? Oh yes. this is new to me. what is this by the way?</p>
<p>According to the web about, Parameter sniffing is</p>
<blockquote>
<p>Parameter sniffing" refers to a process whereby SQL Server's execution environment "sniffs" the current parameter values during compilation or recompilation, and passes it along to the query optimizer so that they can be used to generate potentially faster query execution plans. The word "current" refers to the parameter values present in the statement call that caused a compilation or a recompilation</p>
</blockquote>
<p>To explain this programmatically,</p>
<pre class="brush: sql;">CREATE PROCEDURE dbo.GetAssessmentByResource
@ResourceName VARCHAR(100)
As
SELECT * FROM Resource WHERE Name LIKE @ResourceName--assuming that 100000+ records</pre>
<p>Here, though the output is very few records, because of the full-text scan. this search would be horrible even if it is a compiled one.</p>
<p>I found below simple solution thru web to move away from Parameter Sniffing. this can be solved by temp or dummy variables. instead of access the parameter variables inside the SP. you can get a copy of variable that is used inside the SP especially in where clauses. Example</p>
<pre class="brush: sql;">CREATE PROCEDURE dbo.GetAssessmentByResource
@ResourceName VARCHAR(100)
As
DECLARE @ResourceNameTemp VARCHAR(100)<br />SET @ResourceNameTemp = @ResourceName
SELECT * FROM Resource WHERE Name LIKE @ResourceNameTemp--assuming that 100000+ records</pre>
<p>Here, @ResourceNameTemp is temp variable, Hence SP execute faster than before.</p>2013-02-04T06:27:00+00:00AdminRecently, I have faced an issue while developing an application using MS SQL 2008 and ASP.NET. I have created a SP which is running fine in from SQL Server Management Studio. But, When I execute it thru the asp.net application, it is timing out. i tried debugging and doing R&D. but in vein. later on i found the reason in the web saying parameter sniffing. Parameter sniffing? Oh yes. this is new to me. what is this by the way?http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=54b5a444-4bde-4607-95b3-1ead4df81e9d0http://www.balavanchi.shridesk.com/trackback.axd?id=54b5a444-4bde-4607-95b3-1ead4df81e9dhttp://www.balavanchi.shridesk.com/post/How-to-fix-SQL-timeout-error-from-ASPNET-(Parameter-Sniffing)#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=54b5a444-4bde-4607-95b3-1ead4df81e9dhttp://www.balavanchi.shridesk.com/post/How-to-bold-an-item-in-a-dropdown-using-CSS-in-HTMLHow to : bold an item in a dropdown using CSS in HTML?2013-01-23T01:55:00+00:00Admin<p>I was trying to find a solution to bold an item in drop-down. I tried using markup from the code itself. but nothing working. finally, after come across with the some webpages, i found this solution. but this will work only with the Firefox not IE :(</p>
<pre class="brush: js;"><html>
<head title="Dropdown">
<style type="text/css">
.special
{
font-weight: bold;
}
</style>
</head>
<body>
<select name="Product" id="select4">
<option value="-1">-Select-</option>
<option value="0">Option 1</option>
<option value="1">Option 2</option>
<option value="2">Option 3</option>
<option value="3" class="special">Option 4</option>
<option value="4">Option 5</option>
</select>
</body>
</html></pre>2013-01-23T01:55:00+00:00AdminI was trying to find a solution to bold an item in drop-down. I tried using <b> markup from the code itself. but nothing working. finally, after come across with the some webpages, i found this solution. but this will work only with the Firefox not IE :(http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=8b064210-a3fd-4f51-84a1-ead25d33e1450http://www.balavanchi.shridesk.com/trackback.axd?id=8b064210-a3fd-4f51-84a1-ead25d33e145http://www.balavanchi.shridesk.com/post/How-to-bold-an-item-in-a-dropdown-using-CSS-in-HTML#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=8b064210-a3fd-4f51-84a1-ead25d33e145http://www.balavanchi.shridesk.com/post/Tips-Not-Just-search-and-email-What-else-we-have-in-GoogleTips : Not Just search and email. What else we have in Google?2013-01-18T03:14:00+00:00Admin<h2>List of Google services</h2>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.balavanchi.shridesk.com/image.axd?picture=%2f2013%2f02%2fgoogle_services.png" alt="" width="200" height="200" /></p>
<h2> Google Places</h2>
<ul>
<li>Rate and share places on Google <a href="http://places.google.com/rate" target="_blank">places.google.com/rate</a></li>
<li>Get your business found on Google <a href="http://google.com/local/add" target="_blank">google.com/local/add</a></li>
<li>Let customers look inside your business <a href="http://maps.google.com/help/maps/businessphotos" target="_blank">maps.google.com/help/maps/businessphotos</a></li>
<li>Advertise online, quickly and easily <a href="http://google.com/adwords/express" target="_blank">google.com/adwords/express</a></li>
<li>Google Place Blog <a href="http://places.blogspot.com" target="_blank">places.blogspot.com</a></li>
<li>Help <a href="http://support.google.com/hotpot" target="_blank">support.google.com/hotpot</a></li>
<li>More <a href="http://google.com/places" target="_blank">google.com/places</a></li>
</ul>
<h2>Google+</h2>
<ul>
<li>How to Google+ <a href="http://goo.gl/rcp7D" target="_blank">goo.gl/rcp7D</a></li>
<li>Google+ Video Tutorials <a href="http://goo.gl/DZ7vt" target="_blank">goo.gl/DZ7vt</a></li>
<li>Get more out of Google with Google+ <a href="http://goo.gl/MHn5Y" target="_blank">goo.gl/MHn5Y</a></li>
<li>Get discovered on Google+ <a href="http://goo.gl/ieRZe" target="_blank">goo.gl/ieRZe</a></li>
<li>Google+ SMS<a href="http://goo.gl/Ofynx" target="_blank"> goo.gl/Ofynx</a></li>
<li>Google+ Safety Centre <a href="http://goo.gl/J9KXx" target="_blank">goo.gl/J9KXx</a></li>
<li>Google+ Discuss <a href="http://goo.gl/4mt10" target="_blank">goo.gl/4mt10</a></li>
<li>Google+ Help <a href="http://support.google.com/plus" target="_blank">support.google.com/plus</a></li>
</ul>
<h2>Google+ Your Business</h2>
<ul>
<li>Starting Guide <a href="http://goo.gl/F2mUR" target="_blank">goo.gl/F2mUR</a></li>
<li>Website <a href="http://google.com/+/business/" target="_blank">google.com/+/business/</a></li>
<li>Help <a href="http://goo.gl/e0N6H%20" target="_blank">goo.gl/e0N6H </a></li>
<li>Forum <a href="http://goo.gl/jUvnd" target="_blank">goo.gl/jUvnd</a></li>
<li>Help Desk Hangouts <a href="http://goo.gl/ZZqSJ" target="_blank">goo.gl/ZZqSJ</a></li>
<li>Brand Guideline <a href="http://google.com/+/business/brand-guidelines.html" target="_blank">google.com/+/business/brand-guidelines.html</a></li>
<li>Google+ Business Stories <a href="http://goo.gl/rvVG" target="_blank">goo.gl/rvVG</a></li>
<li>Create a Google+ Page <a href="http://plus.google.com/pages/create" target="_blank">plus.google.com/pages/create</a></li>
</ul>
<h2>Google General</h2>
<ul>
<li>Google Discovery Center <a href="http://goo.gl/5Q3tN" target="_blank">goo.gl/5Q3tN</a></li>
<li>Get help with Google products <a href="http://goo.gl/JjXL5" target="_blank">goo.gl/JjXL5</a></li>
<li>Google Help Centers <a href="http://support.google.com" target="_blank">support.google.com</a></li>
<li>Ask help from other users <a href="http://goo.gl/9SvgG" target="_blank">goo.gl/9SvgG</a></li>
<li>Official Google Blog <a href="http://googleblog.blogspot.com" target="_blank">googleblog.blogspot.com</a></li>
<li>What is good to know <a href="http://goo.gl/R1mgI" target="_blank">goo.gl/R1mgI</a></li>
<li>One policy, one Google experience <a href="http://goo.gl/k7OMw" target="_blank">goo.gl/k7OMw</a></li>
<li>Search Plus Your World <a href="http://goo.gl/K0wNP" target="_blank">goo.gl/K0wNP</a></li>
<li>Go Google Campaign <a href="http://goo.gl/bVstO" target="_blank">goo.gl/bVstO</a></li>
<li>Get Google for Mobile and Tablet <a href="http://goo.gl/2TzJh" target="_blank">goo.gl/2TzJh</a></li>
<li>Google+ Pages directory <a href="http://google.com/press/google-directory.html" target="_blank">google.com/press/google-directory.html</a></li>
</ul>
<h2>Google Docs</h2>
<ul>
<li>Templates <a href="http://google.com/google-d-s/templates/index.html" target="_blank">google.com/google-d-s/templates/index.html</a></li>
<li>For work or school <a href="http://google.com/enterprise/apps/business" target="_blank">google.com/enterprise/apps/business</a></li>
<li>Mobile <a href="http://goo.gl/nPmXT" target="_blank">goo.gl/nPmXT</a></li>
<li>Google Drive <a href="http://goo.gl/PTzZj" target="_blank">goo.gl/PTzZj</a></li>
<li>What's new <a href="http://google.com/google-d-s/whatsnew.html" target="_blank">google.com/google-d-s/whatsnew.html</a></li>
<li>Blog <a href="http://googledocs.blogspot.com" target="_blank">googledocs.blogspot.com</a></li>
<li>Forum <a href="http://goo.gl/RRPJi" target="_blank">goo.gl/RRPJi</a></li>
<li>Help <a href="http://support.google.com/docs" target="_blank">support.google.com/docs</a></li>
<li>YouTube channel <a href="http://youtube.com/docs" target="_blank">youtube.com/docs</a></li>
<li>Website <a href="http://docs.google.com%20" target="_blank">docs.google.com </a></li>
</ul>
<h2>Google Customer Surveys</h2>
<ul>
<li>How it works <a href="http://google.com/insights/consumersurveys/how" target="_blank">google.com/insights/consumersurveys/how</a></li>
<li>Pricing <a href="http://google.com/insights/consumersurveys/pricing" target="_blank">google.com/insights/consumersurveys/pricing</a></li>
<li>Case Studies <a href="http://google.com/insights/consumersurveys/case_studies" target="_blank">google.com/insights/consumersurveys/case_studies</a></li>
<li>Help <a href="http://support.google.com/consumersurveys" target="_blank">support.google.com/consumersurveys</a></li>
<li>More <a href="http://google.com/insights/consumersurveys" target="_blank">google.com/insights/consumersurveys</a></li>
</ul>
<h2>Google Offers</h2>
<ul>
<li>How it works <a href="http://google.com/offers/business/how-it-works.html" target="_blank">google.com/offers/business/how-it-works.html</a></li>
<li>Help <a href="http://support.google.com/offersbusiness" target="_blank">support.google.com/offersbusiness</a></li>
<li>Business Dashboard <a href="http://google.com/offers/businessdashboard" target="_blank">google.com/offers/businessdashboard</a></li>
<li>Download Android <a href="http://app%20http://goo.gl/QxPPB" target="_blank">app http://goo.gl/QxPPB</a></li>
<li>More <a href="http://google.com/offers/business/" target="_blank">google.com/offers/business/</a></li>
<li>Website <a href="http://google.com/offers/home" target="_blank">google.com/offers/home</a></li>
</ul>
<h2>Google Adsense</h2>
<ul>
<li>Blog <a href="http://adsense.blogspot.com" target="_blank">adsense.blogspot.com</a></li>
<li>Help <a href="http://support.google.com/adsense" target="_blank">support.google.com/adsense</a></li>
<li>Forum / Group <a href="http://productforums.google.com/forum/#%21forum/adsense" target="_blank">productforums.google.com/forum/#!forum/adsense</a></li>
<li>AdSense Academy <a href="http://goo.gl/qhUcW" target="_blank">goo.gl/qhUcW</a></li>
<li>YouTube <a href="http://youtube.com/adsense" target="_blank">youtube.com/adsense</a></li>
<li>More <a href="http://google.com/intl/en/ads/publisher/" target="_blank">google.com/intl/en/ads/publisher/</a></li>
</ul>
<h2>Think with Google</h2>
<ul>
<li>Think Quarterly - Insights and outlooks on the digital future <a href="http://thinkwithgoogle.com/quarterly" target="_blank">thinkwithgoogle.com/quarterly</a></li>
<li>Think Voices <a href="http://thinkwithgoogle.com/voices" target="_blank">thinkwithgoogle.com/voices</a></li>
<li>Think Insights - Offers you consumer trends, marketing insights and industry research <a href="http://thinkwithgoogle.com/insights" target="_blank">thinkwithgoogle.com/insights</a></li>
<li>YouTube channel <a href="http://youtube.com/thinkvoices" target="_blank">youtube.com/thinkvoices</a></li>
<li>More <a href="http://thinkwithgoogle.com" target="_blank">thinkwithgoogle.com</a></li>
</ul>
<h2>Google Adwords</h2>
<ul>
<li>New Advertiser <a href="http://google.com/ads/new/" target="_blank">google.com/ads/new/</a></li>
<li>Experienced Advertiser <a href="http://google.com/ads/experienced/" target="_blank">google.com/ads/experienced/</a></li>
<li>Search Ads <a href="http://google.com/ads/searchads/" target="_blank">google.com/ads/searchads/</a></li>
<li>Video Ads <a href="http://google.com/ads/video/" target="_blank">google.com/ads/video/</a></li>
<li>Mobile Ads <a href="http://google.com/ads/mobile/" target="_blank">google.com/ads/mobile/</a></li>
<li>TV Ads <a href="http://google.com/ads/tv/" target="_blank">google.com/ads/tv/</a></li>
<li>Display Network <a href="http://google.com/ads/displaynetwork/" target="_blank">google.com/ads/displaynetwork/</a></li>
<li>Watch this space <a href="http://goo.gl/mDXkO%EF%BB%BF" target="_blank">goo.gl/mDXkO</a></li>
<li>Ad Innovations <a href="http://goo.gl/3OPPs" target="_blank">goo.gl/3OPPs</a></li>
<li>Learn with Google <a href="http://goo.gl/U1jm9" target="_blank">goo.gl/U1jm9</a></li>
<li>More Google Advertising Program <a href="http://google.com/ads/" target="_blank">google.com/ads/</a></li>
</ul>
<h2>Google Enterprise</h2>
<ul>
<li>Google Apps <a href="http://google.com/enterprise/apps/business/index.html" target="_blank">google.com/enterprise/apps/business/index.html</a></li>
<li>Google App Engine <a href="http://google.com/enterprise/cloud/appengine/" target="_blank">google.com/enterprise/cloud/appengine/</a></li>
<li>Chromebooks <a href="http://google.com/intl/en/chrome/devices/" target="_blank">google.com/intl/en/chrome/devices/</a></li>
<li>Earth & Maps <a href="http://google.com/enterprise/earthmaps/maps.html" target="_blank">google.com/enterprise/earthmaps/maps.html</a></li>
<li>Enterprise Search <a href="http://google.com/enterprise/search/" target="_blank">google.com/enterprise/search/</a></li>
<li>Blog <a href="http://googleenterprise.blogspot.com/" target="_blank">googleenterprise.blogspot.com/</a></li>
<li>Forum <a href="http://productforums.google.com/forum/#%21forum/business" target="_blank">productforums.google.com/forum/#!forum/business</a></li>
<li>YouTube <a href="http://youtube.com/user/GoogleBusiness" target="_blank">youtube.com/user/GoogleBusiness</a></li>
<li>Analytics <a href="http://goo.gl/29hjm" target="_blank">goo.gl/29hjm</a></li>
</ul>
<h2>Google Calendar</h2>
<ul>
<li>Share your schedule <a href="http://goo.gl/jhzkP" target="_blank">goo.gl/jhzkP</a></li>
<li>Get your calendar on the go <a href="http://goo.gl/d6E9j" target="_blank">goo.gl/d6E9j</a></li>
<li>Never forget another event again <a href="http://goo.gl/8DRhO" target="_blank">goo.gl/8DRhO</a></li>
<li>Send invitations and track RSVPs <a href="http://goo.gl/k9mgF" target="_blank">goo.gl/k9mgF</a></li>
<li>Sync with your desktop applications <a href="http://goo.gl/Ez7JI" target="_blank">goo.gl/Ez7JI</a></li>
<li>Work offline <a href="http://goo.gl/ZmS8o" target="_blank">goo.gl/ZmS8o</a></li>
<li>It's free <a href="http://goo.gl/6uOoG" target="_blank">goo.gl/6uOoG</a></li>
</ul>
<h2>Google Chrome</h2>
<ul>
<li>Take a Tour <a href="http://goo.gl/j1ZgF" target="_blank">goo.gl/j1ZgF</a></li>
<li>Google Chrome? <a href="http://google.com/chrome/intl/en/welcome.html" target="_blank">google.com/chrome/intl/en/welcome.html</a></li>
<li>Features <a href="http://tools.google.com/chrome/intl/en/more/index.html" target="_blank">tools.google.com/chrome/intl/en/more/index.html</a></li>
<li>Help <a href="http://support.google.com/chrome" target="_blank">support.google.com/chrome</a></li>
<li>Blog <a href="http://chrome.blogspot.com" target="_blank">chrome.blogspot.com</a></li>
<li>Forum <a href="http://productforums.google.com/forum/#%21forum/chrome" target="_blank">productforums.google.com/forum/#!forum/chrome</a></li>
<li>YouTube channel <a href="http://youtube.com/user/googlechrome" target="_blank">youtube.com/user/googlechrome</a></li>
<li>Chrome Web Store <a href="http://chrome.google.com/webstore" target="_blank">chrome.google.com/webstore</a></li>
<li>More <a href="http://google.com/chrome/intl/en/more/sign-in.html" target="_blank">google.com/chrome/intl/en/more/sign-in.html</a></li>
<li>Download here <a href="http://google.com/chrome" target="_blank">google.com/chrome</a></li>
<li>Chrome for Business <a href="http://google.com/intl/en/chrome/business/browser" target="_blank">google.com/intl/en/chrome/business/browser</a></li>
</ul>2013-01-18T03:14:00+00:00Adminwhen we say Google, we always remembered by search engine and email. but there are lots of services provided by Google which we may not aware of. I have put it down few Google services by themhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=362b787e-c463-4349-859c-784534e84f530http://www.balavanchi.shridesk.com/trackback.axd?id=362b787e-c463-4349-859c-784534e84f53http://www.balavanchi.shridesk.com/post/Tips-Not-Just-search-and-email-What-else-we-have-in-Google#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=362b787e-c463-4349-859c-784534e84f53http://www.balavanchi.shridesk.com/post/How-to-read-twitter-RSS-feed-for-my-accountHow to : read twitter RSS feed for my account?2013-01-18T02:54:00+00:00Admin<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.balavanchi.shridesk.com/image.axd?picture=%2f2013%2f01%2ftwitterrss.jpeg" alt="" /></p>
<p>Use this below URL and replace [USERNAME] with your Twitter username to use your Twitter RSS Feed:</p>
<pre class="brush: xml;">http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=[USERNAME] (Where [USERNAME] is your twitter username.)</pre>
<p><br />That’s it, it’s really that simple.<br />How to Find Your Twitter Favorites RSS Feed<br /><br />Your feed for only the favorites:<br /><br /></p>
<pre class="brush: xml;">http://twitter.com/favorites/[USERNAME].rss (Where [USERNAME] is your twitter username.)</pre>
<p>External web application to read your twitter feed http://www.twittertorss.com/</p>2013-01-18T02:54:00+00:00Adminvery simply mechanism to to read twitter RSS feed for my account. there is simple API provided by the twitter to read our account RSS feed.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=503e7c49-75be-4779-8337-3f5b51f205930http://www.balavanchi.shridesk.com/trackback.axd?id=503e7c49-75be-4779-8337-3f5b51f20593http://www.balavanchi.shridesk.com/post/How-to-read-twitter-RSS-feed-for-my-account#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=503e7c49-75be-4779-8337-3f5b51f20593http://www.balavanchi.shridesk.com/post/Modern-Java-design-patterns-with-eBookFreebies : Modern Java design patterns with eBook2013-01-10T05:41:00+00:00Admin<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://books.google.com/books?id=SrJRu8T69FcC&printsec=frontcover&img=1&zoom=1&edge=curl" alt="Java Design Pattern" /></p>
<h1>Creational Patterns</h1>
<p>-Abstract Factory-Builder<br /><br />-Factory Method<br /><br />-Prototype<br /><br />-Singleton</p>
<h1>Structural Patterns</h1>
<p>-Adapter<br /><br />-Bridge<br /><br />-Composite<br /><br />-Decorator<br /><br />-Façade<br /><br />-Flyweight<br /><br />-Proxy</p>
<h1>Behavioral Patterns</h1>
<p>-Chain of Responsibility<br /><br />-Command<br /><br />-Interpreter<br /><br />-Iterator<br /><br />-Mediator<br /><br />-Memento<br /><br />-Observer<br /><br />-State<br /><br />-Strategy<br /><br />-Template Method<br /><br />-Visitor</p>
<h1>J2EE Patterns</h1>
<p>-MVC<br /><br />-Business Delegate<br /><br />-Composite Entity<br /><br />-Data Access Object<br /><br />-Front Controller<br /><br />-Intercepting Filter<br /><br />-Service Locator<br /><br />-Transfer Object<br /><br /> and also download the attachment from below link on complete detail.</p>
<p><span style="font-size: small;"><a href="http://uploading.com/files/72c89573/java-design-patterns.pdf/">Click here to download ebook java-design-patterns.pdf - 150.3 KB</a></span></p>2013-01-10T05:41:00+00:00AdminModern Java design patterns with free eBook for downloadhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=62221fcc-6ce0-4d95-b924-3e036730cca50http://www.balavanchi.shridesk.com/trackback.axd?id=62221fcc-6ce0-4d95-b924-3e036730cca5http://www.balavanchi.shridesk.com/post/Modern-Java-design-patterns-with-eBook#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=62221fcc-6ce0-4d95-b924-3e036730cca5http://www.balavanchi.shridesk.com/post/How-to-delete-all-stored-procedures-views-functions-and-tables-from-MS-SQLHow to : delete all stored procedures, views, functions and tables from MS SQL?2012-12-10T07:05:00+00:00Admin<p><span style="font-size: medium;">I forcefully happen to write this post. At my work place, I don't have rights to create/drop the databases only DBAs have that privilege and process involved in that is also time consuming. Hence I have opportunity to create a SP to make it quicker and smarter. This SP has been created with the help of www. Basically, below Stored Procedure will deletes the all stored procedures (SP), views, functions, table constrains and finally tables from a database in a minute. you can alter this SP where in you can delete other objects under '-- you can add custom types here' section.</span></p>
<p><br /><span style="color: #ff0000;"><strong>PS: be careful while executing this SP. It will completely revamp the whole database without warning.</strong></span></p>
<p> </p>
<pre class="brush: sql;">CREATE PROCEDURE sp_EmptyDatabase AS
DECLARE @ObjectName VARCHAR(1000)
DECLARE @ObjectType VARCHAR(20)
DECLARE @SQLQuery NVARCHAR(4000)
DECLARE SPViews_CURSOR CURSOR FOR
SELECT QUOTENAME(ROUTINE_SCHEMA) + '.' + QUOTENAME(ROUTINE_NAME) AS name, ROUTINE_TYPE AS xtype FROM INFORMATION_SCHEMA.ROUTINES
UNION
SELECT QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME) AS name, 'VIEW' AS xtype FROM INFORMATION_SCHEMA.VIEWS
OPEN SPViews_CURSOR
FETCH NEXT FROM SPViews_CURSOR INTO @ObjectName, @ObjectType
WHILE @@fetch_status = 0
BEGIN
--Deleting all the procedures
IF @ObjectType = 'PROCEDURE'
BEGIN
SET @SQLQuery = 'DROP PROCEDURE ' + @ObjectName
IF(@ObjectName!=OBJECT_NAME(@@PROCID) OR @ObjectName!='sp_EmptyDatabase')
BEGIN
EXEC sp_EXECutesql @SQLQuery
END
SET @SQLQuery = ' '
END
--Deleting all the functions
IF @ObjectType = 'FUNCTION'
BEGIN
SET @SQLQuery = 'DROP FUNCTION ' + @ObjectName
EXEC sp_EXECutesql @SQLQuery
SET @SQLQuery = ' '
END
--Deleting all the views
IF @ObjectType = 'VIEW'
BEGIN
SET @SQLQuery = 'DROP VIEW ' + @ObjectName
EXEC sp_EXECutesql @SQLQuery
SET @SQLQuery = ' '
END
FETCH NEXT FROM SPViews_CURSOR INTO @ObjectName, @ObjectType
END
CLOSE SPViews_CURSOR
DEALLOCATE SPViews_CURSOR
--Deleting all the constrains
DECLARE @CURSOR CURSOR
SET @CURSOR = CURSOR FAST_FORWARD FOR
SELECT DISTINCT sql = 'ALTER TABLE [' + tc.TABLE_NAME + '] DROP [' + rc.CONSTRAINT_NAME + ']' FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc
LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc ON tc.CONSTRAINT_NAME =rc.CONSTRAINT_NAME
OPEN @CURSOR FETCH NEXT FROM @CURSOR INTO @SQLQuery
WHILE (@@FETCH_STATUS = 0)
BEGIN
EXEC SP_EXECUTESQL @SQLQuery
FETCH NEXT FROM @CURSOR INTO @SQLQuery
END
CLOSE @CURSOR DEALLOCATE @CURSOR
GO
--Deleting all the tables
EXEC sp_MSFOREachTable 'DROP TABLE ?'
GO</pre>
<p><span style="font-size: xx-small; color: #888888;">References : http://blogs.msdn.com/b/patrickgallucci/archive/2008/04/29/how-to-drop-all-tables-all-views-and-all-stored-procedures-from-a-sql-2005-db.aspx</span></p>2012-12-10T07:05:00+00:00AdminThis SP delete all the SPs, Views, Functions and Tables from your database in a minute.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=0d8aa664-5525-4642-96f9-6313a103897f0http://www.balavanchi.shridesk.com/trackback.axd?id=0d8aa664-5525-4642-96f9-6313a103897fhttp://www.balavanchi.shridesk.com/post/How-to-delete-all-stored-procedures-views-functions-and-tables-from-MS-SQL#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=0d8aa664-5525-4642-96f9-6313a103897fhttp://www.balavanchi.shridesk.com/post/How-to-find-a-specific-text-inside-a-stored-procedures-functions-and-viewsHow to : find a specific text inside a stored procedures, functions and views2012-10-05T05:33:00+00:00Admin<p>Finding a text inside a DB objects is a very difficult tasks. Example, if you want to find a specific text, we have open that all manually and find it. But below SQL statement will help us to find specified text inside the SPs, Functions and Views.</p>
<pre class="brush: sql;">SELECT DISTINCT NAME AS [NAME],
CASE WHEN TYPE ='P' THEN 'PROCEDURE'
WHEN TYPE IN('FN', 'IF','TF') THEN 'FUNCTION'
END AS OBJECTTYPE
FROM SYSCOMMENTS as comm
JOIN sysobjects as obj
ON comm.id = obj.id and obj.type IN ('P','FN', 'IF', 'TF')
WHERE lower(TEXT) LIKE '%' + ltrim(rtrim(lower('texttosearch'))) + '%'</pre>2012-10-05T05:33:00+00:00AdminFinding a specific text across the entire database is very difficult. you can use the smart SQL statement which will bring you the procedures list in-front of you.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=f8208bd2-6316-46fb-a723-22dd287497a40http://www.balavanchi.shridesk.com/trackback.axd?id=f8208bd2-6316-46fb-a723-22dd287497a4http://www.balavanchi.shridesk.com/post/How-to-find-a-specific-text-inside-a-stored-procedures-functions-and-views#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=f8208bd2-6316-46fb-a723-22dd287497a4http://www.balavanchi.shridesk.com/post/How-to-Create-strongly-typed-generic-session-helper-in-CHow to : Create strongly typed generic session helper in C#?2012-05-04T08:33:00+00:00Admin<p>Writing session code in ASP.NET is easy. but to organize and maintain is very difficult. To overcome that in one of our project, we have decided to created a generic Session Handler. This will replace the session keyword across the project. instead, this static session helper allow us to create session across the different pages by way of single static helper class. Here is the generic class for you.</p>
<pre class="brush: c-sharp;"><br />using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.UI;
using System.Collections.Generic;
namespace StateHelper
{
public enum State
{
Application,
Session,
Cache,
ViewState
}
# region Static Methods
/// <summary>
/// Generic session helper - to store,retrieve and remove the session objects to the HTTP cache.
/// </summary>
public static class GenericSessionHelper<T>
{
static StateBag ViewState = new StateBag();
/// <summary>
/// returns generic session object from HTTP cache by the session key
/// </summary>
/// <param name="sessionKey">Session Key name</param>
/// <returns>Generic Object</returns>
public static T Get(string sessionKey, State state)
{
//object keyValue =HttpContext.Current.Session[sessionKey];
//if (keyValue != null)
// return (T)keyValue;
//else
// return default(T);
object keyValue=null;
switch (state)
{
case State.Application:
if (HttpContext.Current.Application[sessionKey]!= null)
keyValue=(T)HttpContext.Current.Application[sessionKey];
break;
case State.Session:
if (HttpContext.Current.Session[sessionKey] !=null)
keyValue= (T)HttpContext.Current.Session[sessionKey]; break;
case State.Cache:
if (HttpContext.Current.Cache[sessionKey] !=null)
keyValue=(T)HttpContext.Current.Cache[sessionKey];
break;
case State.ViewState:
if (ViewState[sessionKey] != null)
keyValue= (T)ViewState[sessionKey];
break;
}
if (keyValue != null)
return (T)keyValue;
else
return default(T);
}
/// <summary>
/// set the session object to HTTP cache with given session key
/// </summary>
/// <param name="sessionKey">Session Key name</param>
/// <param name="sessionValue">Session Key Value</param>
public static void Set<T>(string sessionKey, T sessionValue, State state)
{
switch (state)
{
case State.Application:
HttpContext.Current.Application.Add(sessionKey, sessionValue);
break;
case State.Session:
HttpContext.Current.Session.Add(sessionKey, sessionValue);
break;
case State.Cache:
HttpContext.Current.Cache.Insert(sessionKey, sessionValue);
break;
case State.ViewState: ViewState.Add(sessionKey, sessionValue);
break;
}
}
/// <summary>
/// remove the session object from the HTTP cache based on session key
/// </summary>
/// <param name="sessionKey">Key Name</param>
public static void Remove(string sessionKey, State state)
{
///HttpContext.Current.Session.Remove(sessionKey);
switch (state)
{
case State.Application:
HttpContext.Current.Application.Remove(sessionKey);
break;
case State.Session:
HttpContext.Current.Session.Remove(sessionKey);
break;
case State.Cache:
HttpContext.Current.Cache.Remove(sessionKey);
break;
case State.ViewState: ViewState.Remove(sessionKey);
break;
}
}
}
#endregion
}</pre>2012-05-04T08:33:00+00:00AdminWriting session code in ASP.NET is easy. but to organize and maintain is very difficult. To overcome that in one of our project, we have decided to created a generic Session Handler. This will replace the session keyword across the project. instead, this static session helper allow us to create session across the different pages by way of single static helper class. Here is the generic class for you.http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=e75bfbe5-e879-4dbf-87a9-14c539b7b6100http://www.balavanchi.shridesk.com/trackback.axd?id=e75bfbe5-e879-4dbf-87a9-14c539b7b610http://www.balavanchi.shridesk.com/post/How-to-Create-strongly-typed-generic-session-helper-in-C#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=e75bfbe5-e879-4dbf-87a9-14c539b7b610http://www.balavanchi.shridesk.com/post/WPF-ThemesWPF Themes2012-04-28T03:18:00+00:00Admin[No text]2012-04-28T03:18:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=fa433fb6-7eb4-45cc-8772-5f2a1d0e1a760http://www.balavanchi.shridesk.com/trackback.axd?id=fa433fb6-7eb4-45cc-8772-5f2a1d0e1a76http://www.balavanchi.shridesk.com/post/WPF-Themes#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=fa433fb6-7eb4-45cc-8772-5f2a1d0e1a76http://www.balavanchi.shridesk.com/post/WCF-RESTWCF REST2012-04-02T06:46:00+00:00Admin<p>REST (40 years old HTTP style)<br />- Unique Identifier.<br />- Uniform interfaces.<br />- Resource<br />- Representation<br />- Stateless</p>2012-04-02T06:46:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=25307351-e914-47bd-8280-ab6ed650e8ed0http://www.balavanchi.shridesk.com/trackback.axd?id=25307351-e914-47bd-8280-ab6ed650e8edhttp://www.balavanchi.shridesk.com/post/WCF-REST#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=25307351-e914-47bd-8280-ab6ed650e8edhttp://www.balavanchi.shridesk.com/post/Classifications-of-Design-PatternsClassifications of Design Patterns2012-03-31T20:28:00+00:00Admin<p>There are three basic classifications of patterns Creational, Structural, and Behavioral patterns.</p>
<p><br /><strong>Creational Patterns</strong></p>
<p><strong>Abstract Factory:-</strong> Creates an instance of several families of classes <br /><strong>Builder: -</strong> Separates object construction from its representation <br /><strong>Factory Method:-</strong> Creates an instance of several derived classes <br /><strong>Prototype:-</strong> A fully initialized instance to be copied or cloned <br /><strong>Singleton:-</strong> A class in which only a single instance can exist <br /><br /><strong>Structural Patterns</strong><br /><br /><strong>Adapter:-</strong> Match interfaces of different classes. <br /><strong>Bridge:-</strong> Separates an object’s abstraction from its implementation. <br /><strong>Composite:-</strong> A tree structure of simple and composite objects. <br /><strong>Decorator:-</strong> Add responsibilities to objects dynamically. <br /><strong>Façade:-</strong> A single class that represents an entire subsystem.<br /><strong>Flyweight:-</strong> A fine-grained instance used for efficient sharing. <br /><strong>Proxy:-</strong> An object representing another object.<br /><br /><strong>Behavioral Patterns</strong> <br /><br /><strong>Mediator:-</strong> Defines simplified communication between classes.<br /><strong>Memento:-</strong> Capture and restore an object's internal state. <br /><strong>Interpreter:-</strong> A way to include language elements in a program.<br /><strong>Iterator:-</strong> Sequentially access the elements of a collection. <br /><strong>Chain of Resp:-</strong> A way of passing a request between a chain of objects.<br /><strong>Command:-</strong> Encapsulate a command request as an object. <br /><strong>State:-</strong> Alter an object's behavior when its state changes. <br /><strong>Strategy:-</strong> Encapsulates an algorithm inside a class. <br /><strong>Observer:-</strong> A way of notifying change to a number of classes. <br /><strong>Template Method:-</strong> Defer the exact steps of an algorithm to a subclass. <br /><strong>Visitor:-</strong> Defines a new operation to a class without change.</p>2012-03-31T20:28:00+00:00AdminDesign patterns are recurring solutions to software design problems you find again and again in real-world application development. Patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges. http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=05667036-fc17-4360-837e-260cced80f1c0http://www.balavanchi.shridesk.com/trackback.axd?id=05667036-fc17-4360-837e-260cced80f1chttp://www.balavanchi.shridesk.com/post/Classifications-of-Design-Patterns#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=05667036-fc17-4360-837e-260cced80f1chttp://www.balavanchi.shridesk.com/post/NET-Frameworks-Comparsion.NET Frameworks Comparsion2012-03-29T04:47:00+00:00Admin<p>[No text]</p>2012-03-29T04:47:00+00:00Adminhttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=00aa7766-a2e1-48bc-a4a6-a0e867ce7e600http://www.balavanchi.shridesk.com/trackback.axd?id=00aa7766-a2e1-48bc-a4a6-a0e867ce7e60http://www.balavanchi.shridesk.com/post/NET-Frameworks-Comparsion#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=00aa7766-a2e1-48bc-a4a6-a0e867ce7e60http://www.balavanchi.shridesk.com/post/Infinite-Scroll-in-JavascriptHow to : create Infinite scroll in Javascript for Google Reader2011-10-30T05:54:00+00:00Admin<p>This article talks about infinite scroll in JavaScript. this JS reads the data from Google reader in a infinite mode to load the content on demand. this ll improve performance of the page load.<br /><br /></p>
<pre class="brush: js;"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
if ($('#cnt').val() == '') {
KattuValithalam('');
}
function BuildPage(contiz) {
var milliseconds = new Date().getTime();
var contiz = $('#cnt').val();
var data = '{"qurl":"' + getQuerystring("q", "") + '","contiz":"' + contiz + '"}';
$.ajax({
type: "POST",
url: "SeithiValiThokkupu.asmx/GetNews",
data: data,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
if (msg.d.length > 0) {
var model = JSON.parse(msg.d);
BuildTable(model, $('#cnt').val());
$('#cnt').val(model.continuation);
}
},
error: function (msg) {
//alert('failed:' + msg.status + ':' + msg.responseText);
$('#Papermain').html('failed:' + msg.status + ':' + msg.responseText);
}
});
}
function BuildTable(msg, code) {
var table = '';
if (code == '') {
//$("#header").append('<div class="feedlytitlebar"><h1>' + msg.title + '</h1>');
$("#Paperheader").append(msg.title + "<br>");
}
for (var post in msg.items) {
var row = '<div class="entrybody">';
row += '<div class="title unread"><a class="titlex read" target="_blanl" href="' + msg.items[post].alternate[0].href + '">' + msg.items[post].title + '</a></div>';
row += '<div class="pagesectiondelimiter">' + msg.items[post].publishedDate + '</div>';
if (msg.items[post].summary != null) {
row += '<div class="summary">' + msg.items[post].summary.content + '</div>';
}
else if (msg.items[post].content != null) {
row += '<div class="summary">' + msg.items[post].content.content + '</div>';
}
row += '</div><br>';
$("#Papermain").append(row);
}
//$('#Container').html(table);
}
function ApplyTemplate(msg) {
// This method loads the HTML template and
// prepares the container div to accept data.
$('#Container').setTemplateURL('RSS.htm', { filter_data: false });
// This method applies the JSON array to the
// container's template and renders it.
$('#Container').processTemplate(msg);
}
function BindNewData() {
var lastProductId = $("#GridView1 tr:last").children("td:first").html();
//get last table row in order to append the new products
var lastRow = $("#GridView1 tr:last");
//Fetch records only when the no. of records displayed in the grid are less than limit.
if (GetRowsCount() < maxRecordsToDisplay) {
if (parseInt(lastProductId, 10) > parseInt(previousProductId, 10)) {
previousProductId = lastProductId;
$.post("FetchRecordsHandler.ashx?lastProductId=" + lastProductId, function (data) {
if (data != null) {
//append new products rows to last row in the gridview.
lastRow.after(data);
}
});
}
}
else {
//Set value of last product id in hidden field so that we can access it from code behind.
$("#hiddenLastProductID").val(lastProductId);
//Check If there is more records in the database
if (parseInt(lastProductId, 10) > parseInt(previousProductId, 10))
$("#btnGetMoreRecords").show();
}
}
function getQuerystring(key, default_) {
if (default_ == null) default_ = "";
key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + key + "=([^]*)");
var qs = regex.exec(window.location.href);
if (qs == null)
return default_;
else
return qs[1];
}
</script>
</head>
<body>
</body>
</html></pre>2011-10-30T05:54:00+00:00Adminthis article talks about infinite scroll in JavaScript. this JS reads the data from Google reader in a infinite mode to load the content on demand. this ll improve performance of the page load.
http://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=047f7b97-5429-420a-84f1-72d32eb96fa40http://www.balavanchi.shridesk.com/trackback.axd?id=047f7b97-5429-420a-84f1-72d32eb96fa4http://www.balavanchi.shridesk.com/post/Infinite-Scroll-in-Javascript#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=047f7b97-5429-420a-84f1-72d32eb96fa4http://www.balavanchi.shridesk.com/post/Welcome-to-my-first-blogWelcome to my first blog2011-10-25T23:10:00+00:00Admin<p>This is my first personal blog site and I'm trying to give as much as valuable information and inputs to you all on Programming and Web Design, Tools and Technology. Please provide inputs to fine tune this blog make it better for you all. - balavanchi</p>2011-10-25T23:10:00+00:00AdminThis is my first personal blog site and I'm trying to give as much as valuable information and inputs to you all on Programming and Web Design, Tools and Technology. Please provide inputs to fine tune this blog make it better for you all. - balavanchihttp://www.balavanchi.shridesk.com/pingback.axdhttp://www.balavanchi.shridesk.com/post.aspx?id=eccb3763-44e8-4802-8f45-e71165aea0620http://www.balavanchi.shridesk.com/trackback.axd?id=eccb3763-44e8-4802-8f45-e71165aea062http://www.balavanchi.shridesk.com/post/Welcome-to-my-first-blog#disqus_threadhttp://www.balavanchi.shridesk.com/syndication.axd?post=eccb3763-44e8-4802-8f45-e71165aea062