<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-542354174311447542</atom:id><lastBuildDate>Tue, 10 Sep 2024 13:08:54 +0000</lastBuildDate><category>JavaScript</category><category>ASP.NET</category><category>ORACLE</category><category>C#.NET</category><category>DOTNET</category><category>General</category><category>SQL SERVER</category><category>Infragistics</category><category>JQuery</category><category>JSLint</category><title>Success within U</title><description>&lt;b&gt;&lt;i&gt;Actions May not always bring happiness, But there is no happiness without Action... &lt;/i&gt;&lt;/b&gt;</description><link>http://hspharic.blogspot.com/</link><managingEditor>noreply@blogger.com (hsp)</managingEditor><generator>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-4583721590047727425</guid><pubDate>Sat, 24 Jan 2015 01:59:00 +0000</pubDate><atom:updated>2015-02-06T07:04:02.451+05:30</atom:updated><title>JSLint – The Java Script Validator</title><description>
&lt;br /&gt;It is a Code Quality tool which makes our java script to be well formed.
&lt;br /&gt;JSLint takes a JavaScript source and scans it. If it finds a problem, it returns a message describing the problem and an approximate location within the source. The problem is not necessarily a syntax error, although it often is. JSLint looks at some style conventions as well as structural problems. It does not prove that your program is correct. It just provides another set of eyes to help spot problems.
&lt;br /&gt;What it does,
&lt;br /&gt;• Missing semicolons at the end of a line. 
&lt;br /&gt;• Missing curly braces in if, for, while, etc. 
&lt;br /&gt;• Code that is never run because of a return, throw, continue, or break. 
&lt;br /&gt;• Case statements in a switch that do not have a break statement. And more…
&lt;br /&gt;Using this tool, you can check all your JavaScript source code for common mistakes without actually running the script or opening the web page.
&lt;br /&gt;JSLint provides an online tool in which we can validate the scripts without installing any tool.
&lt;br /&gt;http://www.jslint.com/
&lt;br /&gt;&lt;a href = &quot;http://www.jslint.com/lint.html&quot; target = &quot;_blank&quot; style=&quot;color:navy; font-weight:bold&quot;&gt;Reference document&lt;/a&gt;&lt;strong&gt;&lt;u&gt;&lt;br /&gt;
&lt;br /&gt;JSLint plug-in for Visual Studio&lt;/u&gt;&lt;/strong&gt;JSLint.VS is Add-In for Visual Studio that provides errors in JavaScript during compiling enabling you to spend less time in browser catching bugs and typos.
&lt;br /&gt;For more details about the JSLint.VS, http://jslint.codeplex.com/
&lt;br /&gt;
&lt;!-- Test Ad --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:728px;height:90px&quot;
     data-ad-client=&quot;ca-pub-3069671712843031&quot;
     data-ad-slot=&quot;9445327305&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;</description><link>http://hspharic.blogspot.com/2015/01/jslint-java-script-validator.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-9045611777459415337</guid><pubDate>Thu, 12 Aug 2010 16:50:00 +0000</pubDate><atom:updated>2010-08-12T22:39:05.183+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JQuery</category><title>Show - Hide Elements using JQuery</title><description>We can use the following scripts for show / hide elements.&lt;br /&gt;&lt;u&gt;Hide Element&lt;/u&gt;&lt;br /&gt;Through CSS -&gt; $(selector).css(&quot;display&quot;,&quot;none&quot;) &lt;br /&gt;Through function -&gt; $(selector).hide()&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Show Element&lt;/u&gt;&lt;br /&gt;Through CSS -&gt; $(selector).css(&quot;display&quot;,&quot;&quot;) &lt;br /&gt;Through function -&gt; $(selector).show()&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Sample&lt;/u&gt;&lt;br /&gt;&lt;div style = &quot;background:lightgray;color:navy&quot;&gt; &lt;u&gt;&lt;span style=&quot;color:red&quot;&gt;Markup &lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&amp;lt;span class = &quot;blue&quot;&amp;gt;First&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;    &amp;lt;span class = &quot;red&quot;&amp;gt;Second&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;    &amp;lt;span class = &quot;blue&quot;&amp;gt;Third&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;    &amp;lt;span class = &quot;blue&quot;&amp;gt;Fourth&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;    &amp;lt;span class = &quot;green&quot;&amp;gt;Fifth&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style = &quot;background:lightgray;color:navy&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:red&quot;&gt;Scripts&lt;/span&gt;&lt;/u&gt;&lt;br /&gt; &lt;span style = &quot;color:green&quot;&gt;CSS usage&lt;/span&gt;&lt;br /&gt;    if ($(&quot;.red&quot;).is(&quot;:visible&quot;))&lt;br /&gt;    {&lt;br /&gt;        $(&quot;.red&quot;).css(&quot;display&quot;, &quot;none&quot;);        &lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        $(&quot;.red&quot;).css(&quot;display&quot;, &quot;&quot;);        &lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:green&quot;&gt;Prototype function&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;    if ($(&quot;.red&quot;).is(&quot;:visible&quot;))&lt;br /&gt;    {&lt;br /&gt;       $(&quot;.red&quot;).hide();&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;       $(&quot;.red&quot;).show();&lt;br /&gt;    }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Happy Scripting...</description><link>http://hspharic.blogspot.com/2010/08/show-hide-elements-using-jquery.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-7499608321639502730</guid><pubDate>Thu, 22 Jul 2010 17:21:00 +0000</pubDate><atom:updated>2010-07-22T22:58:37.739+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">JSLint</category><title>JSLint – The Java Script Validator</title><description>JSLint is a Code Quality tool which makes our java script to be well formed.&lt;br /&gt;JSLint takes a JavaScript source and scans it. If it finds a problem, it returns a message describing the problem and an approximate location within the source. The problem is not necessarily a syntax error, although it often is. JSLint looks at some style conventions as well as structural problems. It does not prove that your program is correct. It just provides another set of eyes to help spot problems.&lt;br /&gt;What it does,&lt;br /&gt;&lt;br /&gt;• Missing semicolons at the end of a line.&lt;br /&gt;• Missing curly braces in if, for, while, etc.&lt;br /&gt;• Code that is never run because of a return, throw, continue, or break.&lt;br /&gt;• Case statements in a switch that do not have a break statement. And more…&lt;br /&gt;&lt;br /&gt;Using this tool, you can check all your JavaScript source code for common mistakes without actually running the script or opening the web page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;JSLint provides an &lt;a href =&quot;http://www.jslint.com/&quot; target = &quot;_blank&quot; style = &quot;color:navy;font-weight:bold&quot;&gt;online tool&lt;/a&gt; in which we can validate the scripts without installing any tool.&lt;br /&gt;&lt;br /&gt;JSLint &lt;a href =&quot;http://www.jslint.com/lint.html&quot; target = &quot;_blank&quot; style = &quot;color:navy;font-weight:bold&quot;&gt;Reference document &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;text-decoration:underline&quot;&gt;JSLint plug-in for Visual Studio&lt;/span&gt;&lt;br /&gt;JSLint.VS is Add-In for Visual Studio that provides errors in JavaScript during compiling enabling you to spend less time in browser catching bugs and typos.&lt;br /&gt;For more details about the JSLint.VS, &lt;a href =&quot;http://jslint.codeplex.com/&quot; target = &quot;_blank&quot; style = &quot;color:navy;font-weight:bold&quot;&gt;Click here &lt;/a&gt; &lt;br /&gt;&lt;br /&gt;Happy Learning…</description><link>http://hspharic.blogspot.com/2010/07/jslint-java-script-validator.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-7569716280652308208</guid><pubDate>Wed, 21 Jul 2010 08:03:00 +0000</pubDate><atom:updated>2010-07-21T13:40:24.655+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">General</category><title>Useful Cheat Sheets</title><description>Cheat sheet is just a pocket reference. We can have the summary about the technology like Regular Expression, SQL Server, HTML &amp; CSS etc. in a single sheet. Get the &lt;b&gt;&lt;u&gt;&lt;a href = &quot;http://www.addedbytes.com/cheat-sheets/?q=cheat-sheets&quot; target = &quot;_blank&quot; style = &quot;color:navy&quot;&gt; Cheat Sheets &lt;/a&gt;&lt;/u&gt;&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;Happy Learning....</description><link>http://hspharic.blogspot.com/2010/07/useful-cheat-sheets.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-3748932985749249714</guid><pubDate>Tue, 20 Jul 2010 09:11:00 +0000</pubDate><atom:updated>2010-07-21T13:41:36.066+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DOTNET</category><title>.NET Framework 4 &amp; Extensions Poster</title><description>&lt;b&gt;.NET Framework 4 &amp; Extensions Poster&lt;/b&gt;&lt;br /&gt;Click &lt;a href = &#39;http://download.microsoft.com/download/E/6/A/E6A8A715-7695-493C-8CFA-8E0C23A4BE1D/098-115952-NETFX4-Poster.pdf&#39; targer = &quot;_blank&quot; style = &quot;color:navy&quot;&gt;here &lt;/a&gt; to get the .NET Framework 4 &amp; Extension&#39;s Namespace details.&lt;br /&gt;&lt;br /&gt;Happy Learning...</description><link>http://hspharic.blogspot.com/2010/07/net-framework-4-extensions-poster.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-635053296992041092</guid><pubDate>Tue, 12 Jan 2010 17:26:00 +0000</pubDate><atom:updated>2010-01-12T22:58:03.912+05:30</atom:updated><title>Microsoft Exam test application</title><description>Microsoft Exam test application. Try and seek knowledge..&lt;br /&gt;&lt;br /&gt;&lt;a href = &quot;http://www.microsoft.com/click/areyoucertifiable/default.aspx&quot; target = &quot;_blank&quot;&gt;Are You Certifiable&lt;/a&gt;</description><link>http://hspharic.blogspot.com/2010/01/microsoft-exam-test-application.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-5815805448953665997</guid><pubDate>Fri, 08 Jan 2010 02:16:00 +0000</pubDate><atom:updated>2010-01-08T07:51:39.673+05:30</atom:updated><title>Column Moving in Infragistics Grid</title><description>Infragistics provides an interesting feature in UltraWebGrid called Column moving. This feature can be done either on Server side or Client Side. &lt;br /&gt;You can implement this column moving by including the following statement in UltrawebGrid’s Initialize Layout event.&lt;br /&gt;&lt;div style = &quot;background-color:lightgray; color:navy; font:tahoma&quot;&gt;&lt;br /&gt;Private Sub UltraWebGridClaimants_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGridClaimants.InitializeLayout&lt;br /&gt;With UltraWebGridClaimants.DisplayLayout&lt;br /&gt;.XmlLoadOnDemandType = Infragistics.WebUI.UltraWebGrid.XmlLoadOnDemandType.Synchronous&lt;br /&gt;.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header&lt;br /&gt;.AllowColumnMovingDefault = Infragistics.WebUI.UltraWebGrid.AllowColumnMoving.OnClient&lt;br /&gt;.Browser = Infragistics.WebUI.UltraWebGrid.BrowserLevel.Xml&lt;br /&gt;End With&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Also you can prevent some columns to not being movable. For this add the following script functions in your script file&lt;br /&gt;&lt;div style = &quot;background-color:lightgray; color:navy; font:tahoma&quot;&gt;&lt;br /&gt;// Prevent column moving for &quot;Select&quot; column.&lt;br /&gt;  function onBeforeColumnMove(grid, columnId)&lt;br /&gt;  {&lt;br /&gt;    if(columnId != undefined)&lt;br /&gt;    {&lt;br /&gt;      var column = igtbl_getColumnById(columnId);&lt;br /&gt;      if(column.Key == &quot;Select&quot;)&lt;br /&gt;        return true;    &lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  // Prevent column moving for &quot;Select&quot; column.&lt;br /&gt;  function onColumnDrag(grid, columnId, targetColumnId)&lt;br /&gt;  {&lt;br /&gt;    if(targetColumnId != undefined)&lt;br /&gt;    {&lt;br /&gt;      var column = igtbl_getColumnById(targetColumnId);&lt;br /&gt;      if(column.Key == &quot;Select&quot;)&lt;br /&gt;        return true;    &lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;And call these functions in appropriate events on Initialize Layout.&lt;br /&gt;&lt;div style = &quot;background-color:lightgray; color:navy; font:tahoma&quot;&gt;&lt;br /&gt;Private Sub UltraWebGridClaimants_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGridClaimants.InitializeLayout&lt;br /&gt;With UltraWebGridClaimants.DisplayLayout&lt;br /&gt;.XmlLoadOnDemandType = Infragistics.WebUI.UltraWebGrid.XmlLoadOnDemandType.Synchronous&lt;br /&gt;.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header&lt;br /&gt;.AllowColumnMovingDefault = Infragistics.WebUI.UltraWebGrid.AllowColumnMoving.OnClient&lt;br /&gt;.Browser = Infragistics.WebUI.UltraWebGrid.BrowserLevel.Xml&lt;br /&gt;.ClientSideEvents.BeforeColumnMoveHandler = &quot;onBeforeColumnMove&quot;&lt;br /&gt;.ClientSideEvents.ColumnDragHandler = &quot;onColumnDrag&quot;&lt;br /&gt;End With&lt;br /&gt;&lt;/div&gt; &lt;br /&gt;Happy Coding….</description><link>http://hspharic.blogspot.com/2010/01/column-moving-in-infragistics-grid.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-4876708040834161840</guid><pubDate>Wed, 22 Jul 2009 17:32:00 +0000</pubDate><atom:updated>2009-07-22T23:27:40.840+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Call ServerSide Method from Javascript</title><description>&lt;strong&gt;Call ServerSide Method from Javascript &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Sometimes we would require to get data from server without postback the page. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example, we need to validate the Date of Birth field in which the value should not be greater than current date. In this scenario, we need to get the server date and then check the entered value with current date.&lt;br /&gt;&lt;br /&gt;For doing this without postback, we can move into PageMethods concept in AJAX.&lt;br /&gt;&lt;br /&gt;* Create a Method with System.Web.Services.WebMethod Attribute in your code behind.&lt;br /&gt;&lt;div style = &quot;background-color:#6699ff;color:navy&quot;&gt;&lt;br /&gt;[System.Web.Services.WebMethod]&lt;br /&gt;        public static string GetDate()&lt;br /&gt;        {&lt;br /&gt;            return DateTime.Now.ToShortDateString();&lt;br /&gt;        }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;* Add the following scripts within &amp;lt;body&amp;gt; Tag&lt;br /&gt;&lt;div style = &quot;background-color:#6699ff;color:navy&quot;&gt;&lt;br /&gt;&amp;lt;script type = &quot;text/javascript&quot;&amp;gt;&lt;br /&gt;    function callMethod() {&lt;br /&gt;        PageMethods.GetDate(onComplete, onError);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    function onComplete(result) {&lt;br /&gt;        alert(&#39;Today : &#39; + result);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    function onError(result) {&lt;br /&gt;        alert(result);&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;* Add ScriptManager and make sure the EnablePageMethods should be True.&lt;br /&gt;&lt;div style = &quot;background-color:#6699ff;color:navy&quot;&gt;&lt;br /&gt;&amp;lt;asp:ScriptManager ID = &quot;scr&quot; runat = &quot;server&quot; EnablePageMethods = &quot;true&quot;&amp;gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;* Call the callMethod from your button click.&lt;br /&gt;&lt;div style = &quot;background-color:#6699ff;color:navy&quot;&gt;&lt;br /&gt;&amp;lt;input type = &quot;button&quot; value = &quot;Validate&quot; onclick = &quot;callMethod();&quot; /&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now you can get the server value without postback....&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Things we should keep in mind for doing this:&lt;/u&gt;&lt;br /&gt;&lt;font color = &quot;red&quot;&gt;&lt;br /&gt;* The server side method should be static method.&lt;br /&gt;* EnablePageMethods should be true in ScriptManager.&lt;br /&gt;* Scripts should be included within &amp;lt;body&amp;gt; tag, not in &amp;lt;head&amp;gt;. &lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Happy coding...</description><link>http://hspharic.blogspot.com/2009/07/call-serverside-method-from-javascript.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-5707257976211178186</guid><pubDate>Wed, 22 Jul 2009 17:15:00 +0000</pubDate><atom:updated>2009-07-22T23:01:38.060+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">General</category><title>FREE Cheat Sheets for Developers</title><description>&lt;strong&gt;FREE Cheat Sheets for Developers&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href = &quot;#&quot; onclick = &quot;window.open(&#39;http://refcardz.dzone.com/&#39;,&#39;RefCard&#39;,&#39;Width=1000, height = 600&#39;)&quot;&gt;Here&lt;/a&gt; is very useful link in which we can download packet reference books for ASP.Net, Java etc...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;you can find &lt;b&gt;Core ASP.Net Refcard&lt;/b&gt; &lt;br /&gt;&lt;a href = &quot;#&quot; onclick = &quot;window.open(&#39;http://refcardz.dzone.com/refcardz/core-aspnet&#39;,&#39;RefCard&#39;,&#39;Width=1000, height = 600&#39;)&quot;&gt;here &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Its free but you have to register...&lt;br /&gt;&lt;br /&gt;Try it!&lt;br /&gt;&lt;br /&gt;Happy surfing...</description><link>http://hspharic.blogspot.com/2009/07/free-cheat-sheets-for-developers.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-6700890660352297573</guid><pubDate>Thu, 18 Jun 2009 11:25:00 +0000</pubDate><atom:updated>2009-06-18T17:47:21.841+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">General</category><title>Convert your favorite feeds (Blogs) to PDF and Portable</title><description>&lt;strong&gt;Convert your favorite feeds (Blogs) to PDF and get via Email frequently&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;a href = &#39;#&#39; onclick = &quot;window.open(&#39;http://www.tabbloid.com&#39;,&#39;Tabbloid&#39;,&#39;width=600, height = 400,resizable=yes,status=yes, menubar=yes,toolbar=yes&#39;)&quot; title = &#39;Tabbloid&#39;&gt;Tabbloid &lt;/a&gt; is an online tool that converts the feeds (Blogs) into PDF. Also we can add feeds as much as you want and it will deliver to your email according to the delivery options you set in &lt;a href = &#39;#&#39; onclick = &quot;window.open(&#39;http://www.tabbloid.com&#39;,&#39;Tabbloid&#39;,&#39;width=600, height = 400,resizable=yes,status=yes, menubar=yes,toolbar=yes&#39;)&quot; title = &#39;Tabbloid&#39;&gt;tabbloid &lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src =&quot;http://hspharic.googlepages.com/tabbloid.JPG&quot; border = &quot;0&quot; alt = &quot;Tabbloid&quot; onclick = &quot;window.open(&#39;http://www.tabbloid.com&#39;,&#39;Tabbloid&#39;,&#39;width=600, height = 400,resizable=yes,status=yes, menubar=yes,toolbar=yes&#39;)&quot; style = &quot;cursor:hand&quot; /&gt;</description><link>http://hspharic.blogspot.com/2009/06/turn-your-favorite-feeds-blogs-to-pdf.html</link><author>noreply@blogger.com (hsp)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-8748714089643178849</guid><pubDate>Fri, 12 Jun 2009 09:18:00 +0000</pubDate><atom:updated>2009-06-12T17:07:49.019+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Blinking Message in window Status bar</title><description>&lt;b&gt;Blinking Message in Window Status Bar&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here is the stuff regarding the blinking message displaying in browser window status bar.&lt;br /&gt;&lt;br /&gt;&lt;div style = &quot;background:#E9F0F5;border: 1px solid #689ec1;font-family:&#39;Bookman Old Style&#39;,Tahoma;&quot;&gt;&lt;br /&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;var cnt = 0;var timer = 0;&lt;br /&gt;var msg  = &quot;Success within You (:-)&quot;;&lt;br /&gt;var waitTimer;&lt;br /&gt;var waitUpto;&lt;br /&gt;&lt;span style = &quot;color:lightgreen&quot;&gt;// To Wait some milliseconds after the message blinking completed&lt;/span&gt;&lt;br /&gt;function sleep(mSecs)&lt;br /&gt;{&lt;br /&gt; window.clearTimeout(timer);&lt;br /&gt; var dt = new Date();&lt;br /&gt; waitUpto = dt.getTime() + mSecs; &lt;br /&gt; wait(); &lt;br /&gt;}&lt;br /&gt;&lt;span style = &quot;color:lightgreen&quot;&gt;// This will start again the message blinking.&lt;/span&gt;&lt;br /&gt;function wait()&lt;br /&gt;{&lt;br /&gt; var now = new Date();&lt;br /&gt; if (now.getTime() &amp;gt; waitUpto)&lt;br /&gt; {&lt;br /&gt;  window.status = &quot;&quot;;&lt;br /&gt;  cnt = 0;&lt;br /&gt;  statusbar(); &lt;br /&gt;  window.clearTimeout(waitTimer);&lt;br /&gt; }&lt;br /&gt; else  &lt;br /&gt;  waitTimer = window.setTimeout(&quot;wait()&quot;, 100);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style = &quot;color:lightgreen&quot;&gt;// To show message in blinking style in status bar.&lt;/span&gt;&lt;br /&gt;function statusbar()&lt;br /&gt;{&lt;br /&gt; if(cnt == msg.length)&lt;br /&gt; {&lt;br /&gt;  sleep(2000);  &lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;  window.status += msg.charAt(cnt);&lt;br /&gt;  cnt++;&lt;br /&gt;  timer = window.setTimeout(&quot;statusbar()&quot;,100);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;statusbar();&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You can check the implementation example &lt;a href = &quot;#&quot; onclick = &quot;window.open(&#39;http://hspharic.googlepages.com/clipboard.htm&#39;,&#39;StatusBar&#39;,&#39;width=600, height=600&#39;)&quot; &gt; here &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Happy scripting...</description><link>http://hspharic.blogspot.com/2009/06/blinking-message-in-window-status-bar.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-1096602933312531456</guid><pubDate>Thu, 18 Dec 2008 10:39:00 +0000</pubDate><atom:updated>2008-12-18T16:18:09.028+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL SERVER</category><title>Get Table structure from XML in SQL Server</title><description>&lt;strong&gt;&lt;u&gt;Get Table structure from XML in SQL Server.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here is the script to get the table view from XML Document using OPENXML.&lt;br /&gt;&lt;br /&gt;&lt;div style = &#39;background-color:#003000; color : white;&#39;&gt;&lt;br /&gt;declare @doc varchar(1000)&lt;br /&gt;declare @docHandle int&lt;br /&gt;set @doc = &#39;&amp;lt;Employee-Details&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Firstname&amp;gt;Hariharasudhan&amp;lt;/Firstname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Lastname&amp;gt;Chandiramurthy&amp;lt;/Lastname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DOB&amp;gt;11-July-1982&amp;lt;/DOB&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Firstname&amp;gt;Suguna&amp;lt;/Firstname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Lastname&amp;gt;Ramamurthy&amp;lt;/Lastname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DOB&amp;gt;02-September-1979&amp;lt;/DOB&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Firstname&amp;gt;Pasupathy&amp;lt;/Firstname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Lastname&amp;gt;Thandavan&amp;lt;/Lastname&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DOB&amp;gt;01-August-1982&amp;lt;/DOB&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Employee-Details&amp;gt;&#39;&lt;br /&gt;exec sp_xml_preparedocument @docHandle output, @doc&lt;br /&gt;select * from openxml (@docHandle, &#39;/Employee-Details/Employee&#39;, 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;with (FirstName varchar(100) &#39;./Firstname/text()&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, LastName varchar(100) &#39;./Lastname/text()&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, Date_Of_Birth varchar(100) &#39;./DOB/text()&#39;) &lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/12/get-table-structure-from-xml-in-sql.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-4604390320349530446</guid><pubDate>Wed, 17 Dec 2008 09:22:00 +0000</pubDate><atom:updated>2008-12-17T15:06:35.307+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Check the given Url is Valid</title><description>&lt;strong&gt;&lt;u&gt;Check the given Url is Valid&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In some situation we want to check the particular url (eg:google.com) is valid or not through programatically.&lt;br /&gt;&lt;br /&gt;Here is the code for checking the url.&lt;br /&gt;&lt;span style = &#39;color:#006400&#39;&gt;&lt;strong&gt;&lt;u&gt;urlcheck.aspx&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style = &#39;background-color:#7d8da4; color:#ffffff;&#39;&gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;asp:TextBox ID = &quot;txtUrl&quot; runat = &quot;server&quot; Text = &quot;http:\\&quot;&amp;gt;&lt;br /&gt;    &amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;    &amp;lt;asp:Button ID = &quot;btnCheck&quot; runat = &quot;server&quot; OnClick = &quot;ButtonClick&quot; Text = &quot;Check&quot; /&amp;gt;&lt;br /&gt;    &amp;lt;asp:Label ID = &quot;lblMsg&quot; runat = &quot;server&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style = &#39;color:#006400&#39;&gt;&lt;strong&gt;&lt;u&gt;urlcheck.aspx.cs&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style = &#39;background-color:#7d8da4; color:#ffffff;&#39;&gt;&lt;br /&gt;    protected void ButtonClick(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            System.Net.HttpWebRequest objReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(txtUrl.Text);&lt;br /&gt;            System.Net.HttpWebResponse objRes = (System.Net.HttpWebResponse)objReq.GetResponse();&lt;br /&gt;            if (objRes.StatusCode == System.Net.HttpStatusCode.OK)&lt;br /&gt;            {&lt;br /&gt;                lblMsg.Text = &quot;Url is Valid&quot;;&lt;br /&gt;                lblMsg.ForeColor = System.Drawing.Color.SeaGreen;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                lblMsg.Text = &quot;Url is not Valid&quot;;&lt;br /&gt;                lblMsg.ForeColor = System.Drawing.Color.Red;&lt;br /&gt;            }&lt;br /&gt;            objRes.Close();            &lt;br /&gt;        }&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;        {&lt;br /&gt;            lblMsg.Text = ex.Message.ToString();&lt;br /&gt;            lblMsg.ForeColor = System.Drawing.Color.Red;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/12/check-given-url-is-valid.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-8896650369474360645</guid><pubDate>Tue, 16 Dec 2008 16:05:00 +0000</pubDate><atom:updated>2008-12-16T21:54:28.990+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Check All Option in TreeView control</title><description>&lt;strong&gt;&lt;u&gt;Javascript : Check All Option in TreeView control&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;ASP.Net 2.0 Provides Tree view control with more features. It gives an option to select items through checkboxes. But there is no option for select all in a single click. &lt;br /&gt;&lt;br /&gt;We can do that using Javascript. Here the stuff....&lt;br /&gt;&lt;br /&gt;&lt;div style = &#39;background-color:#b2d2ef; color: black; font-family: Verdana;&#39;&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&amp;lt;script language = &quot;javascript&quot; type = &quot;text/javascript&quot;&amp;gt;&lt;br /&gt;function treeViewClick()&lt;br /&gt;{&lt;br /&gt;    var checkStatus = false;&lt;br /&gt;    var obj = event.srcElement;&lt;br /&gt;    if(obj.tagName == &#39;INPUT&#39; &amp;&amp; obj.type == &#39;checkbox&#39;)&lt;br /&gt;    {&lt;br /&gt;        checkStatus = obj.checked;&lt;br /&gt;        while(obj.tagName != &#39;TABLE&#39;)&lt;br /&gt;        {&lt;br /&gt;            obj = obj.parentElement;&lt;br /&gt;        }        &lt;br /&gt;        if(isParent(obj)) /// Parent Node ---- Needs to set the parent status (Checked or Unchecked) to its child.&lt;br /&gt;        {&lt;br /&gt;            obj = obj.nextSibling;&lt;br /&gt;            var tables = obj.getElementsByTagName(&#39;TABLE&#39;);&lt;br /&gt;            for(tblcnt = 0; tblcnt &amp;lt; tables.length; tblcnt++)&lt;br /&gt;            {        &lt;br /&gt;                checkAllDependents(tables[tblcnt], checkStatus);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        else                    /// Child Node --- Needs to set the parent of this child as unchecked...&lt;br /&gt;        {&lt;br /&gt;            var parent = obj.parentElement.previousSibling;&lt;br /&gt;            var parentchkboxes = parent.getElementsByTagName(&#39;INPUT&#39;);&lt;br /&gt;            if(parentchkboxes.length &gt; 0 &amp;&amp; checkStatus == false)&lt;br /&gt;                parentchkboxes[0].checked = false;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function checkAllDependents(element, isChecked)&lt;br /&gt;{&lt;br /&gt;    var ctrls = element.getElementsByTagName(&#39;INPUT&#39;);&lt;br /&gt;    for(cnt = 0; cnt &amp;lt; ctrls.length; cnt++)&lt;br /&gt;    {&lt;br /&gt;        if(ctrls[cnt].type == &#39;checkbox&#39;)&lt;br /&gt;        {&lt;br /&gt;            ctrls[cnt].checked = isChecked;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function isParent(element)&lt;br /&gt;{&lt;br /&gt;    var anchors = element.getElementsByTagName(&#39;A&#39;);&lt;br /&gt;    //if(anchors.length &gt; 1)  // the Treeview Node option of SelectAction is other than &quot;none&quot; &lt;br /&gt;    if(anchors.length &gt; 0)  // the Treeview Node option of SelectAction is &quot;none&quot; &lt;br /&gt;        return true;&lt;br /&gt;    else&lt;br /&gt;        return false;&lt;br /&gt;} &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here is the controls scripts.&lt;br /&gt;&lt;br /&gt;&lt;div style = &#39;background-color:#FFD9C9; color: black; font-family: Verdana;&#39;&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;asp:XmlDataSource ID = &quot;dsXML&quot; runat = &quot;server&quot;&amp;gt;&lt;br /&gt;    &amp;lt;Data&amp;gt;&lt;br /&gt;        &amp;lt;Products&amp;gt;&lt;br /&gt;            &amp;lt;Type Name = &quot;Microsoft&quot;&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;1&quot; Name = &quot;DOTNET&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;2&quot; Name = &quot;SQLServer&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;3&quot; Name = &quot;Office&quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/Type&amp;gt;&lt;br /&gt;            &amp;lt;Type Name = &quot;Oracle&quot;&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;1&quot; Name = &quot;Oracle11g&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;2&quot; Name = &quot;Oracle10g&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;3&quot; Name = &quot;Oracle9i&quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/Type&amp;gt;&lt;br /&gt;            &amp;lt;Type Name = &quot;Sun&quot;&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;1&quot; Name = &quot;J2EE&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;2&quot; Name = &quot;J2ME&quot; /&amp;gt;&lt;br /&gt;                &amp;lt;Product ID = &quot;3&quot; Name = &quot;JSP&quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/Type&amp;gt;&lt;br /&gt;        &amp;lt;/Products&amp;gt;&lt;br /&gt;    &amp;lt;/Data&amp;gt;&lt;br /&gt;    &amp;lt;/asp:XmlDataSource&amp;gt;&lt;br /&gt;    &lt;br /&gt;    &amp;lt;asp:TreeView ID = &quot;tvProducts&quot; runat = &quot;server&quot; &lt;br /&gt;        DataSourceID = &quot;dsXML&quot; onclick = &quot;treeViewClick();&quot;&lt;br /&gt;        ShowCheckBoxes = &quot;Leaf&quot; BackColor = &quot;seagreen&quot; ForeColor = &quot;white&quot;&amp;gt;&lt;br /&gt;    &amp;lt;DataBindings&amp;gt;&lt;br /&gt;    &amp;lt;asp:TreeNodeBinding DataMember = &quot;Products&quot; Text = &quot;Products&quot; SelectAction =&quot;none&quot; /&amp;gt;&lt;br /&gt;    &amp;lt;asp:TreeNodeBinding DataMember = &quot;Type&quot; TextField = &quot;NAME&quot; ShowCheckBox = &quot;true&quot; SelectAction=&quot;none&quot; /&amp;gt;    &lt;br /&gt;    &amp;lt;asp:TreeNodeBinding DataMember = &quot;Product&quot; ValueField = &quot;ID&quot; TextField = &quot;NAME&quot; SelectAction=&quot;none&quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/DataBindings&amp;gt;&lt;br /&gt;    &amp;lt;/asp:TreeView&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/12/check-all-option-in-treeview-control.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-7918023884322592930</guid><pubDate>Fri, 12 Dec 2008 14:47:00 +0000</pubDate><atom:updated>2008-12-12T20:21:45.552+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DOTNET</category><title>Awesome Features of VS.NET 2008</title><description>&lt;strong&gt;&lt;u&gt;Awesome Features of VS.NET 2008&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;VS.NET 2008 (Framework 3.5) released with wonderful features.&lt;br /&gt;Look on this &lt;a style = &#39;color:blue&#39; href = &#39;#&#39; onclick = &quot;window.open(&#39;http://www.sql-server-performance.com/articles/dev/New_Features_in_Visual_Studio_2008_p1.aspx&#39;);&quot; &gt;&lt;br /&gt;VS.NET 2008 Features &lt;/a&gt;</description><link>http://hspharic.blogspot.com/2008/12/awesome-features-of-vsnet-2008.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-1909362720925046829</guid><pubDate>Mon, 17 Nov 2008 09:38:00 +0000</pubDate><atom:updated>2008-11-17T15:24:39.830+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Set Password Textbox value dynamically</title><description>&lt;strong&gt;&lt;U&gt;Set Password Textbox value dynamically&lt;/U&gt;&lt;/strong&gt;&lt;br /&gt;Usually when we need to set values for textboxes dynamically, we just assign values to the Textbox&#39;s Text property like,&lt;br /&gt;&lt;div style = &#39;background-color:silver; color:navy&#39;&gt;&lt;br /&gt;TextBox1.Text = &quot;hsp&quot;;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;But the above statement will not work, if the Textbox mode is &quot;Password&quot;.&lt;br /&gt;Suppose we want to set the values of Password mode textbox, we can use the following code.&lt;br /&gt;&lt;div style = &#39;background-color:silver; color:navy&#39;&gt;&lt;br /&gt;TextBox1.Attributes[&quot;value&quot;] = &quot;hsp&quot;;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Also, when the page is getting postback, the values in Password textboxes will be cleared. But you can retain the text in password textboxes.&lt;br /&gt;Add the following code in Page_Load event of the page.&lt;br /&gt;&lt;div style = &#39;background-color:silver; color:navy&#39;&gt;&lt;br /&gt;TextBox1.Attributes.Add(&quot;value&quot;, TextBox1.Text);&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/11/set-password-textbox-value-dynamically.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-3350323226992228576</guid><pubDate>Fri, 14 Nov 2008 16:02:00 +0000</pubDate><atom:updated>2008-11-17T15:26:57.905+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL SERVER</category><title>Find N-th highest record in SQL Server</title><description>&lt;strong&gt;&lt;u&gt;Find N-th highest record in SQL Server&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;The following list of queries can be used to get N-th maximum record from table in SQL Server. &lt;br /&gt;Here, let we consider a simple employee table. And we need to get the employee details whose salary is the 2nd maximum of the table.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Option: 1&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:silver;color : blue&#39; &gt;&lt;br /&gt; Select top 1 * from employee where salary not in (select max(salary) from employee ) order by salary desc&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;u&gt;Option:2&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:silver;color : blue&#39; &gt;&lt;br /&gt; Select top 1 * from (select top 2 * from employee order by salary desc) emp order by emp.salary&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;u&gt;Option: 3&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:silver;color : blue&#39; &gt;&lt;br /&gt; Select * from employee e1 where 1 = (select count(distinct(e2.salary)) from employee e2 where e2.salary &gt; e1.salary)&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/11/find-n-th-highest-record-in-sql-server.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-7244625219259975443</guid><pubDate>Fri, 07 Nov 2008 06:43:00 +0000</pubDate><atom:updated>2008-11-17T15:27:30.724+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DOTNET</category><title>Build components (dll) into Multiple Locations</title><description>Build components (dll) into Multiple Locations&lt;br /&gt; Usually when we build a component (dll), the result dll will be stored in path which is specified in OutputPath of that project Properties.&lt;br /&gt;&lt;img src = &#39;http://hspharic.googlepages.com/OutputPath.PNG&#39; alt = &#39;output Path&#39; /&gt;&lt;br /&gt;&lt;br /&gt;By default the output path is “bin\debug” of the particular project.&lt;br /&gt;We can change this path to our required one.&lt;br /&gt;&lt;br /&gt;Suppose, in some solutions, we may use the same dll more than one projects. For this, we need to copy the dll and paste in specific location. This may cause some problem if we forgot to copy and paste. So, we need some automatic process for this. &lt;br /&gt;&lt;br /&gt;Thank fully Visual studio provides a concept called Build Events.&lt;br /&gt;&lt;img src = &#39;http://hspharic.googlepages.com/BuildEvents.PNG&#39; alt = &#39;Build Events&#39; /&gt;&lt;br /&gt;&lt;br /&gt;In that, we can include some DOS command through Macros. The Macros contains some default keys which has values like Target path etc..&lt;br /&gt;&lt;img src = &#39;http://hspharic.googlepages.com/BuildEvents_CmdLine.PNG&#39; alt = &#39;Macros&#39; /&gt;&lt;br /&gt;&lt;br /&gt;Here For example I want to stored the dll into “d:\test\” folder, we need to add XCOPY command with macros.&lt;br /&gt;&lt;img src = &#39;http://hspharic.googlepages.com/BuildEvents_CmdLine_added.PNG&#39; alt = &#39;Xcopy&#39; /&gt;&lt;br /&gt;&lt;br /&gt;xcopy &quot;$(TargetPath)&quot; &quot;d:\test\&quot; /d /y&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;XCopy Syntax&lt;/h2&gt;&lt;br /&gt;&lt;div style = &#39;background-color: aliceblue; color : navy&#39; &gt;&lt;br /&gt;&lt;br /&gt;Copies files and directory trees.&lt;br /&gt;&lt;br /&gt;XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]&lt;br /&gt;                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]&lt;br /&gt;                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]&lt;br /&gt;                           [/EXCLUDE:file1[+file2][+file3]...]&lt;br /&gt;&lt;br /&gt;  source       Specifies the file(s) to copy.&lt;br /&gt;  destination  Specifies the location and/or name of new files.&lt;br /&gt;  /A           Copies only files with the archive attribute set,&lt;br /&gt;               doesn&#39;t change the attribute.&lt;br /&gt;  /M           Copies only files with the archive attribute set,&lt;br /&gt;               turns off the archive attribute.&lt;br /&gt;  /D:m-d-y     Copies files changed on or after the specified date.&lt;br /&gt;               If no date is given, copies only those files whose&lt;br /&gt;               source time is newer than the destination time.&lt;br /&gt;  /EXCLUDE:file1[+file2][+file3]...&lt;br /&gt;               Specifies a list of files containing strings.  Each string&lt;br /&gt;               should be in a separate line in the files.  When any of the&lt;br /&gt;               strings match any part of the absolute path of the file to be&lt;br /&gt;               copied, that file will be excluded from being copied.  For&lt;br /&gt;               example, specifying a string like \obj\ or .obj will exclude&lt;br /&gt;               all files underneath the directory obj or all files with the&lt;br /&gt;               .obj extension respectively.&lt;br /&gt;  /P           Prompts you before creating each destination file.&lt;br /&gt;  /S           Copies directories and subdirectories except empty ones.&lt;br /&gt;  /E           Copies directories and subdirectories, including empty ones.&lt;br /&gt;               Same as /S /E. May be used to modify /T.&lt;br /&gt;  /V           Verifies each new file.&lt;br /&gt;  /W           Prompts you to press a key before copying.&lt;br /&gt;  /C           Continues copying even if errors occur.&lt;br /&gt;  /I           If destination does not exist and copying more than one file,&lt;br /&gt;               assumes that destination must be a directory.&lt;br /&gt;  /Q           Does not display file names while copying.&lt;br /&gt;  /F           Displays full source and destination file names while copying.&lt;br /&gt;  /L           Displays files that would be copied.&lt;br /&gt;  /G           Allows the copying of encrypted files to destination that does&lt;br /&gt;               not support encryption.&lt;br /&gt;  /H           Copies hidden and system files also.&lt;br /&gt;  /R           Overwrites read-only files.&lt;br /&gt;  /T           Creates directory structure, but does not copy files. Does not&lt;br /&gt;               include empty directories or subdirectories. /T /E includes&lt;br /&gt;               empty directories and subdirectories.&lt;br /&gt;  /U           Copies only files that already exist in destination.&lt;br /&gt;  /K           Copies attributes. Normal Xcopy will reset read-only attributes.&lt;br /&gt;  /N           Copies using the generated short names.&lt;br /&gt;  /O           Copies file ownership and ACL information.&lt;br /&gt;  /X           Copies file audit settings (implies /O).&lt;br /&gt;  /Y           Suppresses prompting to confirm you want to overwrite an&lt;br /&gt;               existing destination file.&lt;br /&gt;  /-Y          Causes prompting to confirm you want to overwrite an&lt;br /&gt;               existing destination file.&lt;br /&gt;  /Z           Copies networked files in restartable mode.&lt;br /&gt;&lt;br /&gt;The switch /Y may be preset in the COPYCMD environment variable.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After adding the command line save the build Events.&lt;br /&gt;&lt;br /&gt;&lt;img src = &#39;http://hspharic.googlepages.com/BuildEvents_added.PNG&#39; alt = &#39;Build Events added&#39; /&gt;&lt;br /&gt;&lt;br /&gt;Now Build your dll. The dll will be stored in “bin/debug” path of the project folder and also in “d:\test\” folder. (&lt;span style = &#39;color:red&#39; &gt;Make sure d: drive should contain test folder. Otherwise it gives an error&lt;/span&gt;)</description><link>http://hspharic.blogspot.com/2008/11/build-components-dll-into-multiple.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-4061165688254347751</guid><pubDate>Fri, 31 Oct 2008 12:45:00 +0000</pubDate><atom:updated>2008-11-14T21:39:01.295+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Access / Consume Web Service using JavaScript</title><description>&lt;strong&gt;&lt;u&gt;Access / Consume Web Service using JavaScript&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt; Web Service is a distributed application that provides information to client irrespective of Platform, Languages. There are number of free web services available (&lt;a href=&quot;#&quot; onclick = &quot;window.open(&#39;www.webservicex.net&#39;)&quot;&gt;webservicex&lt;/a&gt;) in universe.&lt;br /&gt; We can call the web service method through JavaScript functions. To doing this, we need to concentrate the following three points,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.Download Web Service behavior (HTC – HTML Component) file from &lt;a href =&#39;#&#39; style=&#39;color:blue&#39; onclick = &quot;window.open(&#39;http://www.microsoft.com/downloads/details.aspx?FamilyID=1A3F25CA-0387-49A9-8EDC-B8BC0309A2E1&amp;displaylang=en&#39;)&quot; &gt;Microsoft &lt;/a&gt; and include that file into your project.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.Create a Proxy Web service for accessing the original web service (Since, Browser provides security issue while calling the original web service directly.)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;3.Create a Page in which, we need to add the code for accessing web service.&lt;br /&gt;&lt;br /&gt; For explaining the concept I am using one of the free services which are available in www.webservicex.net. The &lt;a href =&#39;#&#39; style=&#39;color:blue&#39; onclick = &quot;window.open(&#39;http://www.webservicex.net/ValidateEmail.asmx&#39;)&quot; &gt; service &lt;/a&gt; is used to validate whether the entered email address is valid one or not. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;1.Web Service Behavior&lt;/u&gt;&lt;/strong&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The WebService behavior enables client-side script to invoke remote methods exposed by Web Services, or other Web servers, that support the SOAP and Web Services Description Language (WSDL) 1.1. This behavior provides developers the opportunity to use and leverage SOAP, without requiring expert knowledge of its implementation. The WebService behavior supports the use of a wide variety of data types, including intrinsic SOAP data types, arrays, objects, and XML data. The WebService behavior is implemented with an HTML Component (HTC) file as an attached behavior, so it can be used in Microsoft Internet Explorer 5 and later versions.&lt;br /&gt; For more information click &lt;a href =&#39;#&#39; style=&#39;color:blue&#39; onclick = &quot;window.open(&#39;http://msdn.microsoft.com/en-us/library/ms531032(VS.85).aspx&#39;)&quot; &gt; here &lt;/a&gt; &lt;br /&gt;You can download the HTC file from &lt;a href =&#39;#&#39; style=&#39;color:blue&#39; onclick = &quot;window.open(&#39;http://www.microsoft.com/downloads/details.aspx?FamilyID=1A3F25CA-0387-49A9-8EDC-B8BC0309A2E1&amp;displaylang=en&#39;)&quot; &gt;Microsoft &lt;/a&gt; and include that file into your project.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;2.Create a Proxy Web Service&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;While using the remote web service directly, the browser prompts security issue like,&lt;br /&gt;&lt;p style=&#39;color:red&#39; &gt; &quot;This page is accessing information that is not under its control. This poses a security risk &quot;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;To avoid this, we need to create proxy service in our local, to access the remote web service.&lt;br /&gt;For creating proxy service we need to do the following steps.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;a)Get the particular web service’s WSDL as .cs file and Compile it.&lt;/strong&gt; Using WSDL.exe command, we can get the .cs file of web service WSDL like,&lt;br /&gt;Go to Visual studio command prompt,&lt;br /&gt; C:\WSDL http://www.webservicex.net/ValidateEmail.asmx?WSDL&lt;br /&gt;The validateemail.cs file will be created. Now we need to compile this file into dll.&lt;br /&gt; C:\csc /t:library /out:WS_ValidateEmail.dll validateemail.cs&lt;br /&gt;The validateemail.dll will be create. Now Copy the dll file and paste into bin folder of your project. Make the reference of this dll via Add reference.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;b)Create Proxy Web Service and call the original web service via newly created dll.&lt;/strong&gt;&lt;br /&gt; Create a proxy web service by click File-&amp;gt;New-&amp;gt;File and select Web Service. Name the file as “ProxyWS.asmx” and add the following function into the file.&lt;br /&gt;    &lt;br /&gt;&lt;div style=&#39;background-color:gray; color:navy&#39;&gt;&lt;br /&gt;    [WebMethod]&lt;br /&gt;    public bool IsValidEmail(string email)&lt;br /&gt;    {&lt;br /&gt;        ValidateEmail objWS = new ValidateEmail();&lt;br /&gt;        bool result = objWS.IsValidEmail(email);&lt;br /&gt;        return result;&lt;br /&gt;    }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;3.Create Page to access Web service.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Create a page and add the following scripts.&lt;br /&gt;&lt;div style=&#39;background-color:silver; color:navy&#39;&gt;&lt;br /&gt;&amp;lt;script language = &quot;javascript&quot; type =&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;    function initWS()&lt;br /&gt;    {&lt;br /&gt;        var email = document.getElementById(&#39;txtEmail&#39;).value;&lt;br /&gt;        if(email.length &amp;gt; 0)&lt;br /&gt;        {&lt;br /&gt;  // Initialize and create object using web service behavior.&lt;br /&gt;            divWS.useService(&quot;proxyWS.asmx?WSDL&quot;,&quot;objWS&quot;)&lt;br /&gt;            if(divWS.objWS)&lt;br /&gt;            {&lt;br /&gt;                document.getElementById(&quot;sLoad&quot;).style.visibility = &quot;visible&quot;;&lt;br /&gt;                document.getElementById(&quot;btnValidate&quot;).style.visibility = &quot;hidden&quot;;&lt;br /&gt;                divWS.objWS.callService(getResult,&quot;IsValidEmail&quot;, email);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    function getResult(result)&lt;br /&gt;    {&lt;br /&gt;        if(result.error)&lt;br /&gt;        {   &lt;br /&gt;            alert(&quot;Error : &quot; + result.errorDetail.code + &quot; , &quot; + result.errorDetail.string + &quot; , &quot; + result.errorDetail.raw);&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            if(result.value)&lt;br /&gt;                alert(&quot;Valid Email&quot;);&lt;br /&gt;            else&lt;br /&gt;                alert(&quot;Invalid Email&quot;);&lt;br /&gt;        }&lt;br /&gt;        document.getElementById(&quot;sLoad&quot;).style.visibility = &quot;hidden&quot;;&lt;br /&gt;        document.getElementById(&quot;btnValidate&quot;).style.visibility = &quot;visible&quot;;&lt;br /&gt;    }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Add the following code in &amp;lt;body&amp;gt; section,&lt;br /&gt;&lt;div style=&#39;background-color:silver; color:navy&#39;&gt;&lt;br /&gt;&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;    &amp;lt;div id = &quot;divWS&quot; style=&quot;BEHAVIOR: url(webservice.htc)&quot;&amp;gt;    &lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;table&amp;gt;&lt;br /&gt;    &amp;lt;tr&amp;gt;&lt;br /&gt;    &amp;lt;td&amp;gt; Enter the Email Address :&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;td&amp;gt; &amp;lt;input type = &quot;text&quot; id = &quot;txtEmail&quot; /&amp;gt; &amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;tr&amp;gt;&lt;br /&gt;       &amp;lt;td colspan = &quot;2&quot;&amp;gt;&lt;br /&gt;       &amp;lt;span id = &quot;sLoad&quot; style=&quot;visibility:hidden&quot;&amp;gt;Loading&amp;lt;/span&amp;gt;&lt;br /&gt;       &amp;lt;input type = &quot;button&quot; id = &quot;btnValidate&quot; value = &quot;Validate&quot; onclick = &quot;initWS();&quot; /&amp;gt;&lt;br /&gt;       &amp;lt;/td&amp;gt; &lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;/table&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/10/access-consume-web-service-using.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-8826944357100462852</guid><pubDate>Wed, 22 Oct 2008 08:56:00 +0000</pubDate><atom:updated>2008-11-17T15:25:49.213+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ORACLE</category><title>ORACLE : Minutes between Two dates</title><description>&lt;strong&gt;&lt;u&gt;ORACLE : Minutes between Two dates&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt; The following function is returning the No. of minutes between two specific dates.&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:green&#39;&gt;&lt;br /&gt;&amp;nbsp;FUNCTION F_GET_MINUTES_DIFF&lt;br /&gt;&amp;nbsp;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;dSTARTDATE &amp;nbsp;&amp;nbsp;&amp;nbsp;DATE,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;dENDDATE &amp;nbsp;&amp;nbsp;&amp;nbsp;DATE&lt;br /&gt;&amp;nbsp;) RETURN NUMBER&lt;br /&gt;&amp;nbsp;IS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v_MINSDIFF&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER(5);&lt;br /&gt;&amp;nbsp;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ROUND(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(((TRUNC(dSTARTDATE) + 1) - dSTARTDATE) * 1440)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ ((dENDDATE - TRUNC(dENDDATE)) * 1440)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ (((TRUNC(dENDDATE) - TRUNC(dSTARTDATE))-1) * 1440),&lt;/br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2) INTO v_MINSDIFF&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DUAL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;RETURN v_MINSDIFF;&lt;br /&gt;&amp;nbsp;END F_GET_MINUTES_DIFF;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;u&gt;Example to call the function&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:green&#39;&gt;&lt;br /&gt;&amp;nbsp;DECLARE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MINSDIFF NUMBER(5);&lt;br /&gt;&amp;nbsp;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MINSDIFF := F_GET_MINUTES_DIFF(TO_DATE(&#39;21-10-2008 12:00:01 AM&#39;, &#39;dd-mm-yyyy hh:mi:ss pm&#39;), SYSDATE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DBMS_OUTPUT.PUT_LINE(MINSDIFF);&lt;br /&gt;&amp;nbsp;END;&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/10/oracle-minutes-between-two-dates.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-1860532079484598725</guid><pubDate>Mon, 20 Oct 2008 05:29:00 +0000</pubDate><atom:updated>2008-11-17T15:23:54.321+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#.NET</category><title>Check Prime numbers</title><description>&lt;strong&gt;Function to Check Prime number&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here a simple function to check whether the given number is Prime or not.&lt;br /&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:maroon&#39;&gt;&lt;br /&gt;private bool isPrime(int tmp)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (tmp &lt;= 3)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (int cnt = 2; cnt &lt; tmp; cnt++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (tmp % cnt == 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;/div&gt;</description><link>http://hspharic.blogspot.com/2008/10/check-prime-number.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-8850487896757503009</guid><pubDate>Fri, 17 Oct 2008 06:59:00 +0000</pubDate><atom:updated>2008-11-17T15:23:54.322+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#.NET</category><title>Enumerations in C#.Net</title><description>&lt;strong&gt;&lt;u&gt;Enumerations in C#.Net&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;An enum is a value type with a set of related named constants often referred to as an enumerator list.&lt;br /&gt;&lt;br /&gt;Here I am using the Build in Enum type named  &lt;strong&gt;DbType&lt;/strong&gt;, which returns all the types.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Get value of particular index&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:navy&#39;&gt;&lt;br /&gt;&lt;strong&gt;DbType value = (DbType)10;&lt;/strong&gt; &lt;/div&gt;&lt;br /&gt;The Result will be &lt;strong&gt;Int16&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Get index of particular value,&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:navy&#39;&gt;&lt;br /&gt;&lt;strong&gt;int index = (int)DbType.Int16;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The Result will be &lt;strong&gt;10&lt;/strong&gt;</description><link>http://hspharic.blogspot.com/2008/10/enumerations-in-cnet.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-2691493465919576238</guid><pubDate>Wed, 15 Oct 2008 12:38:00 +0000</pubDate><atom:updated>2008-11-17T15:25:49.213+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ORACLE</category><title>ORACLE : VARRAYS</title><description>&lt;strong&gt;&lt;u&gt;VARRAYS IN ORACLE&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt; &lt;strong&gt;Varrays (short for variable-size arrays) hold a fixed number of elements. They use sequential numbers as subscripts&lt;/strong&gt;. You can define equivalent SQL types, allowing varrays to be stored in database tables. They can be stored and retrieved through SQL, but with less flexibility than nested tables. &lt;br /&gt;&lt;p style=&#39;color:red&#39;&gt;&lt;br /&gt;Note:&lt;br /&gt;Varrays are a good choice when the number of elements is known in advance, and when the elements are usually all accessed in sequence. When stored in the database, varrays retain their ordering and subscripts.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;u&gt;For Example&lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color:green&#39;&gt;&lt;br /&gt;----------- CREATING VARRAY TYPE ------------&lt;br /&gt;------- 10 rows of varchar2(25) column&lt;br /&gt;CREATE OR REPLACE &lt;br /&gt; TYPE TYPE_VARRAY AS VARRAY(10) OF VARCHAR2(25);&lt;br /&gt;---------------------------------------------&lt;br /&gt;&lt;br /&gt;--- CREATEING TABLE WITH VARRAY COLUMN ------&lt;br /&gt;CREATE TABLE TBL_WITH_VARRAY&lt;br /&gt;(&lt;br /&gt; ID NUMBER&lt;br /&gt; , ADDEDDATE DATE&lt;br /&gt; , DATA TYPE_VARRAY&lt;br /&gt;)&lt;br /&gt;---------------------------------------------&lt;br /&gt;&lt;br /&gt;DESC TBL_WITH_VARRAY&lt;br /&gt;SELECT * FROM USER_TYPES&lt;br /&gt;&lt;br /&gt;SELECT * FROM TBL_WITH_VARRAY&lt;br /&gt;&lt;br /&gt;INSERT INTO TBL_WITH_VARRAY&lt;br /&gt;(&lt;br /&gt; ID&lt;br /&gt; , ADDEDDATE&lt;br /&gt; , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 1&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_VARRAY(&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;)&lt;br /&gt;);&lt;br /&gt;/&lt;br /&gt;INSERT INTO TBL_WITH_VARRAY&lt;br /&gt;(&lt;br /&gt; ID&lt;br /&gt; , ADDEDDATE&lt;br /&gt; , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 2&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_VARRAY(&#39;A&#39;,&#39;B&#39;,&#39;C&#39;,&#39;D&#39;,&#39;E&#39;,&#39;F&#39;,&#39;G&#39;,&#39;H&#39;,&#39;I&#39;,&#39;J&#39;,&#39;K&#39;)&lt;br /&gt;);&lt;br /&gt;---[1]: (Error): ORA-22909: exceeded maximum VARRAY limit&lt;br /&gt;INSERT INTO TBL_WITH_VARRAY&lt;br /&gt;(&lt;br /&gt; ID&lt;br /&gt; , ADDEDDATE&lt;br /&gt; , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 2&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_VARRAY(&#39;A&#39;,&#39;B&#39;,&#39;C&#39;,&#39;D&#39;,&#39;E&#39;,&#39;F&#39;,&#39;G&#39;,&#39;H&#39;,&#39;I&#39;,&#39;J&#39;)&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;SET SERVEROUTPUT ON;&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TMP_VARRAY TYPE_VARRAY;&lt;br /&gt;BEGIN&lt;br /&gt; SELECT DATA INTO TMP_VARRAY FROM TBL_WITH_VARRAY WHERE ID = 2;&lt;br /&gt; DBMS_OUTPUT.PUT_LINE(&#39;NO.OF RECORDS : &#39; || TMP_VARRAY.COUNT);&lt;br /&gt; FOR CNT IN TMP_VARRAY.FIRST..TMP_VARRAY.LAST&lt;br /&gt; LOOP&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE(TMP_VARRAY(CNT));&lt;br /&gt; END LOOP;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TMP_VARRAY TYPE_VARRAY;&lt;br /&gt;BEGIN&lt;br /&gt; SELECT DATA INTO TMP_VARRAY FROM TBL_WITH_VARRAY WHERE ID = 2;&lt;br /&gt; DBMS_OUTPUT.PUT_LINE(&#39;NO.OF RECORDS : &#39; || TMP_VARRAY.COUNT);&lt;br /&gt; FOR CNT IN REVERSE TMP_VARRAY.FIRST..TMP_VARRAY.LAST&lt;br /&gt; LOOP&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE(CNT || &#39; : &#39; || TMP_VARRAY(CNT));&lt;br /&gt; END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;------- CREATING OBJECT TYPE --------&lt;br /&gt;CREATE OR REPLACE &lt;br /&gt; TYPE TYPE_OBJ_TEST AS OBJECT&lt;br /&gt; (&lt;br /&gt;  CODE NUMBER&lt;br /&gt;  , VAL VARCHAR2(25)&lt;br /&gt; );&lt;br /&gt;-------------------------------------&lt;br /&gt;&lt;br /&gt;----- CREATING VARRAY OF OBJECT -----&lt;br /&gt;CREATE OR REPLACE&lt;br /&gt; TYPE TYPE_VARRAY_OBJ IS VARRAY(10) OF TYPE_OBJ_TEST;&lt;br /&gt;-------------------------------------&lt;br /&gt;&lt;br /&gt;----- CREATING TABLE WITH OBJECT VARRAY ----&lt;br /&gt;CREATE TABLE TBL_WITH_VARRAY1&lt;br /&gt;(&lt;br /&gt; ID NUMBER&lt;br /&gt; , ADDEDDATE DATE&lt;br /&gt; , DATA TYPE_VARRAY_OBJ&lt;br /&gt;)&lt;br /&gt;--------------------------------------------&lt;br /&gt;&lt;br /&gt;DESC TBL_WITH_VARRAY1&lt;br /&gt;SELECT * FROM TBL_WITH_VARRAY1&lt;br /&gt;&lt;br /&gt;INSERT INTO TBL_WITH_VARRAY1&lt;br /&gt;(&lt;br /&gt; ID&lt;br /&gt; , ADDEDDATE&lt;br /&gt; , DATA&lt;br /&gt;) VALUES&lt;br /&gt;(&lt;br /&gt; 1&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_VARRAY_OBJ (TYPE_OBJ_TEST(91,&#39;IND&#39;), TYPE_OBJ_TEST(65,&#39;SG&#39;))&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;INSERT INTO TBL_WITH_VARRAY1&lt;br /&gt;(&lt;br /&gt; ID&lt;br /&gt; , ADDEDDATE&lt;br /&gt; , DATA&lt;br /&gt;) VALUES&lt;br /&gt;(&lt;br /&gt; 2&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_VARRAY_OBJ(TYPE_OBJ_TEST(91,&#39;IND&#39;), TYPE_OBJ_TEST(65,&#39;SG&#39;),TYPE_OBJ_TEST(11,&#39;ABC&#39;), TYPE_OBJ_TEST(22,&#39;DEF&#39;))&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;SET SERVEROUTPUT ON;&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TMP_VARRAY TYPE_VARRAY_OBJ;&lt;br /&gt;TMP_OBJ TYPE_OBJ_TEST;&lt;br /&gt;BEGIN&lt;br /&gt; SELECT DATA INTO TMP_VARRAY FROM TBL_WITH_VARRAY1 WHERE ID = 2;&lt;br /&gt; DBMS_OUTPUT.PUT_LINE(&#39;NO.OF RECORDS : &#39; || TMP_VARRAY.COUNT);&lt;br /&gt; FOR CNT IN TMP_VARRAY.FIRST..TMP_VARRAY.LAST&lt;br /&gt; LOOP&lt;br /&gt;  TMP_OBJ := TMP_VARRAY(CNT);&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE(TMP_OBJ.CODE || &#39; - &#39; || TMP_OBJ.VAL);&lt;br /&gt; END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;For Syntax and more information &lt;input type = &#39;button&#39; value = &#39;click here&#39; onclick = &quot;window.open(&#39;http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm#34012&#39;)&quot; /&gt;</description><link>http://hspharic.blogspot.com/2008/10/oracle-varrays.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-3212460226513083309</guid><pubDate>Wed, 15 Oct 2008 12:27:00 +0000</pubDate><atom:updated>2008-11-17T15:25:49.213+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ORACLE</category><title>ORACLE : NESTED TABLES</title><description>&lt;strong&gt;&lt;u&gt;NESTED TABLES in ORACLE&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt; &lt;strong&gt;Nested tables hold an arbitrary number of elements. They use sequential numbers as subscripts&lt;/strong&gt;. You can define equivalent SQL types, allowing nested tables to be stored in database tables and manipulated through SQL. &lt;br /&gt; Within the database, nested tables can be considered one-column database tables. Oracle stores the rows of a nested table in no particular order. But, when you retrieve the nested table into a PL/SQL variable, the rows are given consecutive subscripts starting at 1. That gives you array-like access to individual rows.&lt;br /&gt; PL/SQL nested tables are like one-dimensional arrays. You can model multi-dimensional arrays by creating nested tables whose elements are also nested tables.&lt;br /&gt;&lt;u&gt;Nested tables differ from arrays in two important ways:&lt;/u&gt;&lt;br /&gt;1. Arrays have a fixed upper bound, but nested tables are unbounded. So, the size of a nested table can increase dynamically&lt;br /&gt;2. Arrays must be dense (have consecutive subscripts). So, you cannot delete individual elements from an array. Initially, nested tables are dense, but they can become sparse (have nonconsecutive subscripts). So, you can delete elements from a nested table using the built-in procedure DELETE. That might leave gaps in the index, but the built-in function NEXT lets you iterate over any series of subscripts.&lt;br /&gt;&lt;p style = &#39;color:red&#39;&gt;&lt;br /&gt;Note:&lt;br /&gt; Nested tables can be stored in a database column, so Nested tables are appropriate for important data relationships that must be stored persistently.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example scripts &lt;/u&gt;&lt;br /&gt;&lt;div style = &#39;background-color:aliceblue; color :green&#39;&gt;&lt;br /&gt;----- Creating Nested Tables type ----------------------&lt;br /&gt;---- Unlimited rows of varchar2(25) column.&lt;br /&gt;CREATE OR REPLACE &lt;br /&gt;    TYPE TYPE_NESTED_TABLES IS TABLE OF VARCHAR2(25);&lt;br /&gt;/     &lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;-------- Creating table with nested table types ---------&lt;br /&gt;CREATE TABLE TBL_WITH_NESTEDTABLES&lt;br /&gt;(&lt;br /&gt;    ID NUMBER&lt;br /&gt;    , ADDEDDATE DATE&lt;br /&gt;    , DATA TYPE_NESTED_TABLES&lt;br /&gt;) NESTED TABLE DATA STORE AS NESTED_TABLES_TAB&lt;br /&gt;/&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;DESC TBL_WITH_NESTEDTABLES&lt;br /&gt;DESC NESTED_TABLES_TAB&lt;br /&gt;&lt;br /&gt;SELECT * FROM USER_NESTED_TABLES&lt;br /&gt;SELECT * FROM USER_TAB_COLS WHERE TABLE_NAME = &#39;TBL_WITH_NESTEDTABLES&#39;&lt;br /&gt;SELECT * FROM USER_TYPES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;INSERT INTO TBL_WITH_NESTEDTABLES&lt;br /&gt;(&lt;br /&gt;    ID&lt;br /&gt;    , ADDEDDATE&lt;br /&gt;    , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 1&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_NESTED_TABLES(&#39;A&#39;,&#39;B&#39;,&#39;C&#39;)&lt;br /&gt;);&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;INSERT INTO TBL_WITH_NESTEDTABLES&lt;br /&gt;(&lt;br /&gt;    ID&lt;br /&gt;    , ADDEDDATE&lt;br /&gt;    , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 2&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_NESTED_TABLES(&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;)&lt;br /&gt;);&lt;br /&gt;/&lt;br /&gt;INSERT INTO TBL_WITH_NESTEDTABLES&lt;br /&gt;(&lt;br /&gt;    ID&lt;br /&gt;    , ADDEDDATE&lt;br /&gt;    , DATA&lt;br /&gt;) VALUES &lt;br /&gt;(&lt;br /&gt; 3&lt;br /&gt; , SYSDATE&lt;br /&gt; , TYPE_NESTED_TABLES(&#39;AA&#39;,&#39;BB&#39;,&#39;CC&#39;,&#39;DD&#39;,&#39;EE&#39;,&#39;FF&#39;)&lt;br /&gt;);&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;SELECT * FROM TBL_WITH_NESTEDTABLES&lt;br /&gt;&lt;br /&gt;SET SERVEROUTPUT ON;&lt;br /&gt;&lt;br /&gt;DECLARE &lt;br /&gt;TMP_TYPE TYPE_NESTED_TABLES;&lt;br /&gt;BEGIN&lt;br /&gt;    SELECT DATA INTO TMP_TYPE FROM TBL_WITH_NESTEDTABLES WHERE ID = 1;    &lt;br /&gt;    DBMS_OUTPUT.PUT_LINE(&#39;NO.OF RECORDS : &#39; || TMP_TYPE.COUNT);&lt;br /&gt;    FOR CNT IN TMP_TYPE.FIRST..TMP_TYPE.LAST&lt;br /&gt;    LOOP&lt;br /&gt;        DBMS_OUTPUT.PUT_LINE(TMP_TYPE(CNT));        &lt;br /&gt;    END LOOP;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TMP_TYPE TYPE_NESTED_TABLES := TYPE_NESTED_TABLES(&#39;TN&#39;,&#39;AP&#39;,&#39;KA&#39;,&#39;KE&#39;,&#39;UP&#39;);&lt;br /&gt;BEGIN&lt;br /&gt;    UPDATE TBL_WITH_NESTEDTABLES SET DATA = TMP_TYPE WHERE ID = 1;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;SELECT &lt;br /&gt; T1.ID&lt;br /&gt; , T1.ADDEDDATE&lt;br /&gt; , T2.* &lt;br /&gt;FROM &lt;br /&gt; TBL_WITH_NESTEDTABLES T1, &lt;br /&gt; TABLE(T1.DATA) T2&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For More information &lt;input type = &#39;button&#39; value = &#39;click here&#39; onclick = &quot;window.open(&#39;http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm#34012&#39;)&quot; /&gt;</description><link>http://hspharic.blogspot.com/2008/10/oracle-nested-tables.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-542354174311447542.post-6780408424054788441</guid><pubDate>Tue, 14 Oct 2008 09:33:00 +0000</pubDate><atom:updated>2008-11-17T15:25:03.685+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Partial Update using Prototype JavaScript Framework</title><description>&lt;strong&gt;&lt;u&gt;Partial Update using Prototype JavaScript Framework&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt; Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.&lt;br /&gt; Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the code base of choice for web application developers everywhere.&lt;br /&gt;For downloads and details,&lt;input type = &#39;button&#39; value = &#39;click here&#39; onclick = &quot;window.open(&#39;http://prototypejs.org/&#39;)&quot; /&gt;</description><link>http://hspharic.blogspot.com/2008/10/partial-update-using-prototype.html</link><author>noreply@blogger.com (hsp)</author><thr:total>0</thr:total></item></channel></rss>