<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6752665155230102691</id><updated>2013-05-04T23:25:10.198-07:00</updated><category term='Crystal Reports'/><category term='JQuery'/><category term='Code'/><category term='Repeater'/><category term='Script'/><category term='Other'/><category term='DataControl'/><category term='Javascript'/><category term='Database'/><category term='Images'/><category term='Asp.Net'/><category term='SQL Server'/><category term='Shortcuts'/><category term='Error'/><category term='Wizard'/><category term='VS Studio'/><category term='Google'/><category term='Blogging'/><title type='text'>DotNet Stuff</title><subtitle type='html'>Everything related to DotNet</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default?start-index=26&amp;max-results=25'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-5369115612735590239</id><published>2012-09-18T20:11:00.000-07:00</published><updated>2012-09-18T20:11:31.190-07:00</updated><title type='text'>We have moved</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Hello Friends,&lt;br /&gt;&lt;br /&gt;We have permanently moved to our new portal at &lt;a href="http://www.publisharticle.in/"&gt;Publish Article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now and onwards we will update our new portal &lt;a href="http://www.publisharticle.in/"&gt;http://www.publisharticle.in&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/5369115612735590239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/09/hello-friends-we-have-permanently-moved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5369115612735590239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5369115612735590239'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/09/hello-friends-we-have-permanently-moved.html' title='We have moved'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2423998525976769133</id><published>2012-02-24T23:31:00.000-08:00</published><updated>2012-02-24T23:59:49.412-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Enum Examples or How to Bind the DropDownList With Enum?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Enum is the type provided by dotnet, it stores constant value in it. When we want to specify some constant value to use in the project then it is very usefull for readability.&lt;br /&gt;&lt;br /&gt;In this post I will show you how to declare an enum and how to use it in the program.&lt;br /&gt;Here I have bind the enum to the dropdown list&lt;br /&gt;&lt;br /&gt;Declare the enum as below&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharp" name="code"&gt;public enum Days { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In aspx page I have added DropDownList named ddlDays as below&lt;br /&gt;&lt;br /&gt;&lt;pre class="html" name="code"&gt;&amp;nbsp;&amp;lt;asp:DropDownList ID="ddlDays" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now below is the code to bind dropdownlist control with above enum&lt;br /&gt;&lt;pre class="csharp" name="code"&gt;// Add first item to the drop down list to select lable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlDays.Items.Add("--Select Days--");&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] enumNames = Enum.GetNames(typeof(Days));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (string item in enumNames)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int value = (int)Enum.Parse(typeof(Days), item);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListItem listItem = new ListItem(item, value.ToString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add one by one item to the drop down list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlDays.Items.Add(listItem);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Hno87Kk4x9g/T0iOErykNuI/AAAAAAAAARs/jpjkPzhmOeA/s1600/enumpreview.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-Hno87Kk4x9g/T0iOErykNuI/AAAAAAAAARs/jpjkPzhmOeA/s1600/enumpreview.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Out put is displayed in the side image.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2423998525976769133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/enum-examples-or-how-to-bind.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2423998525976769133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2423998525976769133'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/enum-examples-or-how-to-bind.html' title='Enum Examples or How to Bind the DropDownList With Enum?'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Hno87Kk4x9g/T0iOErykNuI/AAAAAAAAARs/jpjkPzhmOeA/s72-c/enumpreview.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-5336553753514071031</id><published>2012-02-14T06:28:00.000-08:00</published><updated>2012-02-14T06:28:44.187-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogging'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Supported languages by SyntaxHighlighter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Syntax highlighter is a tool which will highlight the code in correct Syntax. When on your blog or web site you want to show some programming code then it is very useful.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-IG3XGNtPriw/TznRm4b-WuI/AAAAAAAAAQ0/KPJNnVeCEII/s1600/syntax+highlighter.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-IG3XGNtPriw/TznRm4b-WuI/AAAAAAAAAQ0/KPJNnVeCEII/s1600/syntax+highlighter.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;In my next post I will show you how to add Syntax Highlighter in blogger or any webpage.&lt;br /&gt;&lt;br /&gt;Below is the list of all the supported languages with their aliases.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table cellpadding="1" cellspacing="1" style="border: solid 1px #000000;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Language  &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Aliases&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;C++   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;cpp, c, c++&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;C#    &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;c#, c-sharp, csharp&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;CSS   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;css&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Delphi   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;delphi, pascal&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Java   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;java&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Java Script &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;js, jscript, javascript&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;PHP   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;php&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Python   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;py, python&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Ruby   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;rb, ruby, rails, ror&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;Sql   &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;sql&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;VB    &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;vb, vb.net&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;XML/HTML  &lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 5px;"&gt;xml, html, xhtml, xslt&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;For more detail visit: http://code.google.com/p/syntaxhighlighter/wiki/Languages&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/5336553753514071031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/supported-languages-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5336553753514071031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5336553753514071031'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/supported-languages-by.html' title='Supported languages by SyntaxHighlighter'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-IG3XGNtPriw/TznRm4b-WuI/AAAAAAAAAQ0/KPJNnVeCEII/s72-c/syntax+highlighter.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-8776348565261939276</id><published>2012-02-12T04:57:00.000-08:00</published><updated>2012-02-15T08:28:01.076-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>Change cursor to hand on mouseover using jQuery</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;When ever we need to change the mouse cursor using JQuery then we can do it very easily.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-F16QJBG4mB0/Tze16seRKPI/AAAAAAAAAQs/Ui2VpspCTnU/s1600/handcursor.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="148" src="http://4.bp.blogspot.com/-F16QJBG4mB0/Tze16seRKPI/AAAAAAAAAQs/Ui2VpspCTnU/s200/handcursor.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;In my today's post I will show you how can we change the mouse cursor to the Hand type cursor while user hover mouse on the particular element.&lt;br /&gt;It is very simple just look at the below JQuery code.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="js" name="code"&gt;$(document).ready(function() {&lt;br /&gt;&amp;nbsp; $("#elementid").hover(function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(this).css("cursor", "hand");&lt;br /&gt;&amp;nbsp; });&lt;br /&gt;});&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In above code 'elementid' is the name of the element on which you want a mouse pointer as a hand while hovering a mouse over it.&lt;br /&gt;&lt;br /&gt;Happy Coding...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/8776348565261939276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/change-cursor-to-hand-on-mouseover.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8776348565261939276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8776348565261939276'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/02/change-cursor-to-hand-on-mouseover.html' title='Change cursor to hand on mouseover using jQuery'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-F16QJBG4mB0/Tze16seRKPI/AAAAAAAAAQs/Ui2VpspCTnU/s72-c/handcursor.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-6166683000473875218</id><published>2012-01-07T21:53:00.000-08:00</published><updated>2012-01-07T21:53:40.143-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL SERVER – 2005/2008 – User Defined Function to Strip HTML String Without Regular Expression</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://1.bp.blogspot.com/-PLFj-SzQHLg/TwkupRApA3I/AAAAAAAAAQM/QTGmn6-cf18/s1600/stripHTML.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;Suppose sometimes we are saving HTML string into the database(SQL Server). &lt;br /&gt;Now when we want to display some limited characters on the web page like first 200 char, &lt;br /&gt;return string will not be proper HTML as it will leave some open HTML tag into it and hense it will not render HTML properely on the web page and also disturb our page html.&lt;br /&gt;So to avoide this problem we can strip html from the sql server. I have written an SQL UDF for that as below.&lt;br /&gt;&lt;br /&gt;Following UDF takes input as HTML and returns TEXT only. &lt;br /&gt;If there is any single quotes in HTML then it must be replaced with two single quotes while passing to the function as a input.&lt;br /&gt;&lt;br /&gt;Create Function [dbo].[StripHTML]&lt;br /&gt;(@HTMLString VarChar(Max))&lt;br /&gt;Returns Varchar(Max)&lt;br /&gt;As&lt;br /&gt;Begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Declare @StartChar Int&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Declare @EndChar Int&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Declare @Length Int&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set @StartChar = CharIndex('&amp;lt;',@HTMLString)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set @EndChar = CharIndex('&amp;gt;',@HTMLString,CharIndex('&amp;lt;',@HTMLString))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set @Length = (@EndChar - @StartChar) + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While @StartChar &amp;gt; 0 AND @EndChar &amp;gt; 0 AND @Length &amp;gt; 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Set @HTMLString = Stuff(@HTMLString,@StartChar,@Length,'')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Set @StartChar = CharIndex('&amp;lt;',@HTMLString)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Set @EndChar = CharIndex('&amp;gt;',v,CharIndex('&amp;lt;',@HTMLString))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Set @Length = (@EndChar - @StartChar) + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return LTrim(RTrim(@HTMLString))&lt;br /&gt;End&lt;br /&gt;Go&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;Declare @HTMLString As VarChar(Max) = '&amp;lt;table class="tempwrapper"&amp;gt; '+&lt;br /&gt;&amp;nbsp;'&amp;lt;tr&amp;gt;&amp;lt;td colspan="3"&amp;gt;.NET that will convert a string so that it can be eg I would like to convert the string &amp;amp;quot;a &amp;amp;lt; b&amp;amp;quot; '+&lt;br /&gt;&amp;nbsp;'to &amp;amp;quot;a &amp;amp;#3C; b&amp;amp;quot;.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;/table&amp;gt;'&lt;br /&gt;&amp;nbsp;Select SUBSTRING(@HTMLString,0,100)&lt;br /&gt;&amp;nbsp;Select SUBSTRING([dbo].[StripHTML](@HTMLString),0,100)&lt;br /&gt;-&amp;gt; &amp;lt;table class="tempwrapper"&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;td colspan="3"&amp;gt;.NET that will convert a string so that it can be e&lt;br /&gt;-&amp;gt; .NET that will convert a string so that it can be eg I would like to convert the string &amp;amp;quot;a &amp;amp;lt&lt;br /&gt;&lt;br /&gt;Here I have attached a screen shot of the UDF at action.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-PLFj-SzQHLg/TwkupRApA3I/AAAAAAAAAQM/QTGmn6-cf18/s1600/stripHTML.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://1.bp.blogspot.com/-PLFj-SzQHLg/TwkupRApA3I/AAAAAAAAAQM/QTGmn6-cf18/s400/stripHTML.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Programming :-) &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/6166683000473875218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/01/sql-server-20052008-user-defined.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6166683000473875218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6166683000473875218'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2012/01/sql-server-20052008-user-defined.html' title='SQL SERVER – 2005/2008 – User Defined Function to Strip HTML String Without Regular Expression'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-PLFj-SzQHLg/TwkupRApA3I/AAAAAAAAAQM/QTGmn6-cf18/s72-c/stripHTML.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-8979486656588478263</id><published>2011-12-17T07:08:00.000-08:00</published><updated>2011-12-17T07:08:16.013-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script'/><category scheme='http://www.blogger.com/atom/ns#' term='Database'/><category scheme='http://www.blogger.com/atom/ns#' term='Wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Script All the Stored Procedures, Views, Triggers and Functions from The Database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;In my&lt;a href="http://myvsdotnetstuff.blogspot.com/2011/11/sql-server-2008-generate-script-of.html"&gt; previous post&lt;/a&gt; I have show you how to generate database script using Wizard. In this article I will show you how to generate script for database object&amp;nbsp;programmatically&amp;nbsp;or using query&lt;br /&gt;&lt;br /&gt;In SQL Server 2005/2008 Management studio you can script all the database object using ‘SQL Server Script Wizards’. But sometime we do not have the permission to generate a script using wizard then we are help less. But don’t worry now we have a solution for that as well. I will show you how to script all database objects programmatically.&lt;br /&gt;&lt;br /&gt;To script All the Stored Procedures from the Database:&lt;br /&gt;&lt;br /&gt;DECLARE @ScriptText As VARCHAR(MAX) = ''&lt;br /&gt;DECLARE @AllScriptText As VARCHAR(MAX) = ''&lt;br /&gt;&lt;br /&gt;DECLARE script_sp CURSOR FOR &lt;br /&gt;SELECT SM.Definition&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FROM SYS.SQL_Modules As SM &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;INNER JOIN SYS.Objects As Obj&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ON SM.Object_ID = Obj.Object_ID &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WHERE Obj.Type = 'P'&lt;br /&gt;OPEN script_sp &lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM script_sp INTO @ScriptText &lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0 &lt;br /&gt;BEGIN &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --Set @AllScriptText = &amp;nbsp;@AllScriptText + 'go' +@ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print @ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FETCH NEXT FROM script_sp INTO @ScriptText&lt;br /&gt;END &lt;br /&gt;--Select @AllScriptText;&lt;br /&gt;CLOSE script_sp &lt;br /&gt;DEALLOCATE script_sp&lt;br /&gt;&lt;br /&gt;But Remember if you have created all the procedure with encryption then you will get the null value.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Now suppose you want all the views as a script then use below query,&lt;br /&gt;&lt;br /&gt;DECLARE @ScriptText As VARCHAR(MAX) = ''&lt;br /&gt;DECLARE @AllScriptText As VARCHAR(MAX) = ''&lt;br /&gt;&lt;br /&gt;DECLARE script_sp CURSOR FOR &lt;br /&gt;SELECT SM.Definition&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FROM SYS.SQL_Modules As SM &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;INNER JOIN SYS.Objects As Obj&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ON SM.Object_ID = Obj.Object_ID &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WHERE Obj.Type = 'V'&lt;br /&gt;OPEN script_sp &lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM script_sp INTO @ScriptText &lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0 &lt;br /&gt;BEGIN &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --Set @AllScriptText = &amp;nbsp;@AllScriptText + 'go' +@ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print @ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FETCH NEXT FROM script_sp INTO @ScriptText&lt;br /&gt;END &lt;br /&gt;--Select @AllScriptText;&lt;br /&gt;CLOSE script_sp &lt;br /&gt;DEALLOCATE script_sp&lt;br /&gt;&lt;br /&gt;Now suppose you want all the functions as a script then use below query,&lt;br /&gt;&lt;br /&gt;DECLARE @ScriptText As VARCHAR(MAX) = ''&lt;br /&gt;DECLARE @AllScriptText As VARCHAR(MAX) = ''&lt;br /&gt;&lt;br /&gt;DECLARE script_sp CURSOR FOR &lt;br /&gt;SELECT SM.Definition&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FROM SYS.SQL_Modules As SM &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;INNER JOIN SYS.Objects As Obj&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ON SM.Object_ID = Obj.Object_ID &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WHERE Obj.Type = 'FN'&lt;br /&gt;OPEN script_sp &lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM script_sp INTO @ScriptText &lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0 &lt;br /&gt;BEGIN &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --Set @AllScriptText = &amp;nbsp;@AllScriptText + 'go' +@ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print @ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FETCH NEXT FROM script_sp INTO @ScriptText&lt;br /&gt;END &lt;br /&gt;--Select @AllScriptText;&lt;br /&gt;CLOSE script_sp &lt;br /&gt;DEALLOCATE script_sp&lt;br /&gt;&lt;br /&gt;If you need to generate a script for all the triggers from the database then we have to make little bit changes in query. We will join sys.triggers table in place of sys.objects as below.&lt;br /&gt;&lt;br /&gt;DECLARE @ScriptText As VARCHAR(MAX) = ''&lt;br /&gt;DECLARE @AllScriptText As VARCHAR(MAX) = ''&lt;br /&gt;&lt;br /&gt;DECLARE script_sp CURSOR FOR &lt;br /&gt;SELECT SM.Definition&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FROM SYS.SQL_Modules As SM &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;INNER JOIN SYS.triggers As Obj&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ON SM.Object_ID = Obj.Object_ID&lt;br /&gt;OPEN script_sp &lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM script_sp INTO @ScriptText &lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0 &lt;br /&gt;BEGIN &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --Set @AllScriptText = &amp;nbsp;@AllScriptText + 'go' +@ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print @ScriptText;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FETCH NEXT FROM script_sp INTO @ScriptText&lt;br /&gt;END &lt;br /&gt;--Select @AllScriptText;&lt;br /&gt;CLOSE script_sp &lt;br /&gt;DEALLOCATE script_sp&lt;br /&gt;&lt;br /&gt;Happy Scripting…….&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/8979486656588478263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/12/script-all-stored-procedures-views.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8979486656588478263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8979486656588478263'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/12/script-all-stored-procedures-views.html' title='Script All the Stored Procedures, Views, Triggers and Functions from The Database'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-1418256197256690519</id><published>2011-11-26T03:45:00.000-08:00</published><updated>2011-12-17T07:11:22.194-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script'/><category scheme='http://www.blogger.com/atom/ns#' term='Database'/><category scheme='http://www.blogger.com/atom/ns#' term='Wizard'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL Server – 2008 – Generate Script of Database, Generate script to copy whole database schemas and All other object in database, like Tables with data, SPs, Views, Triggers, Functions, Database constraints etc.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Check &lt;a href="http://myvsdotnetstuff.blogspot.com/2011/12/script-all-stored-procedures-views.html"&gt;how to create a script using T-SQL&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;While we are working on any project and uses SQL Server as a database, we often need to copy database schema either with data or without data to create database on other server. So it inspires me to write down the blog post about ‘&lt;b&gt;&lt;i&gt;how to generate SQL script using SQL Server Management Studio&lt;/i&gt;&lt;/b&gt;’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Here I will explain step by step process with screen shot that how we can copy database schema with all the database objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;First of all open SQL Server Management Studio and expand &lt;b&gt;databases&lt;/b&gt; node like below images &lt;b&gt;step 1&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"&gt; &lt;v:stroke joinstyle="miter"&gt; &lt;v:formulas&gt;  &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;  &lt;v:f eqn="sum @0 1 0"&gt;  &lt;v:f eqn="sum 0 0 @1"&gt;  &lt;v:f eqn="prod @2 1 2"&gt;  &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;  &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;  &lt;v:f eqn="sum @0 0 1"&gt;  &lt;v:f eqn="prod @6 1 2"&gt;  &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;  &lt;v:f eqn="sum @8 21600 0"&gt;  &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;  &lt;v:f eqn="sum @10 21600 0"&gt; &lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:formulas&gt; &lt;v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"&gt; &lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:stroke&gt;&lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_1" o:spid="_x0000_i1034" style="height: 312pt; mso-wrap-style: square; visibility: visible; width: 450.75pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step1" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-J45ec7ZgHUo/TtDOhIlSKNI/AAAAAAAAAO4/2Vgogm4IPhA/s1600/Step1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="443" src="http://4.bp.blogspot.com/-J45ec7ZgHUo/TtDOhIlSKNI/AAAAAAAAAO4/2Vgogm4IPhA/s640/Step1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Now select the database for which you want to generate SQL Script as like below image &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Step 2&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;. Here I have selected &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;pubs&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;database for demo. Right click on selected database, click on &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Tasks&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; option and then click &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Generate Scripts...&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;&amp;nbsp; I have marked option with red circle in image.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_2" o:spid="_x0000_i1033" style="height: 312.75pt; mso-wrap-style: square; visibility: visible; width: 450.75pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step2" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-UyShNh9EoKo/TtDOmy8Xv8I/AAAAAAAAAPA/Zxr9dYTLrXw/s1600/Step2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="443" src="http://4.bp.blogspot.com/-UyShNh9EoKo/TtDOmy8Xv8I/AAAAAAAAAPA/Zxr9dYTLrXw/s640/Step2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Once you click on Generate Scripts option from above image it will show up the below image &lt;b&gt;step&lt;/b&gt; &lt;b&gt;3 &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Just click on the next button from below image &lt;b&gt;step 3&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_3" o:spid="_x0000_i1032" style="height: 339.75pt; mso-wrap-style: square; visibility: visible; width: 375.75pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step3" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-D5hdSVDbH5M/TtDOqHCTvkI/AAAAAAAAAPI/d9YnvRqRH5c/s1600/Step3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-D5hdSVDbH5M/TtDOqHCTvkI/AAAAAAAAAPI/d9YnvRqRH5c/s1600/Step3.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px; line-height: 19.2pt;"&gt;Now in below image you can see the list of all the available databases, by default on which database you have right clicked it is selected but you can change here if you want to generate script for other database. In &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px; line-height: 19.2pt;"&gt;Step 4&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px; line-height: 19.2pt;"&gt; image there is one check box labelled with ‘&lt;/span&gt;&lt;i style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px; line-height: 19.2pt;"&gt;Script all objects in the selected database’. &lt;/i&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19.2pt;"&gt;&amp;nbsp;Check this&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 25px;"&gt;check box&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19.2pt;"&gt;&amp;nbsp;if you want to generate script for all the objects from database, if you will not check this check box it will ask on next step for database object selection.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ijfGFnCxdz0/TtDOruQkluI/AAAAAAAAAPQ/-5dyM1Yur7s/s1600/Step4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-ijfGFnCxdz0/TtDOruQkluI/AAAAAAAAAPQ/-5dyM1Yur7s/s1600/Step4.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_4" o:spid="_x0000_i1031" style="height: 339.75pt; mso-wrap-style: square; visibility: visible; width: 375.75pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step4" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image004.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;After selecting the database and checking check box it will show up the below image &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;step 5&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Here you can select what you want to include in script, like script table with data or without data, you want to add script like if exist then drop the object first then create it etc. For scripting table with all the data &lt;i&gt;select true in script data&lt;/i&gt; option as I have selected in below image. Then click on next button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_5" o:spid="_x0000_i1030" style="height: 546pt; mso-wrap-style: square; visibility: visible; width: 429pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step5" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-QofVHfMSaOg/TtDOuLGMRSI/AAAAAAAAAPY/hYbKwC7FwJ8/s1600/Step5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-QofVHfMSaOg/TtDOuLGMRSI/AAAAAAAAAPY/hYbKwC7FwJ8/s1600/Step5.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Now this &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;step 6&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; has some output file type and file location related options. I have selected 3&lt;/span&gt;&lt;sup style="color: #333333; font-family: Verdana, sans-serif;"&gt;rd&lt;/sup&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; radio button in below image for generating a script in &lt;/span&gt;&lt;b style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;New Query Window&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; but if you don’t want to generate script in new query window and want to generate script into clipboard then select 2&lt;/span&gt;&lt;sup style="color: #333333; font-family: Verdana, sans-serif;"&gt;nd&lt;/sup&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; radio button labelled with &lt;/span&gt;&lt;i style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Script to Clipboard. &lt;/i&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;If you want to generate script in a file then select 1&lt;/span&gt;&lt;sup style="color: #333333; font-family: Verdana, sans-serif;"&gt;st&lt;/sup&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt; radio button &lt;/span&gt;&lt;i style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Script to file&lt;/i&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;, once you select this option it will ask file name and directory to save the file on hard drive.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;I have marked &lt;i&gt;files to generate&lt;/i&gt; option as a 3 and then 3.1 and 3.2 in the red colour. If you want to generate whole script in one single file then select single file (3.1), by default it is selected. If you want to generate different file per object then select 3.2 option. If you select 3.2 option and suppose you have 10 tables in database then it will generate 10 different SQL file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_6" o:spid="_x0000_i1029" style="height: 437.25pt; mso-wrap-style: square; visibility: visible; width: 429pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step6" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image006.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-xL3ngtUMiV0/TtDOwL9VLDI/AAAAAAAAAPg/8IUFtjuRYeY/s1600/Step6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-xL3ngtUMiV0/TtDOwL9VLDI/AAAAAAAAAPg/8IUFtjuRYeY/s1600/Step6.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 7&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt; below image is just a summary page, showing all the options you have selected till step. Just click on the finish button to proceed.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_7" o:spid="_x0000_i1028" style="height: 437.25pt; mso-wrap-style: square; visibility: visible; width: 429pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step7" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ZYu1bNfF8lE/TtDOyObRf7I/AAAAAAAAAPo/Hbj9Hpeh_nw/s1600/Step7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://2.bp.blogspot.com/-ZYu1bNfF8lE/TtDOyObRf7I/AAAAAAAAAPo/Hbj9Hpeh_nw/s640/Step7.png" width="627" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 8&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt; showing the progress for generating database script&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_8" o:spid="_x0000_i1027" style="height: 435.75pt; mso-wrap-style: square; visibility: visible; width: 427.5pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step8" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image008.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JgTBmU3r9EU/TtDO0g3Pu4I/AAAAAAAAAPw/O41S1EGclvE/s1600/Step8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-JgTBmU3r9EU/TtDO0g3Pu4I/AAAAAAAAAPw/O41S1EGclvE/s1600/Step8.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 9&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt; showing the successfully completion of script generation process.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_9" o:spid="_x0000_i1026" style="height: 437.25pt; mso-wrap-style: square; visibility: visible; width: 429pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step9" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-cXaXILAMkMo/TtDO3bhCSZI/AAAAAAAAAP4/cywHxSvr0u8/s1600/Step9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-cXaXILAMkMo/TtDO3bhCSZI/AAAAAAAAAP4/cywHxSvr0u8/s1600/Step9.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px;"&gt;Step 10 shows that all database object has been scripted in new query window for pubs database. Now your script is ready...&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;v:shape id="Picture_x0020_10" o:spid="_x0000_i1025" style="height: 362.25pt; mso-wrap-style: square; visibility: visible; width: 451.5pt;" type="#_x0000_t75"&gt; &lt;v:imagedata o:title="Step10" src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image010.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-8lq9aQR_nk4/TtDO7fYI0DI/AAAAAAAAAQA/JOaTPAzhN6g/s1600/Step10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-8lq9aQR_nk4/TtDO7fYI0DI/AAAAAAAAAQA/JOaTPAzhN6g/s1600/Step10.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Step 10 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: white; line-height: 19.2pt; margin-bottom: 8.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 8.4pt; text-align: justify;"&gt;&lt;span style="color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;Please let me know if you have any question on this script generation wizard.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/1418256197256690519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/11/sql-server-2008-generate-script-of.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/1418256197256690519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/1418256197256690519'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/11/sql-server-2008-generate-script-of.html' title='SQL Server – 2008 – Generate Script of Database, Generate script to copy whole database schemas and All other object in database, like Tables with data, SPs, Views, Triggers, Functions, Database constraints etc.'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-J45ec7ZgHUo/TtDOhIlSKNI/AAAAAAAAAO4/2Vgogm4IPhA/s72-c/Step1.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-6656015431442349493</id><published>2011-11-20T00:43:00.001-08:00</published><updated>2011-11-20T00:49:54.167-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-family: inherit;"&gt;&lt;b&gt;Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-family: inherit;"&gt;&lt;b&gt;The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-family: inherit;"&gt;&lt;b&gt;(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;This is the common error for sql server while establish connection from visual studio to sql server.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;If you encounter this error, while establishing connection from visual studio to to sql server, than first things to check in web.config file that have you set sql server instance name properly and correct?&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;You can encounter above error if you have&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Change your PC name or sql instance name&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;or you have installed new isntance of sql server.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EG. Currently your PC name is 'PCName', and sql instance name is 'SQLServer'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Now you are changing your computer name from 'PCName' to 'MyPC' or sql server instance name from 'SQLServer' to 'MySQLServer' then you must change connection string&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;in your web.config file &amp;nbsp;like below sample connection string&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Old Connection String:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Data Source=&lt;i&gt;PCName\SQLServer&lt;/i&gt;;Initial Catalog=SampleDBName;Integrated Security=True&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;New Connection String:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Data Source=&lt;i&gt;MyPC\MySQLServer&lt;/i&gt;;Initial Catalog=SampleDBName;Integrated Security=True&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;First check your sql server instance name after opening sql server management studio, then check connection string in your vs.net solutions,&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;then compare both instance name if both instance name are not same then please make both name same and save changes you made in web.config file and run the project&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/6656015431442349493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/11/error-network-related-or-instance.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6656015431442349493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6656015431442349493'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/11/error-network-related-or-instance.html' title='Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server.'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-6046170026734531007</id><published>2011-10-19T10:45:00.000-07:00</published><updated>2011-11-26T03:46:31.636-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Images'/><category scheme='http://www.blogger.com/atom/ns#' term='DataControl'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Repeater'/><title type='text'>How to display Image in Repeater Control from folder?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://www.blogger.com/mybloggingstuff.com/download/ImageProcessing.zip" target="_blank"&gt;Download full project&lt;/a&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;Recently I was working on a project where I needed to dispaly an images into Repeater control from Folder. So I thought let me create a blog post for that and share it with my reader.&lt;br /&gt;It is very simple to display an image into repeater control from folder just like below.&lt;br /&gt;In this project&amp;nbsp; I have used one file upload control from where we are uploading images to one specific folder and then display all the uploaded images to the repeater control using an array.&lt;br /&gt;&lt;br /&gt;Here is html code for&amp;nbsp; .aspx page&lt;br /&gt;&lt;pre class="html" name="code"&gt; &lt;br /&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #lblErrorMessage{color:#FF0000;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID="lblErrorMessage" runat="server" EnableViewState="false"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:FileUpload ID="fuUpload" runat="server" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID="btnFileUpload" runat="server" Text="Upload File" &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onclick="btnFileUpload_Click" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Repeater ID="rptImage" runat="server" Visible = "true"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ItemTemplate &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img ID="imgLeft" runat="server" src='&amp;lt;%# Container.DataItem %&amp;gt;' alt='' style="height:100px;width:100px;" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;Here code sample is explained in small peices.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Load Event&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In page load event just calling a bindImages which will find all the images from folder and then bind it to the Repeater.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;pre class="c#" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string folderPath = "images/";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindImages(folderPath);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;//bindImages Function&lt;br /&gt;In below function we are getting all the images to the string array then loop through it and get the file name from whole path and concat it with folder path and again assign it to array element. Once all the image path changed then bind an file path array to the Repeater.&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharp" name="code"&gt;&amp;nbsp;public void BindImages(string folderPath)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //get all the files from flder&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] strImgs = System.IO.Directory.GetFiles(Server.MapPath(folderPath));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Loop through all the file and get only file name and concat it with folder name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int count = 0; count &amp;lt; strImgs.Length; count++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string filePath = strImgs[count];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filePath = filePath.Substring(filePath.LastIndexOf('\\')+1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string newFilePath = folderPath + filePath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strImgs[count] = newFilePath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Bind an image file name to repeater.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rptImage.DataSource = strImgs;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rptImage.DataBind();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;When save button clicked then this code will check that file is selected or not, based upon file selected it will take an action.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;//Before procceding check that user has select file&lt;br /&gt;&lt;pre class="csharp" name="code"&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (fuUpload.HasFile)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Call save File method&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaveUploadedFile(fuUpload.PostedFile);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindImages(folderPath);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Notify user that file is not selected&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblErrorMessage.Text = "Please select a file to upload.";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/pre&gt;&lt;pre class="csharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Code for SaveUploadedFile function&lt;br /&gt;below code will create a folder path to save image to the disk then check that the file name is exist in target folder if yes then it will contact counter number at begining of the file name and again check for duplicate file name, once file name found then it will save image with that file name on the disk.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; void SaveUploadedFile(HttpPostedFile file)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Secify the path to save file.&lt;br /&gt;&lt;pre class="csharp" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string savePath = Server.MapPath("Images/");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the name of the file to upload.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string fileName = fuUpload.FileName;&lt;/pre&gt;&lt;pre class="csharp" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string pathToCheck = savePath + fileName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string tempfileName = "";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Check at target that file is exist with same name then change filename while saving&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (System.IO.File.Exists(pathToCheck))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int counter = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (System.IO.File.Exists(pathToCheck))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tempfileName = counter.ToString() + fileName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pathToCheck = savePath + tempfileName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileName = tempfileName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblErrorMessage.Text = "Your file was uploaded successfully.";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePath += fileName.Replace(" ","");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //save uploaded file to disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fuUpload.SaveAs(savePath);&lt;/pre&gt;&lt;pre class="csharp" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;Here I have uploaded full project code for the reference. You can download it from the top&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-afHYRO3FekU/Tp48qefZzJI/AAAAAAAAANg/ON8gVtu2_pw/s1600/images1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://1.bp.blogspot.com/-afHYRO3FekU/Tp48qefZzJI/AAAAAAAAANg/ON8gVtu2_pw/s320/images1.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/6046170026734531007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/10/how-to-display-image-in-repeater.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6046170026734531007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/6046170026734531007'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/10/how-to-display-image-in-repeater.html' title='How to display Image in Repeater Control from folder?'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-afHYRO3FekU/Tp48qefZzJI/AAAAAAAAANg/ON8gVtu2_pw/s72-c/images1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2859138165094017663</id><published>2011-06-28T06:01:00.000-07:00</published><updated>2011-06-28T06:03:25.179-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>How to make Firefox the default browser?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;If you have more then one browser like &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;IE&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;FF&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Safari&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; or &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Chrome&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; then windows or any other operating system needs to know which browser to use by default?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-family: inherit;"&gt;This article will show you the step how to set firefox as default browser.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;From the menu bar select on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Tools&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; → &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Options&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; and it will open following screen&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-4bd107eAZZE/TgnQMLivp2I/AAAAAAAAAK8/oioSv3KqN4o/s1600/options.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="310" src="http://3.bp.blogspot.com/-4bd107eAZZE/TgnQMLivp2I/AAAAAAAAAK8/oioSv3KqN4o/s320/options.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: #303030;"&gt;&lt;span style="font-family: inherit;"&gt;Figure 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;As per above figure select &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;advance&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; option from options then go to &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;General&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; tab.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;In the system defaults panel there is a button with captions &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Check Now &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;Just click it and it will ask for the confirmation, click on OK button and you are done. You can see confirmation dialog box like Figure 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-yicsyUSvHAk/TgnQLMZQXoI/AAAAAAAAAK4/fwlb9Bf6n8w/s1600/confirm.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="69" src="http://4.bp.blogspot.com/-yicsyUSvHAk/TgnQLMZQXoI/AAAAAAAAAK4/fwlb9Bf6n8w/s320/confirm.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: #666666; font-family: inherit;"&gt;Figure 2.&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; line-height: 0.22in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;strong&gt;&lt;span style="color: #626266;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;Note: MSN Messenger and other applications may open Internet Explorer regardless of which browser is the default. Also, Internet service providers like PeoplePC Online, Juno and NetZero may provide connection software that automatically launches Internet Explorer.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2859138165094017663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/06/how-to-make-firefox-default-browser.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2859138165094017663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2859138165094017663'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/06/how-to-make-firefox-default-browser.html' title='How to make Firefox the default browser?'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-4bd107eAZZE/TgnQMLivp2I/AAAAAAAAAK8/oioSv3KqN4o/s72-c/options.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2692111897094186571</id><published>2011-06-07T10:56:00.000-07:00</published><updated>2011-06-07T10:56:26.911-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shortcuts'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Table and Stored Procedure helptext using Keyboard - SQL Server Keyboard Shortcut</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;In the world of programming keyboard shortcuts are very useful for fast developing either in SQL server, DotNet or any programming language or any database.&lt;/div&gt;&lt;div class="MsoNormal"&gt;In my project I always use SQL Server for backend and for editing or viewing SP or Database Table structure I used right click on Database object and then select either &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;design&lt;/i&gt;&lt;/b&gt; as &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 1&lt;/b&gt; or &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;modify&lt;/i&gt;&lt;/b&gt; as &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 2&lt;/b&gt; option. But it’s little bit lengthy procedure for getting a result. &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-XjXV5jgZ42U/Te5lLnOXFHI/AAAAAAAAAKg/CIrB7YYqB9c/s1600/Figure+1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="178" src="http://2.bp.blogspot.com/-XjXV5jgZ42U/Te5lLnOXFHI/AAAAAAAAAKg/CIrB7YYqB9c/s320/Figure+1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-fareast-language: EN-IN; mso-no-proof: yes;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype  id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"  path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"/&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"/&gt;   &lt;v:f eqn="sum @0 1 0"/&gt;   &lt;v:f eqn="sum 0 0 @1"/&gt;   &lt;v:f eqn="prod @2 1 2"/&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"/&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"/&gt;   &lt;v:f eqn="sum @0 0 1"/&gt;   &lt;v:f eqn="prod @6 1 2"/&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"/&gt;   &lt;v:f eqn="sum @8 21600 0"/&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"/&gt;   &lt;v:f eqn="sum @10 21600 0"/&gt;  &lt;/v:formulas&gt;  &lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/&gt;  &lt;o:lock v:ext="edit" aspectratio="t"/&gt; &lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_1" o:spid="_x0000_i1030" type="#_x0000_t75"  style='width:451.5pt;height:252pt;visibility:visible;mso-wrap-style:square'&gt;  &lt;v:imagedata src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg"   o:title="Figure 1"/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-3FscB9Xu0Lk/Te5lMRHideI/AAAAAAAAAKk/J_Dz9PcFd6s/s1600/Figure+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="http://2.bp.blogspot.com/-3FscB9Xu0Lk/Te5lMRHideI/AAAAAAAAAKk/J_Dz9PcFd6s/s320/Figure+2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-fareast-language: EN-IN; mso-no-proof: yes;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape  id="Picture_x0020_2" o:spid="_x0000_i1029" type="#_x0000_t75" style='width:451.5pt;  height:299.25pt;visibility:visible;mso-wrap-style:square'&gt;  &lt;v:imagedata src="file:///C:\Users\Tarun\AppData\Local\Temp\msohtmlclip1\01\clip_image002.jpg"   o:title="Figure 2"/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;So I was searching for shortcuts using that we can easily get the desire result and I found that.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;How to do that for Table?&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In my Sample Database there is one table &lt;b style="mso-bidi-font-weight: normal;"&gt;Customer_Orders.&lt;/b&gt; Just&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;drag that table to query window or copy the name of table and paste it to query window. Then select it and just press Alt+F1 it’s default from Management Studio and it will show each and every details in result area like &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-fareast-language: EN-IN; mso-no-proof: yes;"&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-ZVKtXDM0YBI/Te5lNSvzH_I/AAAAAAAAAKo/wR3hBfK5AQI/s1600/Figure+3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://2.bp.blogspot.com/-ZVKtXDM0YBI/Te5lNSvzH_I/AAAAAAAAAKo/wR3hBfK5AQI/s320/Figure+3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;How to do that for Sps?&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In my Sample Database there is one Sp &lt;b style="mso-bidi-font-weight: normal;"&gt;getAllOrders.&lt;/b&gt; Just&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;drag that sp to query window or copy the name of sp and paste it to query window. &lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;Append &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;sp_helptext&lt;/i&gt;&lt;/b&gt; at the beginning of the sp name with space and select all and press&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt; F5&lt;/i&gt;&lt;/b&gt; key and it will show the result in below pane.&lt;/div&gt;&lt;div class="MsoNormal"&gt;Still it’s required 2 to 3 actions so set some default key for &lt;b style="mso-bidi-font-weight: normal;"&gt;sp_helptext&lt;/b&gt; command using below steps.&lt;/div&gt;&lt;div class="MsoNormal"&gt;Step 1 Go to Tools&lt;span style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;"&gt;&lt;span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Options menu like &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-ctr_tc0CNd0/Te5lN1xZSMI/AAAAAAAAAKs/LX8rry59lxQ/s1600/Figure+4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="186" src="http://3.bp.blogspot.com/-ctr_tc0CNd0/Te5lN1xZSMI/AAAAAAAAAKs/LX8rry59lxQ/s320/Figure+4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="mso-fareast-language: EN-IN; mso-no-proof: yes;"&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 4&lt;/b&gt; from left panel select keyboard option and from right side &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;Ctrl+F1&lt;/i&gt;&lt;/b&gt; has empty table cell. Add &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;u&gt;sp_helptext&lt;/u&gt;&lt;/i&gt;&lt;/b&gt; command there and press ok. Here you can set some keyboard shortcuts if you want like &lt;b style="mso-bidi-font-weight: normal;"&gt;Ctrl+F2&lt;/b&gt;, &lt;b style="mso-bidi-font-weight: normal;"&gt;Ctrl + F3&lt;/b&gt; and more&lt;/div&gt;&lt;div class="MsoNormal"&gt;Now open new query window drag sp name on query window and select it and press &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;Ctrl+F1&lt;/i&gt;&lt;/b&gt; and you can see result like &lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 5&lt;/b&gt;. &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-Hja84oRNyUY/Te5lOp7_ZWI/AAAAAAAAAKw/VA3mSgaQgfE/s1600/Figure+5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-Hja84oRNyUY/Te5lOp7_ZWI/AAAAAAAAAKw/VA3mSgaQgfE/s320/Figure+5.jpg" width="315" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-ES8MnVAw6B4/Te5lPO6_rLI/AAAAAAAAAK0/GG2cRY43CWI/s1600/Figure+6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-ES8MnVAw6B4/Te5lPO6_rLI/AAAAAAAAAK0/GG2cRY43CWI/s320/Figure+6.jpg" width="316" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Figure 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Above&lt;b style="mso-bidi-font-weight: normal;"&gt; Figure 5 &lt;/b&gt;and&lt;b style="mso-bidi-font-weight: normal;"&gt; Figure 6 &lt;/b&gt;both are same but still there is a little and important difference so let me take an opportunity to explain that difference. In Figure 5 the result is displaying in grid and in Figure 6 result is displaying as a plain text. If you check at the top then there is tooltip in yellow strip with text &lt;b style="mso-bidi-font-weight: normal;"&gt;Results to Grid&lt;/b&gt; and &lt;b style="mso-bidi-font-weight: normal;"&gt;Results to Text. &lt;/b&gt;Both options are at the top of the query window. If you see the result in grid view then you will loose the formation of the sp like indentation, spacing,&amp;nbsp;&lt;span style="font-size: 11pt; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;beautify&amp;nbsp;&lt;/span&gt;&lt;/span&gt;etc. But if you view result in plain text format then it will preserve all the format when you have created or modified sp.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2692111897094186571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/06/table-and-stored-procedure-helptext.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2692111897094186571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2692111897094186571'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/06/table-and-stored-procedure-helptext.html' title='Table and Stored Procedure helptext using Keyboard - SQL Server Keyboard Shortcut'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-XjXV5jgZ42U/Te5lLnOXFHI/AAAAAAAAAKg/CIrB7YYqB9c/s72-c/Figure+1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-4257615271442254023</id><published>2011-05-06T22:26:00.000-07:00</published><updated>2011-05-06T22:26:00.589-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogging'/><title type='text'>How to Exclude your Own Visits From Blogger Stats?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;When we are developing any blog or website then normally we want to watch the traffic on our site or blog. There are lots of traffic source tracker sites and tools are available on the net, but I found 2 more effective tools where we can check our traffic stat very easily. 1 is Google Analytic and second one is Blog Stat which is recently launched in blogger platform.&lt;br /&gt;&lt;br /&gt;Blogger stats is excellent way to track world wide traffic on you blogger blog. It is now built in facility by &lt;a href="http://blogger.com/"&gt;http://blogger.com&lt;/a&gt;   and very much similar to Google Analytic and it will be similar because both are from Google only.&lt;br /&gt;&lt;br /&gt;Benefit of Blogger stat&lt;br /&gt;Main benefit of blogger stat is you do not need to add any external code to track your traffic source like hitstat, google analytics, sitemeter etc.&lt;br /&gt;&lt;br /&gt;In Google analytic is was easy to  exclude your own visits but how to exclude your own visit from blogger stat?&lt;br /&gt;&lt;br /&gt;So here the step by step guide to exclude your own visit from blogger stat.&lt;br /&gt;&lt;br /&gt;First go to &lt;a href="http://www.blogger.com/"&gt;http://www.blogger.com&lt;/a&gt; and login there.&lt;br /&gt;&lt;br /&gt;From dash board might you have more then 1 blog so find your blog where you want to exclude your stat and click on stat tab on that blog details like below figure 1&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-ZvZ_6ocqQ_I/Ta0ew6aXc3I/AAAAAAAAAJA/elOWSGUCj00/s1600/dashboard.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="61" src="http://1.bp.blogspot.com/-ZvZ_6ocqQ_I/Ta0ew6aXc3I/AAAAAAAAAJA/elOWSGUCj00/s320/dashboard.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Figure 1&lt;br /&gt;&lt;br /&gt;Now in overview section(tab) on stat tab there is page view details at right side like pageview today etc under that widget you can see don't track own visit link, see below figure 2&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-khdYfOffcmE/Ta0ewrHmOJI/AAAAAAAAAI8/PU9mQmPr7I8/s1600/overview.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="109" src="http://4.bp.blogspot.com/-khdYfOffcmE/Ta0ewrHmOJI/AAAAAAAAAI8/PU9mQmPr7I8/s320/overview.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Figure 2&lt;br /&gt;&lt;br /&gt;now once you click on that link don't track own visit it will open on small popup with 2 radio button.&lt;br /&gt;Track my pageview and &lt;br /&gt;Don't track my pageview&lt;br /&gt;&lt;br /&gt;select second option don's track my page view and click on save button like below figure and you are done. Now blogger will exclude you own visit from traffic source details.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-9WtapAlO6uE/Ta0excETDTI/AAAAAAAAAJE/r7fBy8ARAVg/s1600/disable.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="147" src="http://3.bp.blogspot.com/-9WtapAlO6uE/Ta0excETDTI/AAAAAAAAAJE/r7fBy8ARAVg/s320/disable.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/4257615271442254023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/how-to-exclude-your-own-visits-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4257615271442254023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4257615271442254023'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/how-to-exclude-your-own-visits-from.html' title='How to Exclude your Own Visits From Blogger Stats?'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-ZvZ_6ocqQ_I/Ta0ew6aXc3I/AAAAAAAAAJA/elOWSGUCj00/s72-c/dashboard.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2591196166378611764</id><published>2011-05-05T03:37:00.000-07:00</published><updated>2011-05-05T03:37:00.530-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Blogging'/><title type='text'>How to Prevent or disable copy content of your blog/site</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;If you want that visitor will not be able to copy your content from web page then it's easy using JavaScript.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;It's not full proof way there are other alternate they can copy but it will not be easy way for them to copy content by just selecting required content, right click and click on copy.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;Just add following JavaScript code to your blog templates and it will be secure that other user will not be able to copy content easily.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;Just go to &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Blogger Dashboard.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;Click on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Design&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt; Tab –&amp;gt; then click on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;b&gt;Page element.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;Now you can see add a gadget link many places. Just click any one of them and select &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;i&gt;&lt;b&gt;HTML and Javascript &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;widget and paste following code to opened dialog box.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="orphans: 2; widows: 2;"&gt;&lt;div style="line-height: 0.2in;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;br /&gt;&lt;div style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var donotconsidortag = ["input", "textarea", "select"]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;donotconsidortag = donotconsidortag.join("|")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function unableToSelect(e) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (donotconsidortag.indexOf(e.target.tagName.toLowerCase()) == -1)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function ableToSelect() {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (typeof document.onselectstart != "undefined")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.onselectstart = new Function("return false")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.onmousedown = unableToSelect&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.onmouseup = ableToSelect&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;Then save the templates and check it. If it's working fine then you are done else you have made some mistake, to correct it repeat the process.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 0.2in; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-family: inherit; font-weight: normal;"&gt;Enjoy the post. If you like my post then either left a comment or do subscribe my rss in you favourite rss feed reader to get latest update from me.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2591196166378611764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/how-to-prevent-or-disable-copy-content.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2591196166378611764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2591196166378611764'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/how-to-prevent-or-disable-copy-content.html' title='How to Prevent or disable copy content of your blog/site'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-4656318760541857018</id><published>2011-05-01T06:29:00.000-07:00</published><updated>2011-05-01T06:29:00.258-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Generating a random number in JavaScript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;Today I was working in a DayPilot project it was something like Google or outlook calender. In that project when I was creating or editing event, it was using java script popup. But it was showing old value rather than new or updated value when popup open. This was happening due to JavaScript because it was running from cache.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;How to fill new or updated value in control it was a big concern? So what I had done is just create one random number and append it at the end of URL so every time new http request will be different in browser and it will not run from cache. &lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;So now how to generate a random number?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;Lets begin by looking back. As discussed in this post to generate a random number in JavaScript, the code: &lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;var randomnumber=Math.random();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Math.random(x)&lt;/b&gt;&lt;/i&gt;&lt;b&gt; :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This is the function which will return next random number between &lt;i&gt;&lt;b&gt;0.0 to 0.999999&lt;/b&gt;&lt;/i&gt; so this will generate decimal number every time. If we require integer number then we can convert it using either round or floor function.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Math.round(x)&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-style: normal; font-weight: normal; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The round() method rounds a number to the nearest integer. &lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Math.floor(x)&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-style: normal;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result.&lt;/span&gt;&lt;/span&gt; &lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;So finally we can use it as like this&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;randomnumber = Math.floor(Math.random());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;or&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;randomnumber = Math.round(Math.random());&lt;/div&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;it will return value between 0 to 9&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/4656318760541857018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/generating-random-number-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4656318760541857018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4656318760541857018'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/05/generating-random-number-in-javascript.html' title='Generating a random number in JavaScript'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-3237619780441964705</id><published>2011-04-27T22:29:00.000-07:00</published><updated>2011-04-27T22:34:19.290-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogging'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>The New Google Analytics Available to Everyone</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;h1 class="western"&gt;&lt;a href="http://analytics.blogspot.com/2011/04/new-google-analytics-available-to.html"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;The New Google Analytics Available to Everyone&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Hey Google has recently launched the newer version of the Google Analytic to track the site or blog traffic.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;I am very happy after seeing the newer version of Google Analytics and Google has announced that it is in beta stage and available to every user in all the languages.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Cambria, serif;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;New look of the Dashboard&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-ZvywD0vAKzE/Tbj8SgJxnwI/AAAAAAAAAKQ/1HcZdaWBuLE/s1600/GoogleNew.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-ZvywD0vAKzE/Tbj8SgJxnwI/AAAAAAAAAKQ/1HcZdaWBuLE/s320/GoogleNew.JPG" width="319" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Cambria, serif;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;How to check newer version of the Google Analytics&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Sign in to your Google Analytic and see the link at top right of your account&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Cambria, serif;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Check below screen shot for more details.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-XE5E_Vshf0Q/Tbj60Y4fVoI/AAAAAAAAAJ8/oTK812J51ns/s1600/GoogleNew.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="35" src="http://2.bp.blogspot.com/-XE5E_Vshf0Q/Tbj60Y4fVoI/AAAAAAAAAJ8/oTK812J51ns/s320/GoogleNew.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;New version of Google Analytic has some enhancements as below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;A  redesigned Google Analytics platform to enable major new  functionality&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;A  streamlined interface to make it easier to get to the information  you want&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Improved  report performance for faster reports&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-style: normal; font-weight: normal; orphans: 2; widows: 2;"&gt;&lt;span class="Apple-style-span" style="font-family: Cambria, serif;"&gt;Currently, we are showcasing the following features in the new version of Analytics:&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;A  completely redesigned, faster interface. &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;  &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Multiple  dashboards—build a custom dashboard for each department.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Event  Goals! Track your PDF downloads as goals with events, or configure 2  minutes play time on a video as a goal.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;More  powerful custom reports—you can pre-filter reports and build  additional data views.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;New  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;Term  Cloud &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;visualization.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style="font-style: normal; font-weight: normal; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;Some features will be introduce in Google Analytic very soon as below&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Exporting  reports to PDF&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Emailing  reports&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Migrating  a custom report from the current Analytics version to the new  version&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; margin-bottom: 0in; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Linking  a new AdWords or AdSense account&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="font-weight: normal; orphans: 2; widows: 2;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;In-Page  Analytics&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Cambria, serif;"&gt;&lt;i&gt;For more details please go to &lt;a href="http://analytics.blogspot.com/2011/04/new-google-analytics-available-to.html"&gt;here&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Cambria, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Some screen shot from new analytic&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-wN6xVTvu36c/Tbj60-TQIVI/AAAAAAAAAKA/iOkW5Zs2uMs/s1600/GoogleAccount.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="159" src="http://2.bp.blogspot.com/-wN6xVTvu36c/Tbj60-TQIVI/AAAAAAAAAKA/iOkW5Zs2uMs/s320/GoogleAccount.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-jtt7KS4PMWs/Tbj61djfPKI/AAAAAAAAAKE/j6N9UVk_2q0/s1600/GoogleAccount1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="110" src="http://1.bp.blogspot.com/-jtt7KS4PMWs/Tbj61djfPKI/AAAAAAAAAKE/j6N9UVk_2q0/s320/GoogleAccount1.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-2xnGe9zIUUQ/Tbj611K43DI/AAAAAAAAAKI/vuo2H6jdIJI/s1600/GoogleAccountFilter.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="278" src="http://1.bp.blogspot.com/-2xnGe9zIUUQ/Tbj611K43DI/AAAAAAAAAKI/vuo2H6jdIJI/s320/GoogleAccountFilter.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/3237619780441964705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/new-google-analytics-available-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/3237619780441964705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/3237619780441964705'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/new-google-analytics-available-to.html' title='The New Google Analytics Available to Everyone'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-ZvywD0vAKzE/Tbj8SgJxnwI/AAAAAAAAAKQ/1HcZdaWBuLE/s72-c/GoogleNew.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2583855781948988458</id><published>2011-04-24T05:04:00.000-07:00</published><updated>2011-04-24T05:04:01.001-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>List of All Built-In / System SQL Server Stored Procedures</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;span style="color: #8c8c8c;"&gt;&lt;span style="font-family: 'Trebuchet MS', Trebuchet, Geneva, Helvetica, Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Hey today I was searching for some system procedures to get system data and I found that on MSDN there is a list of all the native/system procedures with explanation. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;br /&gt;&lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;span style="color: #8c8c8c;"&gt;&lt;span style="font-family: 'Trebuchet MS', Trebuchet, Geneva, Helvetica, Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;It took some time for me to get the exact stored procedure what I was searching for so I thought it will help others as well so I am giving you a link of that MSDN page...  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;span style="color: #8c8c8c;"&gt;&lt;span style="font-family: 'Trebuchet MS', Trebuchet, Geneva, Helvetica, Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;span style="color: #8c8c8c;"&gt;&lt;span style="font-family: 'Trebuchet MS', Trebuchet, Geneva, Helvetica, Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms187961.aspx"&gt;List of All Built-In / System SQL Server Stored Procedures&lt;/a&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;br /&gt;&lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;span style="color: #8c8c8c;"&gt;&lt;span style="font-family: 'Trebuchet MS', Trebuchet, Geneva, Helvetica, Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;but remember that some times on MSDN link will change (Broken link). So might be when you read this it's broken if it is so just let me know my providing comment at the bottom of the post.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;br /&gt;&lt;/div&gt;&lt;div style="border: none; font-style: normal; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;br /&gt;&lt;/div&gt;&lt;div style="border: none; font-weight: normal; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt; &lt;span style="color: black;"&gt;&lt;span style="font-family: Arial, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-style: normal;"&gt;Thanks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2583855781948988458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/list-of-all-built-in-system-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2583855781948988458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2583855781948988458'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/list-of-all-built-in-system-sql-server.html' title='List of All Built-In / System SQL Server Stored Procedures'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-2277908571724556485</id><published>2011-04-14T03:20:00.000-07:00</published><updated>2011-04-14T04:44:53.882-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Disable Back Button in Browser using JavaScript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-eDerzg4gjvc/TabKi27avsI/AAAAAAAAAI4/ngJfZeZXWJ8/s1600/back_button.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-eDerzg4gjvc/TabKi27avsI/AAAAAAAAAI4/ngJfZeZXWJ8/s1600/back_button.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;nbsp;While we are developing any web application then some times it's necessary to disable the back button effect from the browser. This is common in banking websites and other sites where security is major concern. User may hit the back button from the browser and forget to log out from the site.&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;There fore it's required to disable browser's back button.&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;So here is the code which will prevent user to go back on previous page.&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;title&amp;gt;New event&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;SCRIPT type="text/javascript"&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;window.history.forward();&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;function noBack() { window.history.forward(); }&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/HEAD&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;BODY onload="noBack();"&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;onpageshow="if (event.persisted) noBack();" onunload=""&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;a href='page2.html' &amp;gt;Page 2&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;u&gt;&lt;b&gt;Code for Page 1.&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;title&amp;gt;New event&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/HEAD&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;BODY&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;Page 2&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;u&gt;&lt;b&gt;Code for page 2.&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;Here I have given 2 pages page 1 and page 2. From page 1 I am going to page 2 using page 2 link. Now if I will click on page 2's browser back button it will go to page 1 but from page 1 it will again forward to page 2 so user can't go to the page 1 using back button.&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="border: none; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;"&gt;&lt;blockquote&gt;Note : Above code is tested in IE 9.0 and Firefox 3.6.8&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/2277908571724556485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/disable-back-button-in-browser-using.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2277908571724556485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/2277908571724556485'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/disable-back-button-in-browser-using.html' title='Disable Back Button in Browser using JavaScript'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-eDerzg4gjvc/TabKi27avsI/AAAAAAAAAI4/ngJfZeZXWJ8/s72-c/back_button.png' height='72' width='72'/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-4152116453593918652</id><published>2011-04-08T01:29:00.000-07:00</published><updated>2011-04-08T01:29:00.382-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Concatenation in SQL, Using For XML PATH(), Concatenate more than one rows in one field</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Some times it is required to concatenate more no of rows into one single filed separated by commas. There are some options for that like we can write our own UDF for that, in sql server  built in COALESCE function is there with this function we can achieve it. But some time need is different or we want to achieve it in different way then there is another option that I am going to explain using FOR XML PATH().&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Let me first show me my table design&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://3.bp.blogspot.com/-s1nnn_g1LSw/TZ6r9nov11I/AAAAAAAAAIs/AuaS5XVXAlw/s1600/Figure1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="107" src="http://3.bp.blogspot.com/-s1nnn_g1LSw/TZ6r9nov11I/AAAAAAAAAIs/AuaS5XVXAlw/s320/Figure1.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;and also show me the data which I have inserted for this testing purpose&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-G2RZ8om8iwU/TZ6r-Mhb-OI/AAAAAAAAAIw/wsj__b1HRok/s1600/Figure2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-G2RZ8om8iwU/TZ6r-Mhb-OI/AAAAAAAAAIw/wsj__b1HRok/s1600/Figure2.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;Have you tried to access data in xml format from sql table, not yet ? Then try below query and see the result.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt; &lt;/div&gt;&lt;div class='code'&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;  Employee_Name &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; Emp_Tech  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;FOR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;XML&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;path&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-e29UxEGLdL8/TZ6r_Vum3kI/AAAAAAAAAI0/0O_ycTkjZUw/s1600/Figure3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-e29UxEGLdL8/TZ6r_Vum3kI/AAAAAAAAAI0/0O_ycTkjZUw/s320/Figure3.png" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;When you run above query then you can see result like &amp;lt;Employee Name&amp;gt;Tarun&amp;lt;/Employee Name&amp;gt;.... conti... and when you click on the resulted row then it will open .xml file in query window. But here we are understanding how to merge that all the rows into single row with comma separated so let me write a query for that.&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt; &lt;/div&gt;&lt;div class='code'&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt; &lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;DISTINCT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;  Employee_tech&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;employee_name &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: magenta;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;substring&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;','&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; Employee_Name &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;        Emp_Tech et2 &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;Where&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;        et2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;Employee_Tech &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; et1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;Employee_Tech &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;FOR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;XML&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;PATH&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;ELEMENTS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;500&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="zxx"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt; Emp_Tech et1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;And this is the out put for that query&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;Out put &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-Npq5l-DZf3I/TZ6r9EFqp3I/AAAAAAAAAIo/wt6dPfGew5s/s1600/Figure4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-Npq5l-DZf3I/TZ6r9EFqp3I/AAAAAAAAAIo/wt6dPfGew5s/s1600/Figure4.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div lang="zxx" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/4152116453593918652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/concatenation-in-sql-using-for-xml-path.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4152116453593918652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/4152116453593918652'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/concatenation-in-sql-using-for-xml-path.html' title='Concatenation in SQL, Using For XML PATH(), Concatenate more than one rows in one field'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-s1nnn_g1LSw/TZ6r9nov11I/AAAAAAAAAIs/AuaS5XVXAlw/s72-c/Figure1.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-8629426079169749808</id><published>2011-04-06T02:48:00.000-07:00</published><updated>2011-04-06T02:50:46.062-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>List all the table in given database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;Think that you have a database more than 1-2 hundred database tables and you want to get list of all the tables in particular database. I was working on a project with more than 356 table and required to get the list of all the table with column names,  column types and length of data type so first I searched for list of table finding query and it give me different different result.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;Then I thought let me write a quick post about all the available query which can list all the tables from specific database.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;For a demo purpose I have created only 2 tables in one database and write a query for quick result and better image&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;Let's check one by one.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;SELECT&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt; * FROM information_schema.tables&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;Above query will return the data from information_schema table. It has only tables related info.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;look at the result with below screen shot&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-RUpHcDkoe9o/TZw2K8sauTI/AAAAAAAAAIQ/uAlFGHwleH4/s1600/figure+1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="61" src="http://1.bp.blogspot.com/-RUpHcDkoe9o/TZw2K8sauTI/AAAAAAAAAIQ/uAlFGHwleH4/s320/figure+1.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;SELECT&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt; * FROM sysobjects WHERE xtype='U'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;Above query will retrieve result from system object table which have all the information related to database like Primary Key, Stored Procedure, User table etc....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;look at the result with below screen shot&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://3.bp.blogspot.com/-57E6AXHKfb8/TZw2LD06OZI/AAAAAAAAAIU/Oz9rM9P3HJQ/s1600/figure+2.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="50" src="http://3.bp.blogspot.com/-57E6AXHKfb8/TZw2LD06OZI/AAAAAAAAAIU/Oz9rM9P3HJQ/s640/figure+2.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;SELECT&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt; * FROM Sys.Tables&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;Above query get the result along with object_id which will be very useful for join if you want to get column names etc. This object id will be tied with other table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;look at the result with below screen shot&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-6tF6DKQlyu4/TZw2LiwjEMI/AAAAAAAAAIY/pA18HnvAOWk/s1600/figure+4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="52" src="http://4.bp.blogspot.com/-6tF6DKQlyu4/TZw2LiwjEMI/AAAAAAAAAIY/pA18HnvAOWk/s640/figure+4.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;exec&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span lang=""&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt; sp_msforeachtable 'print ''?'''&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;Above query is little bit different than all other options. It will simply prints table name on the screen rather than returning a result in table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;look at the result with below screen shot&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-xiI1omHF7Ro/TZw2KWSNz9I/AAAAAAAAAIM/6svTzo31ziE/s1600/figure+5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-xiI1omHF7Ro/TZw2KWSNz9I/AAAAAAAAAIM/6svTzo31ziE/s1600/figure+5.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/8629426079169749808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/list-all-table-in-given-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8629426079169749808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8629426079169749808'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/list-all-table-in-given-database.html' title='List all the table in given database'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-RUpHcDkoe9o/TZw2K8sauTI/AAAAAAAAAIQ/uAlFGHwleH4/s72-c/figure+1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-8440651579654767519</id><published>2011-04-02T13:54:00.000-07:00</published><updated>2011-04-02T13:54:00.461-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to use Rank( ), Dense_Rank( ) and Row_Number( ) function</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Understanding Row Number Function&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here we will see the Row_Number(), Rank() and Dense_Rank()&lt;br /&gt;function with details and example&lt;br /&gt;&lt;br /&gt;Look at the Figure 1 &amp;nbsp;which has some data and in next&lt;br /&gt;figure 2 we are going to explain about the use of above mentioned function.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/--r2pfXH0Rl8/TZXLazYgGgI/AAAAAAAAAHs/hfU0qOMiTtQ/s1600/Figure+1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="281" src="http://4.bp.blogspot.com/--r2pfXH0Rl8/TZXLazYgGgI/AAAAAAAAAHs/hfU0qOMiTtQ/s320/Figure+1.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Above figure has query and result we can see that there are 14&lt;br /&gt;rows with column jobid, job_disc, minimum value and maximum&lt;br /&gt;value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now see figure 2&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-HPXLZ2cLRQE/TZXLgldGEaI/AAAAAAAAAHw/NJ6UR6ImMdI/s1600/Figure+2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="307" src="http://2.bp.blogspot.com/-HPXLZ2cLRQE/TZXLgldGEaI/AAAAAAAAAHw/NJ6UR6ImMdI/s320/Figure+2.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Using ROW_NUMBER() Function&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In figure 2 we can see the result of ROW_NUMBER() function, it just a sequential order starts from 1 to the number of rows returns within a result set.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Using RANK() Function&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In figure 2 we can see the result of RANK() function, If result of two or more rows are same then it will give same rank and put a gap of repeated no of rows in next sequential number for next row. As we can see in figure 2 for row number 2,3 and 4 has same rank as 2, and for row number 5 it direct assign rank 5 and eliminate rank 3 and 4 because it's repeated in previous row.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Using DENSE_RANK() Function&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In figure 2 we can see the result of DENSE_RANK() function, if result of two or more rows are same then it will assign same rank but for the next rank of next row it will not put any gap and assign continuous number to the next rank of next row. Like above example it will not eliminate rank 3 and 4. It will assign rank 3 for row number 5th.&lt;br /&gt;&lt;br /&gt;Enjoy Reading ..........&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/8440651579654767519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/how-to-use-rank-denserank-and-rownumber.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8440651579654767519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8440651579654767519'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/how-to-use-rank-denserank-and-rownumber.html' title='How to use Rank( ), Dense_Rank( ) and Row_Number( ) function'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/--r2pfXH0Rl8/TZXLazYgGgI/AAAAAAAAAHs/hfU0qOMiTtQ/s72-c/Figure+1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-9030435694591202598</id><published>2011-04-01T21:27:00.000-07:00</published><updated>2011-04-01T21:27:00.424-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Find All The Database Name in SQL SERVER</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Get all the available database in SQL Server, using following command.&lt;br /&gt;&lt;br /&gt;Following all the command will list all the database on SQL Server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--In SQL Server 2008&lt;br /&gt;&lt;br /&gt;--This is the Stored Procedure which will retrieve database name and size in kb and remark&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;Exec sp_databases&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-XJn1MR3w2O4/TZVirKQV7oI/AAAAAAAAAHY/08Ym4X0AOII/s1600/Figure+1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-XJn1MR3w2O4/TZVirKQV7oI/AAAAAAAAAHY/08Ym4X0AOII/s1600/Figure+1.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This stored procedure will retrieve more column then previous sp and return size in mb rather than kb.&lt;br /&gt;And owner of db, created date, and status of the database like status, updatability, useraccessibility etc.&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;Exec sp_helpdb&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/-iR_2VM33SUQ/TZViv9u2u_I/AAAAAAAAAHc/HZruF5yhdmg/s1600/Figure+2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="93" src="http://1.bp.blogspot.com/-iR_2VM33SUQ/TZViv9u2u_I/AAAAAAAAAHc/HZruF5yhdmg/s320/Figure+2.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and finally below 2 sps will retrieve detailed information about the database mostly in technical terms.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Technically terms in the sense dbid,status, file path etc.&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;Select * From sys.databases&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-DaR7Y5n2r1c/TZViz8GVASI/AAAAAAAAAHg/olR6NV030tc/s1600/Figure+3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="99" src="http://4.bp.blogspot.com/-DaR7Y5n2r1c/TZViz8GVASI/AAAAAAAAAHg/olR6NV030tc/s320/Figure+3.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;Select * From sys.sysdatabases&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-xIhXA5o1ITc/TZVi3zkgBNI/AAAAAAAAAHk/TYNjBgtq1Cs/s1600/Figure+4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="88" src="http://2.bp.blogspot.com/-xIhXA5o1ITc/TZVi3zkgBNI/AAAAAAAAAHk/TYNjBgtq1Cs/s320/Figure+4.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/9030435694591202598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/find-all-database-name-in-sql-server.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/9030435694591202598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/9030435694591202598'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/find-all-database-name-in-sql-server.html' title='Find All The Database Name in SQL SERVER'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-XJn1MR3w2O4/TZVirKQV7oI/AAAAAAAAAHY/08Ym4X0AOII/s72-c/Figure+1.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-7579650112811947658</id><published>2011-04-01T01:30:00.000-07:00</published><updated>2011-04-01T01:30:12.202-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>A new way to communicate -- April fool by google 2011</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;The mouse and keyboard were invented before the Internet even existed. Since then, countless technological advancements have allowed for much more efficient human computer interaction. Why then do we continue to use outdated technology? Introducing Gmail Motion -- now you can control Gmail with your body.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See here &amp;nbsp;&lt;a href="https://mail.google.com/mail/help/motion.html"&gt;https://mail.google.com/mail/help/motion.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/7579650112811947658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/new-way-to-communicate-april-fool-by.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/7579650112811947658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/7579650112811947658'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/04/new-way-to-communicate-april-fool-by.html' title='A new way to communicate -- April fool by google 2011'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-8476828069249141961</id><published>2011-03-31T03:15:00.000-07:00</published><updated>2011-03-31T23:59:21.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>How To Generate Rich Text Box using Javascript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://www.codeproject.com/script/Articles/BlogArticleList.aspx?amid=3692204" rel="tag" style="display: none;"&gt;CodeProject&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Screenshot for Editor&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Rich Text entered into RTB&lt;/div&gt;&lt;div style="margin-left: 1em; margin-right: 1em; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-S9lLY2cIB4w/TZRTrPc-RgI/AAAAAAAAAHU/Bm70VREcouY/s1600/rtbhtml.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; color: black;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-aNF25ugtkgI/TZRTo9s_35I/AAAAAAAAAHQ/Akb-kiMIm8Y/s1600/rtbdesign.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="140" src="http://4.bp.blogspot.com/-aNF25ugtkgI/TZRTo9s_35I/AAAAAAAAAHQ/Akb-kiMIm8Y/s320/rtbdesign.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;HTML in RTB&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-S9lLY2cIB4w/TZRTrPc-RgI/AAAAAAAAAHU/Bm70VREcouY/s1600/rtbhtml.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="138" src="http://3.bp.blogspot.com/-S9lLY2cIB4w/TZRTrPc-RgI/AAAAAAAAAHU/Bm70VREcouY/s320/rtbhtml.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://mybloggingstuff.com/download/FreeTextEditor.zip"&gt;Download project&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;If you are developing any site and in you site some section need user input in Richtext format then you can't use textarea because it's limitation is there. In market there are lots of control available freely and paid as well. But have you think ever how to develop our own text editor, so we can customize as per our choice, need. There is not Dll limitation.  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Today I will show you how to develop your Richtext Box using Javascript and HTML with CSS.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;I will not develop complete Richtext box here, but some basic of the Richtext Box and left remaining things for your exercise.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;Add one HTML page to your  project.&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;Then in head section add below style for DropDown list &lt;/b&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;style type="text/css" media="screen,print"&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;.select&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;background-color:#CCCCCC;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;border-width:1px;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;font-family:Calibri,Verdana, Tahoma;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;margin:0;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;font-size:10px;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/style&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;Add this line too in head section &lt;/b&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;script type="text/javascript" src="Js/encoder.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;i&gt;This is the file which encode and decode HTML tag to toggle between Design mode and HTML mode.&lt;/i&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;Add below code also inside head tag &lt;/b&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;function Set()  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;getIFrameDocument("textEditor").designMode = "On";&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;getIFrameDocument("textEditor").focus();&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;function getIFrameDocument(editor)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;// If Fire fox Mozilla&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById(editor).contentDocument)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;return document.getElementById(editor).contentDocument;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;// If Internet Explorer  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;// IE&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;return document.frames[editor].document;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;// Set function to set the design mode on and focus as well. This function will get call once page loaded successfully.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;// getIFrameDocument function will be used to check it's an IE or Fire Fox.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;This is the another Javascript code snippets which will be used to edit the document text as per our command  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;add it to the head tag&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;var isDesignMode = true;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;function fontEdit(command, y)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;switch (command)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'bold':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('bold').src.toString().indexOf("over") != -1)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('bold').src = "images/bold.gif";&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('bold').src = "images/bold.over.gif";&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'italic':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('italic').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('italic').src = 'images/italic.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('italic').src = 'images/italic.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'underline':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('underline').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('underline').src = 'images/underline.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('underline').src = 'images/underline.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'justifyleft':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('justifyleft').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifyleft').src = 'images/justifyleft.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifyleft').src = 'images/justifyleft.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'justifycenter':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('justifycenter').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifycenter').src = 'images/justifycenter.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifycenter').src = 'images/justifycenter.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'justifyright':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('justifyright').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifyright').src = 'images/justifyright.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('justifyright').src = 'images/justifyright.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'insertorderedlist':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('insertorderedlist').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('insertorderedlist').src = 'images/numberedlist.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('insertorderedlist').src = 'images/numberedlist.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'insertunorderedlist':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('insertunorderedlist').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('insertunorderedlist').src = 'images/bulletedlist.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('insertunorderedlist').src = 'images/bulletedlist.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'outdent':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('outdent').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('outdent').src = 'images/outdent.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('outdent').src = 'images/outdent.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'indent':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (document.getElementById('indent').src.toString().indexOf('over') != -1)&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('indent').src = 'images/indent.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('indent').src = 'images/indent.over.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;case 'default':&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;break;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;getIFrameDocument("textEditor").execCommand(command, "", y);&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;textEditor.focus();&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;function ChangeMode()  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;if (isDesignMode == true)  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;isDesignMode = false;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('mode').src = 'images/mode.html.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('mode').title = 'HTML View';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Encoder.EncodeType = "entity";&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;var encoded = Encoder.htmlEncode(getIFrameDocument("textEditor").body.innerHTML);&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;getIFrameDocument("textEditor").body.innerHTML = encoded;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;else  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;{&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;isDesignMode = true;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('mode').src = 'images/mode.design.gif';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;document.getElementById('mode').title = 'Design View';&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;var decoded = Encoder.htmlDecode(getIFrameDocument("textEditor").body.innerHTML);&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;getIFrameDocument("textEditor").body.innerHTML = decoded;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;}&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Now javascript is over and we will add HTML code to the page.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Before that we will code Set function on page load event&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;like this &lt;br /&gt;&lt;div class="code"&gt;&amp;lt;body onload="Set()"&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;b&gt;And code is as below.&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;div style="background-color:#CCCCCC;width:500px;"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('bold')"&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="bold" src="images/bold.gif" alt="Bold" title="Bold" style="height: 20px; width: 21px;border:none;"/&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('italic')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="italic" src="images/italic.gif" alt="" title="Italic" style="height: 20px; width: 21px;border:none;"/&amp;gt;    &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('underline')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="underline" src="images/underline.gif" alt="" title="Underline" style="height: 20px; width: 21px;border:none;"/&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="sep1" src="images/sep.gif" alt="" style="height: 16px; width: 1px;border:none;" /&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('justifyleft')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="justifyleft" src="images/justifyleft.gif" alt="" title="Justify Left" style="height: 20px; width: 21px;border:none;" /&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('justifycenter')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="justifycenter" src="images/justifycenter.gif" alt="" title="Justify Center" style="height: 20px; width: 21px;border:none;"/&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('justifyright')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="justifyright" src="images/justifyright.gif" alt="" title="Justify Right" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="sep2" src="images/sep.gif" alt="" style="height: 16px; width: 1px;border:none;" /&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('insertorderedlist')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="insertorderedlist" src="images/numberedlist.gif" alt="" title="Order List" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('insertunorderedlist')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="insertunorderedlist" src="images/bulletedlist.gif" alt="" title="Bullets List" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('outdent')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="outdent" src="images/outdent.gif" alt="" title="Outdent" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="javascript:fontEdit('indent')"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="indent" src="images/indent.gif" alt="" title="Indent" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;a onclick="ChangeMode()"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;img id="mode" src="images/mode.design.gif" alt="" title="Design View" style="height: 20px; width: 21px;border:none;" /&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/a&amp;gt;  &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;div style="background-color:#CCCCCC;width:497px;padding-left:3px;"&amp;gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;select id="fonts" class="select" onchange="fontEdit('fontname',this[this.selectedIndex].value)"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Arial"&amp;gt;Font&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Arial"&amp;gt;Arial&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Courier New"&amp;gt;Courier New&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Monotype Corsiva"&amp;gt;Monotype&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Tahoma"&amp;gt;Tahoma&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="Times"&amp;gt;Times&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/select&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;select id="size" class="select" onchange="fontEdit('fontsize',this[this.selectedIndex].value)"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="0"&amp;gt;Size&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="1"&amp;gt;1&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="2"&amp;gt;2&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="3"&amp;gt;3&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="4"&amp;gt;4&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="5"&amp;gt;5&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/select&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;select id="color" class="select" onchange="fontEdit('ForeColor',this[this.selectedIndex].value)"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option value="color"&amp;gt;Color&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option style="color: black;" value="black"&amp;gt;Black&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option style="color: red;" value="red"&amp;gt;Red&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option style="color: blue;" value="blue"&amp;gt;Bblue&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option style="color: green;" value="green"&amp;gt;Green&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;option style="color: #3b3b3b;" value="pink"&amp;gt;Pink&amp;lt;/option&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/select&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;iframe id="textEditor" style="width: 500px; height: 170px;" scrolling="no"&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&amp;lt;/iframe&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;That's it, and we are done.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Just run the html page and you can see a nice Rich Text Box.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;This code is tested in &lt;b&gt;IE 8.0&lt;/b&gt;, &lt;b&gt;Fire Fox 3.6.8 &lt;/b&gt;and &lt;b&gt;Google Chrome 10.0.648.204&lt;/b&gt;.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;There are some toolbar image quality issues that you can fix at your end.&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;So start improving Rich Text Box Editor and share it with our community over here.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/8476828069249141961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/how-to-generate-rich-text-box-using.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8476828069249141961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/8476828069249141961'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/how-to-generate-rich-text-box-using.html' title='How To Generate Rich Text Box using Javascript'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-aNF25ugtkgI/TZRTo9s_35I/AAAAAAAAAHQ/Akb-kiMIm8Y/s72-c/rtbdesign.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-1365970179181616603</id><published>2011-03-27T00:20:00.000-07:00</published><updated>2011-03-27T00:20:17.278-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Count Down Timer Using JavaScript.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;a href="http://mybloggingstuff.com/blogtools/count.zip"&gt;Download&amp;nbsp;Sample Timer&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;Sometimes we have seen on some site that they are showing countdown timer for some particular event. Main purpose of countdown timer is to calculate reaming time for that event in reverse direction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;It will mostly display in Days-Hours-Minutes and Seconds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;We can change this format and also look and feel for countdown timer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;I have created one small countdown timer using JavaScript language just go through and let me know if you need more clarification on it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN"&gt;&lt;o:p&gt;&amp;nbsp;Screen shot of Timer&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-hmijpdToMuk/TY7hJ05SiCI/AAAAAAAAAGk/ERX7OolRNeo/s1600/First.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="45" src="http://2.bp.blogspot.com/-hmijpdToMuk/TY7hJ05SiCI/AAAAAAAAAGk/ERX7OolRNeo/s320/First.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;After 40 seconds it will show like below figure. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/-ikElw_QekPE/TY7hOiKVA3I/AAAAAAAAAGo/iQyLhJwl9qI/s1600/Second.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="43" src="http://3.bp.blogspot.com/-ikElw_QekPE/TY7hOiKVA3I/AAAAAAAAAGo/iQyLhJwl9qI/s320/Second.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;Here is the code and it's explanation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;style type="text/css"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;.head{font-weight:bold;font-size:25px;color:#00f;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;.text{font-weight:normal;font-size:20px;color:#222222;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;/style&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;!--&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;// Assign future date here in format of &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;dateFuture = new Date(2011,4,4,12,0,0);//Year-Month-Day-Hour-Minute-Seconds. Month starts from zero, 0 for jan and 11 for dec&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;function GetCount(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;dateNow = new Date();//grab current date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;amount = dateFuture.getTime() - dateNow.getTime();//calc milliseconds between dates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;delete dateNow;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;// time is already past&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;if(amount &amp;lt; 0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;document.getElementById('countbox').innerHTML="Now!";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;// date is still good&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;else{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;days=0;hours=0;mins=0;secs=0;out="";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;days=Math.floor(amount/86400);//days&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;amount=amount%86400;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;hours=Math.floor(amount/3600);//hours&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;amount=amount%3600;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;mins=Math.floor(amount/60);//minutes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;amount=amount%60;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;secs=Math.floor(amount);//seconds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;if (days != 0) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;out += "&amp;lt;span class='head'&amp;gt;"+days + "&amp;lt;/span&amp;gt; &amp;lt;span class='text'&amp;gt;day" + ((days != 1) ? "s" : "") + ",&amp;lt;/span&amp;gt; ";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;if (days != 0 || hours != 0) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;out += "&amp;lt;span&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;class='head'&amp;gt;"+hours + "&amp;lt;/span&amp;gt; &amp;lt;span class='text'&amp;gt;hour" + ((hours != 1) ? "s" : "") + ", &amp;lt;/span&amp;gt;";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;if (days != 0 || hours != 0 || mins != 0) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;out += "&amp;lt;span&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;class='head'&amp;gt;"+mins + "&amp;lt;/span&amp;gt; &amp;lt;span class='text'&amp;gt;minute" + ((mins != 1) ? "s" : "") + ", &amp;lt;/span&amp;gt;";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;out += "&amp;lt;span&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;class='head'&amp;gt;"+secs +"&amp;lt;/span&amp;gt; &amp;lt;span class='text'&amp;gt;seconds&amp;lt;/span&amp;gt;";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;document.getElementById('countbox').innerHTML=out;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//This function will call every one second, it's second param is milisecond&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-tab-count: 4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;setTimeout("GetCount()", 1000);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;window.onload=function(){GetCount();}//call when everything has loaded&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;//--&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;div id="countbox"&amp;gt;&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN" style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN;"&gt;&amp;lt;/html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;This is the output of above code&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;style type="text/css"&gt;.head{font-weight:bold;font-size:25px;color:#00f;} .text{font-weight:normal;font-size:20px;color:#222222;} &lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;script language="JavaScript" type="text/javascript"&gt;&lt;!-- // Assign future date here in format of  dateFuture = new Date(2011,4,4,12,0,0);//Year-Month-Day-Hour-Minute-Seconds. Month starts from zero, 0 for jan and 11 for dec function GetCount(){         dateNow = new Date();//grab current date   amount = dateFuture.getTime() - dateNow.getTime();//calc milliseconds between dates   delete dateNow;         // time is already past         if(amount &lt; 0){                 document.getElementById('countbox').innerHTML="Now!";         }         // date is still good         else{                 days=0;hours=0;mins=0;secs=0;out="";                 amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs                 days=Math.floor(amount/86400);//days                 amount=amount%86400;                 hours=Math.floor(amount/3600);//hours                 amount=amount%3600;                 mins=Math.floor(amount/60);//minutes                 amount=amount%60;                 secs=Math.floor(amount);//seconds                 if (days != 0)                  {                     out += "&lt;span class='head'&gt;"+days + "&lt;/span&gt; &lt;span class='text'&gt;day" + ((days != 1) ? "s" : "") + ",&lt;/span&gt; ";                 }                 if (days != 0 || hours != 0)                  {                     out += "&lt;span  class='head'&gt;"+hours + "&lt;/span&gt; &lt;span class='text'&gt;hour" + ((hours != 1) ? "s" : "") + ", &lt;/span&gt;";                 }                 if (days != 0 || hours != 0 || mins != 0)                  {                     out += "&lt;span  class='head'&gt;"+mins + "&lt;/span&gt; &lt;span class='text'&gt;minute" + ((mins != 1) ? "s" : "") + ", &lt;/span&gt;";                 }                 out += "&lt;span  class='head'&gt;"+secs +"&lt;/span&gt; &lt;span class='text'&gt;seconds&lt;/span&gt;";                 document.getElementById('countbox').innerHTML=out;                 //This function will call every one second, it's second param is milisecond     setTimeout("GetCount()", 1000);         } } window.onload=function(){GetCount();}//call when everything has loaded //--&gt;&lt;/script&gt;&lt;br /&gt;&lt;div id="countbox"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/1365970179181616603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/count-down-timer-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/1365970179181616603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/1365970179181616603'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/count-down-timer-using-javascript.html' title='Count Down Timer Using JavaScript.'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-hmijpdToMuk/TY7hJ05SiCI/AAAAAAAAAGk/ERX7OolRNeo/s72-c/First.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6752665155230102691.post-5451675497613924670</id><published>2011-03-05T05:11:00.000-08:00</published><updated>2013-05-04T23:11:01.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>Add Cross Tab Report in Crystal Reports Tutorials Part-5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This post is permanently moved at below URL&lt;br /&gt;&lt;br /&gt;&lt;a href="http://publisharticle.in/KB/CBCE292653D34/Add-Cross-Tab-Report-in-Crystal-Reports-Tutorials-Part-5"&gt;http://publisharticle.in/KB/CBCE292653D34/Add-Cross-Tab-Report-in-Crystal-Reports-Tutorials-Part-5&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myvsdotnetstuff.blogspot.com/feeds/5451675497613924670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/add-cross-tab-report-in-crystal-reports.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5451675497613924670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6752665155230102691/posts/default/5451675497613924670'/><link rel='alternate' type='text/html' href='http://myvsdotnetstuff.blogspot.com/2011/03/add-cross-tab-report-in-crystal-reports.html' title='Add Cross Tab Report in Crystal Reports Tutorials Part-5'/><author><name>Tarun Dudhatra</name><uri>https://plus.google.com/113744936708295252247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-K-09W86r7Wg/AAAAAAAAAAI/AAAAAAAAAYE/2tkY2y7hX3A/s512-c/photo.jpg'/></author><thr:total>6</thr:total></entry></feed>