<?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-4218629536287974788</atom:id><lastBuildDate>Fri, 30 Aug 2024 13:41:37 +0000</lastBuildDate><category>Jquery</category><category>ASP.Net MVC architectural pattern</category><category>Ajax</category><category>Android</category><category>Android Jelly Bean 4.1</category><category>Anti cross site scripting library from microsoft.</category><category>Auto Hosted App giving error while deploying</category><category>AutocompleteType does not produce desired results in ASP.net 2.0</category><category>Autocratic Management</category><category>Ban HTML comments</category><category>CORS</category><category>Change Theme</category><category>Compare Validator used as Datatype check</category><category>Controller</category><category>Data Transfer between Asp.net Pages</category><category>Delegating Task</category><category>Enforce Secure flag for session cookies in ASP.net</category><category>Fetching value from XML</category><category>Gridview</category><category>HTML5 storage</category><category>HTTP Request on Asp.net page</category><category>Made in Pakistan Tablets</category><category>Management History</category><category>Matrix Organizational Management</category><category>Mvc</category><category>Note Books and E-Books</category><category>PICNIC Pictures</category><category>PMP Exam Format Changes 31-August-2011</category><category>Paasing parameter from anchor  control to javascript function</category><category>Prince2 Business Case</category><category>Prince2 Service handover process</category><category>Project Management Methodology Survey</category><category>SQL Table Column values comma seperated</category><category>Sharepoint Central Admin Runtime Error</category><category>Steps to develop AntiVirus</category><category>To access invisible column values from the selected row in gridview</category><category>Validate Query string before use</category><category>View State</category><category>WEB Workers Object is not initiated</category><category>WEB Workers run locally</category><category>Web Worker</category><category>Welcome</category><category>What Prince2 doesnot provide</category><category>_dopostback browser back button</category><category>bound fields</category><category>canvas</category><category>filling DataSet by calling oracle procedure</category><category>how to use requiredfield validator withdropdownlist</category><category>javascript</category><category>nested div table tr td</category><category>page expire</category><category>radiobutton</category><category>smart watch</category><category>view state encryption</category><title>Prince2/DotNetLearner/HTML5</title><description>The blog is created to discuss Prince2 methodology any issues faced in project management to be resolved or discussed and .Net Technology</description><link>http://faisaljawaid.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-1823019138738737220</guid><pubDate>Wed, 07 Nov 2018 00:15:00 +0000</pubDate><atom:updated>2018-11-07T03:15:43.588+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CORS</category><title>DotNetCor2.1 Api CORS (Enable Cross Origin request)</title><description>&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;The cross origin request are sometimes dreadful. This needs to be addressed at the api level&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;In Dotnet Core 2.1 we can handle it elegantly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;1) Install NuGet package Microsoft.AspNetCore.Cors from NuGet Package Manager.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;2)&amp;nbsp;Call AddCors in Startup.ConfigureServices to add CORS services to the app&#39;s service container&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: inherit; white-space: pre;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #0101fd;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #0101fd;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: inherit; color: #007d9a;&quot;&gt;ConfigureServices&lt;/span&gt;(&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: inherit;&quot;&gt;IServiceCollection services&lt;/span&gt;)
&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;{
&lt;/span&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; white-space: pre;&quot;&gt;    services.AddCors( O =&amp;gt; O.AddPolicy(&quot;MyPolicy&quot; , builder =&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;    builder.AllowAnyOrigin()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;   .AllowAnyMethod()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;   .AllowAnyHeader();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffffcc; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;3) My project is WebApi so i will use &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;Enable CORS with CORS Middleware &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    approach.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: inherit; white-space: pre;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #0101fd;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #0101fd;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: inherit; color: #007d9a;&quot;&gt;Configure&lt;/span&gt;(&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: inherit;&quot;&gt;IApplicationBuilder app, IHostingEnvironment env,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: inherit; white-space: pre;&quot;&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: inherit;&quot;&gt; ILoggerFactory loggerFactory&lt;/span&gt;)
&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;{
    loggerFactory.AddConsole();

    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #0101fd; white-space: pre;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt; (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }

    &lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: inherit; color: green; white-space: pre;&quot;&gt;// Shows UseCors with CorsPolicyBuilder.&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;line-highlight&quot; style=&quot;background-color: #ffffcc; box-sizing: inherit; white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;app.UseCors(&quot;MyPolicy&quot;);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;

 &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fafafa; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; white-space: pre;&quot;&gt;4) Add the attribute &lt;/span&gt;&lt;span style=&quot;background-color: #ffffcc; white-space: pre;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hljs-meta&quot; style=&quot;box-sizing: inherit; color: #007d9a; white-space: pre;&quot;&gt;EnableCors(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #a31515;&quot;&gt;&quot;MyPolicy&quot;&lt;/span&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffcc; white-space: pre;&quot;&gt;] &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: #ffffcc; font-family: Verdana, sans-serif; white-space: pre;&quot;&gt;on the controller or on the method if you need to be more specific&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2018/11/dotnetcor21-api-cors-enable-cross.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Australia</georss:featurename><georss:point>-25.274398 133.77513599999997</georss:point><georss:box>-75.0662695 51.157948499999975 24.517473499999998 -143.60767650000003</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3714636614574841877</guid><pubDate>Tue, 07 Nov 2017 04:20:00 +0000</pubDate><atom:updated>2018-11-07T07:30:34.328+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fetching value from XML</category><title>Retreiving  field value in XML using cross apply </title><description>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1)&amp;nbsp; First we will cast the field data in a table to type xml from type text&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2) you need to use with operator if namespace is defined ;WITH XMLNAMESPACES(DEFAULT &#39;http://schemas.datacontract.org/2004/07/Psv.Domain.Models.PexaNoa&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3) consider ContentXML as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;&amp;lt;Name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;First&amp;gt;Jacob&amp;lt;/First&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Last&amp;gt;Sebastian&amp;lt;/Last&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Name&amp;gt;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Begin&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;SELECT ContentXML INTO #tab12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;FROM&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;(Select&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Cast(data as xml) AS ContentXML&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;from ABC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;) a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;;WITH XMLNAMESPACES(DEFAULT &#39;http://schemas.datacontract.org&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;SELECT t.value(&#39;(./First)[1]&#39;,&#39;NVARCHAR(MAX)&#39;) as FirstName&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;FROM #tab12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Cross Apply ContentXML.nodes(&#39;/Name&#39;) x(t)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Drop table #tab12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2017/11/retreiving-field-value-in-xml-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-5172936160318630713</guid><pubDate>Thu, 13 Oct 2016 23:09:00 +0000</pubDate><atom:updated>2016-10-14T02:09:55.218+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Jquery</category><category domain="http://www.blogger.com/atom/ns#">nested div table tr td</category><title>How to get a nested td value in Jquery</title><description>&lt;br /&gt;
I have a difficult task at hand to get the value of a &quot;td&quot; which is generated by Keno Grid and its really driving me crazy due to time constraint at client end. Following is the solution.&lt;br /&gt;
&lt;br /&gt;
Main div has id which gave me hope&lt;br /&gt;
&lt;br /&gt;
the mock structure is below&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;div id=&quot;mainDiv&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &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;lt;div class=&quot;div-class&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table&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;lt;thead&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;lt;tr&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;lt;td&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; header1&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;lt;/td&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;lt;td&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; header 2&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;lt;/td&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;lt;/tr&amp;gt;&lt;br /&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;lt;/thead&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;k-grid-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table border=&quot;1&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tbody&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;lt;tr&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;lt;td role=&quot;gridcell&quot;&amp;gt;column1&amp;lt;/td&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;lt;td role=&quot;gridcell&quot;&amp;gt;column2&amp;lt;/td&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;lt;/tr&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;lt;tr&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;lt;td role=&quot;gridcell&quot;&amp;gt;columnn3&amp;lt;/td&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;lt;td role=&quot;gridcell&quot;&amp;gt;column4&amp;lt;/td&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;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
&amp;nbsp;$(&#39;#mainDiv&#39;).on(&#39;click&#39;, &#39;.div-class table tbody tr&#39;, function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var value= $(this).find(&quot;td:first-child&quot;).text();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1) First capture the click event of the div with id.&lt;br /&gt;
2) Access the div you require with class name &quot;div-class&quot;.&lt;br /&gt;
3) Access the &quot;table&quot;.&lt;br /&gt;
4) Access the &quot;tbody&quot;&lt;br /&gt;
5) Access the &quot;tr&quot;&lt;br /&gt;
then get the values you require. Our requirement was to have first column value.&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2016/10/how-to-get-nested-td-value-in-jquery.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>United States</georss:featurename><georss:point>37.09024 -95.712891000000013</georss:point><georss:box>-36.4186355 99.052733999999987 90 69.521483999999987</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-4562273796676333960</guid><pubDate>Wed, 07 Sep 2016 05:00:00 +0000</pubDate><atom:updated>2016-10-14T02:20:40.352+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ajax</category><category domain="http://www.blogger.com/atom/ns#">Controller</category><category domain="http://www.blogger.com/atom/ns#">Jquery</category><category domain="http://www.blogger.com/atom/ns#">Mvc</category><title>How to access the MVC controller using Jquery to get things done.</title><description>I have to do a task using jquery and calling controller method. Following is the code to achieve it.&lt;br /&gt;
&lt;br /&gt;
1) div click.&lt;br /&gt;
2) the value is take from the &quot;td&quot;.&lt;br /&gt;
3) passed to the ajax method.&lt;br /&gt;
4) show result in another grid.&lt;br /&gt;
&lt;br /&gt;
Jquery part&lt;br /&gt;
&lt;br /&gt;
$(&#39;#mainDiv&#39;).on(&#39;click&#39;, &#39;.child-class table tbody tr&#39;, function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var Code = $(this).find(&quot;td:first-child&quot;).text();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.ajax({&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; type: &quot;POST&quot;,&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; async: true,&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; datatype: &quot;json&quot;,&lt;br /&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; url: &quot;/Controller/Method&quot;,&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; data: { &quot;Code&quot;: &quot;&quot; + Code + &quot;&quot; },&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;&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; success: function (data) {&lt;br /&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; $(&quot;#ToolTipCode&quot;).text(data);&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; },&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; error: function (x) {&lt;br /&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; $(&quot;#ToolTipCode&quot;).text(&quot;Doesnot exist.&quot;);&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; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
MVC controller&lt;br /&gt;
&lt;br /&gt;
[HttpPost]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public ActionResult Method(string Code)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // do your stuff&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Json(codeWithDescription);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }</description><link>http://faisaljawaid.blogspot.com/2016/09/how-to-access-mvc-controller-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-1571541225599633790</guid><pubDate>Fri, 01 May 2015 09:21:00 +0000</pubDate><atom:updated>2015-05-01T12:21:00.154+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Auto Hosted App giving error while deploying</category><title>SP 2013 Auto Hosted App Discontinued</title><description>Share Point 2013 App Model Auto Hosted App option was in Preview and it was discontinued on 30-June-2014,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Error&lt;/span&gt;&lt;/b&gt;: When you try to deploy AutoHosted App to your O365 it will give you following error&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;something went wrong error&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Cause&lt;/span&gt;&lt;/b&gt;:&amp;nbsp;&lt;a href=&quot;http://blogs.office.com/2014/05/16/update-on-autohosted-apps-preview-program/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Microsoft Announcement about AutoHosted App&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now you can covert the autohosted to Provider hosted app use the following MSDN link to convert your applications.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Solution&lt;/span&gt;&lt;/b&gt;:&lt;a href=&quot;https://msdn.microsoft.com/EN-US/library/office/dn722449(v=office.15).aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;How to Convert AutoHosted App to ProviderHosted App&lt;/a&gt;</description><link>http://faisaljawaid.blogspot.com/2015/05/sp-2013-auto-hosted-app-discontinued.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-7647830085150354896</guid><pubDate>Fri, 24 Apr 2015 11:33:00 +0000</pubDate><atom:updated>2015-04-24T14:33:31.668+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sharepoint Central Admin Runtime Error</category><title>Starting the SharePoint Central Admin giving runtime Error</title><description>&lt;br /&gt;
When Starting the Share point Central Administration I get Run-time Error.&lt;br /&gt;
&lt;br /&gt;
Follow the steps below&lt;br /&gt;
&lt;br /&gt;
1) Go to &lt;b&gt;IIS&lt;/b&gt;&lt;br /&gt;
2) Expand the &quot;&lt;b&gt;Sites&lt;/b&gt;&quot; folder and select &quot;&lt;b&gt;SharePoint Central Administration v4 &lt;/b&gt;&quot; virtual directory&lt;br /&gt;
3) In the &quot;&lt;b&gt;Actions&lt;/b&gt;&quot; section click Explore&lt;br /&gt;
4) The site physical folder will open and contains&lt;b&gt; web.config&lt;/b&gt; file.&lt;br /&gt;
5) Open web.config file find the &quot;&lt;b&gt;CustomErrors&lt;/b&gt;&quot; tag.&lt;br /&gt;
6) Set its mode attribute to &lt;b&gt;mode=&quot;Remoteonly&quot;&lt;/b&gt;&lt;br /&gt;
7) Refresh and Re-open the central Administration Site in browser&lt;br /&gt;
8) You will Get the following error now&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Error: &lt;/b&gt;This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b style=&quot;color: red;&quot;&gt;Cause: &lt;/b&gt;SQL Server for SharePoint services stopped due to restart of my machine&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
9) &amp;nbsp;Now Open the&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;Services.msc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;10) Restart the &quot;&lt;b&gt;SQL Server(SHAREPOINT)&lt;/b&gt;&quot; service&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;11) Also Enable and Restart the &quot;&lt;b&gt;SQL Server Agent (SHAREPOINT)&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;12) Also Enable and Restart &quot;&lt;b&gt;SQL Server Browser&quot;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.8500003814697px; line-height: 20.7900009155273px;&quot;&gt;&lt;b&gt;PS: I hope this helps. Please drop your comments.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2015/04/starting-sharepoint-central-admin.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-7014446235791466919</guid><pubDate>Tue, 14 Apr 2015 12:35:00 +0000</pubDate><atom:updated>2015-04-14T15:35:38.751+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">how to use requiredfield validator withdropdownlist</category><title>how to use requiredfield validator with dropdownlist</title><description>&lt;br /&gt;
Here is how we can use requiredfieldvalidator with dropdownlist.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Set the below property of the dropdownlist control&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
AppendDataBoundItems = true&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Then Insert a default value in the Page_Load event&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
ddl.Items.Insert(0, new ListItem(&quot;&amp;lt;&amp;lt;-Select--&amp;gt;&quot;, &quot;-1&quot;));&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Now define the required field validator and set its initialvalue attribute to &quot;-1&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:RequiredFieldValidator ID=&quot;reqddl&quot; runat=&quot;server&quot; Text=&quot;*&quot; ControlToValidate=&quot;ddlRole&quot; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;InitialValue=&quot;-1&quot;&lt;/span&gt;&lt;/b&gt; SetFocusOnError=&quot;true&quot; Display=&quot;Dynamic&quot; ValidationGroup=&quot;Add&quot;&amp;gt;&amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Happy coding :)&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2015/04/how-to-use-requiredfield-validator-with.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-6081022206102833983</guid><pubDate>Mon, 02 Mar 2015 06:30:00 +0000</pubDate><atom:updated>2015-03-02T09:31:40.166+03:00</atom:updated><title>Hide and Show div using Jquery</title><description>&lt;b&gt;We have a requirement to hide and show our Grid in a div.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Following is the code to achieve this functionality&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Define the first div which shows the caption Show/Hide. Whenever the mouse is over the div &quot;divtoggle1&quot; second div &quot;divOrders&quot; is either shown or hidden&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The below &amp;lt;Div&amp;gt; is defined with caption Show/Hide&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;div id=&quot;divtoggle1&quot; style=&quot;text-align:left;width:250px&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Show/Hide&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The below &amp;lt;Div&amp;gt; contains the GridView which we need to &lt;b&gt;Show/Hide&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;lt;div id=&quot;divOrders&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;asp:GridView ID=&quot;grvOrders&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Columns&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TemplateField HeaderText=&quot;firstcolumn&quot; &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;lt;asp:LinkButton ID=&quot;lnkName&quot; runat=&quot;server&quot; Text=&#39;&amp;lt;%#&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; DataBinder.Eval(Container.DataItem,&quot;Names&quot;) %&amp;gt;&#39; &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; CommandName=&quot;OrderDetail&quot;&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;lt;/asp:LinkButton&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;lt;/ItemTemplate&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;The Jquery part which toggle the div&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;we are access the div &quot;divtoggle&quot; with &quot;#&quot; sign because in Jquery when you want to access any element by ID you have to use &quot;#&quot; sign before the name of element.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;we call the &quot;&lt;/b&gt;&lt;b&gt;divtoggle1&quot; mouseover event and in that event we are checking the second div &quot;&lt;/b&gt;&lt;b&gt;divOrders&lt;/b&gt;&lt;b&gt;&quot;.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp;if&amp;nbsp;&lt;/b&gt;&lt;b&gt;&quot;#&lt;/b&gt;&lt;b&gt;divOrders&lt;/b&gt;&lt;b&gt;&quot;&lt;/b&gt;&lt;b&gt;&amp;nbsp;visible then hide it or if it is hidden then make it visible. we also added delay function to make the Show/Hide smooth and we used hide argument &quot;slow&quot;.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $(document).ready(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#divtoggle1&quot;).mouseover(function () {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($(&#39;#divOrders&#39;).is(&#39;:visible&#39;)) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#divOrders&quot;).delay(100).hide(&#39;slow&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#divtoggle1&quot;).text(&#39;Show Orders&#39;);&lt;br /&gt;
&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; else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#divOrders&quot;).delay(100).show(&#39;slow&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#divtoggle1&quot;).text(&#39;Hide Orders&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }); // end of mouse over&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }); &amp;nbsp; &amp;nbsp;// end of ready function&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;</description><link>http://faisaljawaid.blogspot.com/2015/03/hide-and-show-div-using-jquery.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-8397552262880248055</guid><pubDate>Mon, 02 Feb 2015 13:49:00 +0000</pubDate><atom:updated>2015-02-02T16:49:12.573+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Paasing parameter from anchor  control to javascript function</category><title>Passing-parameter-value-through-a-function-from-anchor-tag-in-a-gridview</title><description>We have a requirement where we have to pass Session values and DataBound values to Javascript function using Anchor tag in Gridview.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Following is the Anchor defined in the Gridview where we are passing Session and Eval values as parameter to the Javascript function&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;OpenAttachmentWindow(roomId,StudentId,Id)&lt;/b&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Javascript function description&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;function OpenAttachmentWindow(roomId, StudentId, Id)&lt;br /&gt;
&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;var ReadOnly = 0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;window.open(&#39;UploadSupplierAttachments.aspx?roomId=&#39; + roomId + &#39;&amp;amp;studentId=&#39; +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StudentId + &#39;&amp;amp;id=&#39; + Id + &#39;&amp;amp;ReadOnly=&#39; + ReadOnly, &#39;&#39;, &#39;width=700,height=500&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Gridview Template column&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
We have anchor html control which will pas the server side arguments to javascript function.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;lt;asp:TemplateField HeaderText=&quot;view&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;ItemTemplate&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a &amp;nbsp;onclick=&#39;&amp;lt;%# &quot;OpenAttachmentWindow(&quot; +Session[&quot;roomId&quot;] + &quot; , &quot; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Session[&quot;StudentId&quot;] + &quot;, &quot; + Eval(&quot;Id&quot;) +&quot; );&quot; %&amp;gt;&#39; &amp;nbsp;id=&quot;a1&quot; runat=&quot;server&quot; &amp;gt;Attachment &amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/ItemTemplate&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://faisaljawaid.blogspot.com/2015/02/passing-parameter-value-through.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-805356734552932950</guid><pubDate>Wed, 21 Jan 2015 06:15:00 +0000</pubDate><atom:updated>2015-01-21T09:17:11.070+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Compare Validator used as Datatype check</category><title>Compare Validator DataTypeCheck</title><description>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I have been using asp.net Validator controls for quite long. I have come across the unexplored property of Compare Validator which can check input against following types&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1) Currency&lt;/div&gt;
&lt;div&gt;
2) Date&lt;/div&gt;
&lt;div&gt;
3) Double&lt;/div&gt;
&lt;div&gt;
4) Integer&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
5) String&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
you can use the Validator by setting the following properties&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Operator=&quot;DataTypeCheck&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Select any of the below types for data type check&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Type= Currency&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Double&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;lt;asp:CompareValidator ID=&quot;CompareValidatorNumber&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtTelephone&quot; Text=&quot;*&quot; Display=&quot;Dynamic&quot; ErrorMessage=&quot;Please enter numbers only&quot; Operator=&quot;DataTypeCheck&quot; Type=&quot;String&quot;&amp;gt;&amp;lt;/asp:CompareValidator&amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://faisaljawaid.blogspot.com/2015/01/compare-validator-datatypecheck.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3277093088438725592</guid><pubDate>Wed, 19 Nov 2014 10:18:00 +0000</pubDate><atom:updated>2015-02-05T13:24:43.848+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">filling DataSet by calling oracle procedure</category><title>filling DataSet by calling oracle stored procedure</title><description>&lt;h3&gt;
Use the below code as a reference.&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;public void GetDatainDataset()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp;using (OracleConnection conn = new OracleConnection(strConnStr))&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.Open();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OracleCommand cmdABC = new OracleCommand();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;cmdABC.Connection = conn;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;cmdABC.CommandType = CommandType.StoredProcedure;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;cmdABC.CommandText = Stored Procedure Name;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;cmdABC.Parameters.Add(&quot;P_RC&quot;, OracleDbType.RefCursor).Direction&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;nbsp;ParameterDirection.Output;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSet ds = new DataSet();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OracleDataAdapter adapter = new OracleDataAdapter(cmdPlants);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; adapter.Fill(ds);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddlABC.DataSource = ds.Tables[0];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ddlABC.DataTextField = &quot;A&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ddlABC.DataValueField = &quot;B&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ddlABC.DataBind();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.Close();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.Dispose();&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;}&lt;/span&gt;</description><link>http://faisaljawaid.blogspot.com/2014/11/filling-dataset-by-calling-oracle.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3757225134862745357</guid><pubDate>Mon, 20 Oct 2014 18:20:00 +0000</pubDate><atom:updated>2014-10-20T21:20:59.097+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">smart watch</category><title>Gadget Enthusiasts pebble dropped price for original pebble and pebble steel</title><description>&lt;h2&gt;
&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Statement&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
anxiously waiting for my pebble to connect it to my nexus 4&lt;/div&gt;
</description><link>http://faisaljawaid.blogspot.com/2014/10/gadget-enthusiasts-pebble-dropped-price.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-6057647960294443911</guid><pubDate>Wed, 01 Oct 2014 11:10:00 +0000</pubDate><atom:updated>2014-10-01T16:44:38.742+03:00</atom:updated><title>Generate c# code from *.wsdl file using WSDL Tool</title><description>&lt;b&gt;Web Service Descriptor Language Tool&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
is used to generate the c# code from the *.wsdl file and you can use it as proxy class for prototyping
&lt;br/&gt;&lt;br/&gt;
We have been assigned a small integration project.
It is in inception stage so many things are not clear and
we have been given one *.wsdl file to study and we tried to
generate c# code from it to work on our application prototype
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;wsdl.exe &lt;/b&gt;can be found in Visual Studio 2005 at the following location
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;you can use following command to generate the proxy class from command prompt&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;wsdl /out:C:\Test\out:myProxyClass.cs C:\Test\MyWsdlfile.wsdl&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
Now you can add the myProcyClass.cs in your project and use its methods.
Please don&#39;t modify the myProcyClass.cs file as it auto generated. </description><link>http://faisaljawaid.blogspot.com/2014/10/generate-c-code-from-wsdl-file-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-4609434094775595587</guid><pubDate>Wed, 10 Sep 2014 14:28:00 +0000</pubDate><atom:updated>2014-10-20T17:29:53.449+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL Table Column values comma seperated</category><title>SQL Query Column values as comma separated </title><description>&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;color: #f9cb9c;&quot;&gt;Introduction&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
I have a table as shown below, which has Country_Code and Cities of the a country.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;I need to retrieve distinct cities in a country based on the Country_Code&lt;br /&gt;
column as a comma separated string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIoflNi19Vr-IkHXDbZ2smcGtKLhm5cZx-zWcxtrg2Ueco1Ejw4eFuZIjx6a6LGQDN2C7xYEK4sWZh9nmxI6N0UVMb8hECuPHBiDlwOXSy9G6P3DzC7KACKRjPyddZ7kU0j5ZU9PdfhzR0/s1600/Country.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIoflNi19Vr-IkHXDbZ2smcGtKLhm5cZx-zWcxtrg2Ueco1Ejw4eFuZIjx6a6LGQDN2C7xYEK4sWZh9nmxI6N0UVMb8hECuPHBiDlwOXSy9G6P3DzC7KACKRjPyddZ7kU0j5ZU9PdfhzR0/s1600/Country.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;color: #f9cb9c;&quot;&gt;SQL Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
The following SQL Statement shows how it can be achieved&lt;br /&gt;
&lt;br /&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Begin&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;declare&lt;/span&gt; @str &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;varchar&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1000&lt;/span&gt;)

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; @str= &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;coalesce&lt;/span&gt;(@str + &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;,&#39; &lt;/span&gt;, &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;) + a.CountryLang_Desc 
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DISTINCT&lt;/span&gt; CountryLang_Desc &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;from&lt;/span&gt; CountryLanguages &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;where&lt;/span&gt; Country_Code=&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;IN&#39;&lt;/span&gt;) a

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;print&lt;/span&gt; @str&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 9pt;&quot;&gt;End&lt;/span&gt;&lt;/pre&gt;
</description><link>http://faisaljawaid.blogspot.com/2014/09/sql-query-column-values-as-comma.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIoflNi19Vr-IkHXDbZ2smcGtKLhm5cZx-zWcxtrg2Ueco1Ejw4eFuZIjx6a6LGQDN2C7xYEK4sWZh9nmxI6N0UVMb8hECuPHBiDlwOXSy9G6P3DzC7KACKRjPyddZ7kU0j5ZU9PdfhzR0/s72-c/Country.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-8227817147274322812</guid><pubDate>Wed, 13 Aug 2014 13:21:00 +0000</pubDate><atom:updated>2014-10-27T16:27:02.456+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">_dopostback browser back button</category><title>_doPostBack and Browser back button behavior</title><description>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: orange; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;The odd behavior of Browser Back Button on _doPostBack()&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: orange; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;In one of application developed in Asp.net page is not behaving as desired when browser back button is pressed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The steps performed in the following order&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1) Go to the page&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2) Click a link which causes _doPostBack and navigate to new page&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3) Press the browser back button&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4)click on any button&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This will end up re-executing the _doPostBack() action instead of firing Button click event.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The reason or behavior is as follows&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; border: 0px; font-size: 15px; line-height: 20.7446384429932px; list-style-image: initial; list-style-position: initial; margin: 10px 40px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; letter-spacing: 0.1px; line-height: 1.5; margin: 3px 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Back button goes back to the previous page - page is not reloaded from server!&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; letter-spacing: 0.1px; line-height: 1.5; margin: 3px 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Browser assigns __EVENTxxx etc. with the previous POST back values&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; letter-spacing: 0.1px; line-height: 1.5; margin: 3px 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The server detects the __EVENTxxxx form vars and routes events accordingly (incorrect behavior)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To overcome this behavior i had a simple solution in my mind to expire the page and empty the secure page cache.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;It worked for me by introducing following code in page load event and use is at the top not in any checks like IsPostback etc.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;div&gt;
Response.Cache.SetAllowResponseInBrowserHistory(false);&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Geneva, Verdana, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; letter-spacing: 0.100000001490116px; line-height: 22.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2014/08/dopostback-and-browser-back-button.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3160781029222672251</guid><pubDate>Wed, 16 Jul 2014 10:06:00 +0000</pubDate><atom:updated>2014-11-26T13:09:15.890+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">page expire</category><title>Disable Secure Page Cache or Expire Web Page on browser button</title><description>&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;Expire Web Page on Browser Back/Forward Button click&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Why we need to expire the web page when browser back/forward button&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;is clicked. It is one of the security concern that if any user using any&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;public shared computer and left the browsed page open the bad guy&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;can sneak peak in to your information by using browser back/ forward buttons.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;There are lot of solution available but the solution is little tricky lets start&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;Part 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;First of all add following response properties in you Page_Load function&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and don&#39;t put this code in &lt;b&gt;&lt;u&gt;if(!IsPostback)&lt;/u&gt;&lt;/b&gt; code block in Page_Load function&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;see sample code as below&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;protected void Page_Load(object sender, System.EventArgs e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!Page.IsPostBack)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // you Logic here&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.SetNoStore();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.AppendCacheExtension(&quot;no-cache&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Expires = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;If there is any action or postback then the below mentioned lines will work and expire the page&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Page.Response.Cache.SetNoStore();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Page.Response.Cache.AppendCacheExtension(&quot;no-cache&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Page.Response.Expires = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;Part 2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now to add your own logic to cater pages where we don&#39;t have any postback.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add the following code in you Page_Load function if(!IsPostBack) check&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;as below&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We have taken one Session variable &quot;TimeStamp&quot; and one ViewState variable &quot;TimeStamp&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;when the web page is loaded with any navigation link inside the application we have Session[&quot;TimeStamp&quot;] and ViewState[&quot;TimeStamp&quot;] variable value &quot;null&quot; and that means browser buttons are not clicked and we don&#39;t have to expire the Page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Whenever the user click the browser back/forward button the ViewState will become null for that page and Session will contain the &quot;TimeStamp&quot; so we infer that browser button is clicked and we need to expire the page and redirect it to a page in our case we redirect to&amp;nbsp;&lt;span style=&quot;color: #cc0000;&quot;&gt;WebPageExpire.aspx&lt;/span&gt;&amp;nbsp;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;protected void Page_Load(object sender, System.EventArgs e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!Page.IsPostBack)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // you Logic here&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if (isPageExpired())&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&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; Response.Redirect(&quot;WebPageExpire.aspx&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&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;string strNow = DateTime.Now.ToString();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&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;Session[&quot;TimeStamp&quot;] = strNow;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ViewState[&quot;TimeStamp&quot;] = strNow;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.SetNoStore();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Cache.AppendCacheExtension(&quot;no-cache&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page.Response.Expires = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now add the function&amp;nbsp;isPageExpired() which compares the Session[&quot;TimeStamp&quot;] and ViewState[&quot;TimeStamp&quot;].&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;private bool isPageExpired()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;if (Session[&quot;TimeStamp&quot;] == ViewState[&quot;TimeStamp&quot;])&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;One more thing from where ever you are navigating either asp:Button , asp:Link etc&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;we have to initialize the &lt;span style=&quot;color: #cc0000;&quot;&gt;Session[&quot;TimeStamp&quot;]= null&lt;/span&gt; so that every time when we navigate legitimately our &amp;nbsp;Session and Viewstate have same value.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; protected void BtnRegister_ServerClick(object sender, System.Web.UI.ImageClickEventArgs e)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session[&quot;TimeStamp&quot;] = null;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Redirect(&quot;Register.aspx&quot;, false);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The same logic we have to add in every page where we need secure cache disable functionality plus you have to design a page in my case i have designed the page WebPageExpire.aspx and show message to user WebPage has expired please login again.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I hope this will solve the problem and looking forward to hear from you guys.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</description><link>http://faisaljawaid.blogspot.com/2014/07/disable-secure-page-cache-or-expire-web.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666999999961</georss:point><georss:box>26.5471995 49.021219999999964 27.4528005 50.312113999999958</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3339568338130306688</guid><pubDate>Mon, 19 May 2014 11:40:00 +0000</pubDate><atom:updated>2014-05-19T14:42:14.411+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Anti cross site scripting library from microsoft.</category><title>Microsoft Anti Cross Site Scripting Library a tool to defend yourself against Cross Site Scripting XSS</title><description>&lt;br /&gt;
&lt;br /&gt;
To prevent cross site scripting use Microsoft Anti Cross Site Scripting Library its free and need of time following is the link from where you can download.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=28589&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Microsoft Anti Cross Site Scripting Library&lt;/b&gt;&lt;/a&gt;</description><link>http://faisaljawaid.blogspot.com/2014/05/microsoft-anti-cross-site-scripting.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666699999951</georss:point><georss:box>26.5471995 49.021219699999953 27.4528005 50.312113699999948</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-1212846871271956507</guid><pubDate>Wed, 12 Feb 2014 11:22:00 +0000</pubDate><atom:updated>2014-05-19T14:26:14.563+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">view state encryption</category><title>Encrypt View State Data for ASP.net Application</title><description>&lt;br /&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Encrypting view state is used to reduce the chance of information disclosure and some one getting information to cause harm to the user.&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In Asp.net 2.0 the support for encryption has been enhanced. Now you can define encryption of view state on Page level. Following is the implementation in the Page tag of the aspx file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;%@ page language=&quot;c#&quot; masterpagefile=&quot;~/MasterPage.master&quot; inherits=&quot;Abc.Default, App_Web_Default.aspx.cdcab7d2&quot; validaterequest=&quot;false&quot; theme=&quot;ABC&quot; &lt;b style=&quot;background-color: yellow;&quot;&gt;viewstateencryptionmode=&quot;Always&quot;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt; enableEventValidation=&quot;false&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The attribute ViewStateEncryptionMode &amp;nbsp;has three values.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1) &lt;b&gt;Auto&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2) &lt;b&gt;Always&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3) &lt;b&gt;Never&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The default for ViewStateEncryptionMode is &lt;b&gt;Auto&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We can also set its value in the web.config file as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13.15pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 102.0pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;configuration&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13.15pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
&amp;lt;system.web&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13.15pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;pages ViewStateEncryptionMode=&quot;Always&quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13.15pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;
&amp;lt;/system.web&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13.15pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://faisaljawaid.blogspot.com/2014/02/encrypt-view-state-data-for-aspnet.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666699999951</georss:point><georss:box>26.5471995 49.021219699999953 27.4528005 50.312113699999948</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-5664967069734260927</guid><pubDate>Sun, 12 Jan 2014 12:26:00 +0000</pubDate><atom:updated>2014-05-13T08:31:06.750+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bound fields</category><category domain="http://www.blogger.com/atom/ns#">Gridview</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">radiobutton</category><title>How to access a radio button selected Boundfield value from a GridView in javascript</title><description> 
&lt;br/&gt;&lt;b&gt;function RefreshParent()&lt;/b&gt;
&lt;br/&gt; {
&lt;br/&gt;        
            //&lt;b&gt;get the gridview object&lt;/b&gt; &lt;br/&gt;     
            var gv = document.getElementById(&quot;grdViewBrand&quot;);&lt;br/&gt; 
            //&lt;b&gt;get the gridview input object collection&lt;/b&gt;&lt;br/&gt;
            var rbs = gv.getElementsByTagName(&quot;input&quot;);&lt;br/&gt; 
           
            //&lt;b&gt;Traverse the input object collection&lt;/b&gt;&lt;br/&gt;
             for (var i = 0; i &lt; rbs.length; i++)&lt;br/&gt;  {&lt;br/&gt; 
             
              //&lt;b&gt;Check for the checked radio button&lt;/b&gt;&lt;br/&gt;
                if (rbs[i].type == &quot;radio&quot;) &lt;br/&gt; 
                {&lt;br/&gt; 

                    if (rbs[i].checked)&lt;br/&gt; 
                     {&lt;br/&gt; 
                           //&lt;b&gt;get the bound field value from the position where check box is &lt;/b&gt;checked&lt;br/&gt;
                           // [i+1] is due to gridview dataBoundField includes header&lt;br/&gt; row also which is not present in input collection&lt;br/&gt;   
                           var brandName = gv.rows[i+1].cells[0].innerText;&lt;br/&gt; 
                            break;&lt;br/&gt; 
                     }&lt;br/&gt; 
                }&lt;br/&gt; 
              
                
            }&lt;br/&gt; &lt;br/&gt;
&lt;b&gt;Description&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
Get the gridview object and its inputs elements. &lt;br/&gt; 
Traverse through the (input)collection and get the &lt;br/&gt; 
selected Radio Button row.&lt;br/&gt; &lt;br/&gt; 
Now from the griview object get the rows position and the cell&lt;br/&gt; 
and call its inner text property&lt;br/&gt; 
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNZY59wLIUKLjZDQwN82pJqwBffiipM8h6lKesycPrTmPCwwD4zFG_AxaP4PU9zRSOUz-sLZjWaN_5YUrejbI4u-vpnggU4GNrwFnJFDGE16rHVURHHivo9L6BWRQBAMJG8lWRHX8elH4e/s1600/gridview.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNZY59wLIUKLjZDQwN82pJqwBffiipM8h6lKesycPrTmPCwwD4zFG_AxaP4PU9zRSOUz-sLZjWaN_5YUrejbI4u-vpnggU4GNrwFnJFDGE16rHVURHHivo9L6BWRQBAMJG8lWRHX8elH4e/s320/gridview.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://faisaljawaid.blogspot.com/2014/01/how-to-access-radio-button-selected.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNZY59wLIUKLjZDQwN82pJqwBffiipM8h6lKesycPrTmPCwwD4zFG_AxaP4PU9zRSOUz-sLZjWaN_5YUrejbI4u-vpnggU4GNrwFnJFDGE16rHVURHHivo9L6BWRQBAMJG8lWRHX8elH4e/s72-c/gridview.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27 49.666666699999951</georss:point><georss:box>26.5471995 49.021219699999953 27.4528005 50.312113699999948</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-3811582424963618323</guid><pubDate>Tue, 31 Dec 2013 13:22:00 +0000</pubDate><atom:updated>2013-12-31T16:27:42.588+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Enforce Secure flag for session cookies in ASP.net</category><title> Enforce Secure flag for session cookies in ASP.net</title><description>&lt;br&gt;&lt;br&gt;To avoid disclosure of sensitive information in transit from the server to the browser,&lt;br&gt; many applications use HTTP over SSL (HTTPS).&lt;br&gt; However, because it may be possible to navigate away from the HTTPS protected transport settings of the site,&lt;br&gt; either by someone specifically providing a link to a non https:// resource or via the application using a absolute reference and mistakenly using http://,&lt;br&gt; users may subject to their communications being &quot;sniffed&quot; between the browser and server.&lt;br&gt; Not only is the user data posted to a web server important to protect using HTTPS -&lt;br&gt; if an attacker were able to see session identifiers passing in plain sight they could reuse &lt;br&gt;them and masquerade as another user while the session was active (i.e. The user hadn&#39;t logged off).&lt;br&gt; To avoid this from happening, cookies can be set to be &quot;secure&quot; - that is,&lt;br&gt; they are only to be transmitted when a secure channel is available.
&lt;br&gt;&lt;br&gt;
Add the following tag in the webConfig
&lt;br&gt;&lt;br&gt;
&lt;b&gt;&amp;ltSystem.web&amp;gt&lt;/b&gt;&lt;br&gt;
&lt;b&gt;&amp;lthttpCookies requireSSL=&quot;true&quot;/&amp;gt&lt;/b&gt;&lt;br&gt;
&lt;b&gt;&amp;lt/System.web&amp;gt&lt;/b&gt;</description><link>http://faisaljawaid.blogspot.com/2013/12/secure-flag-on-session-cookies-in-aspnet.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Saudi Arabia</georss:featurename><georss:point>23.885942 45.079162</georss:point><georss:box>9.193835 24.424864999999997 38.578049 65.733459</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-844980750511517355</guid><pubDate>Wed, 11 Dec 2013 06:54:00 +0000</pubDate><atom:updated>2013-12-11T09:54:13.419+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AutocompleteType does not produce desired results in ASP.net 2.0</category><title>Autocomplete to work with Firefox,IE9+ and Chrome ASP.net C# (AutocompleteType does not produce desired results)</title><description>AutoCompleteType is not producing the desired results 

auto complete feature in the password field needs to be disabled which was done through following Asp.net attribute of &lt;b&gt; &amp;lt asp:TextBox &amp;gt &lt;/b&gt;

&lt;br/&gt;&lt;br/&gt;

 &lt;b&gt; &amp;lt asp:TextBox ID=&quot;passcode&quot; runat=&quot;server&quot; size=&quot;20&quot; TextMode=&quot;Password&quot;   AutoCompleteType=&quot;Disabled&quot; 
                                    Wrap=&quot;False&quot; &amp;gt &amp;lt /asp:TextBox &amp;gt &lt;/b&gt;
&lt;br/&gt;
&lt;br/&gt;
When it was tested it is not working with IE9 and chrome.
&lt;br/&gt;
The quick fix for this potential security threat is as below
&lt;br/&gt;
In the &lt;b&gt; PageLoad &lt;/b&gt; event of your &lt;b&gt; aspx.cs &lt;/b&gt; file add attribute as follows

&lt;br/&gt;&lt;br/&gt;

 &lt;b&gt; passcode.Attributes.Add(&quot;autocomplete&quot;, &quot;off&quot;); &lt;/b&gt;</description><link>http://faisaljawaid.blogspot.com/2013/12/autocomplete-to-work-with-firefoxie9.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Al Jubail Saudi Arabia</georss:featurename><georss:point>27.012563 49.658128000000033</georss:point><georss:box>26.5597625 49.012681000000036 27.4653635 50.303575000000031</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-8608285614123811274</guid><pubDate>Tue, 12 Feb 2013 12:44:00 +0000</pubDate><atom:updated>2013-02-12T15:44:38.695+03:00</atom:updated><title>WEB Workers (Part 2)</title><description>
&lt;div style=&quot;font-name:verdana; font-size:12px;font-weight:bold;&quot;&gt;
Below is the simple code to see WEB Workers in action
&lt;/div&gt;

&lt;br&gt;

The Main file code

&lt;br&gt;

&amp;lt!DOCTYPE html&amp;gt&lt;br&gt;
&amp;lthtml&amp;gt&lt;br&gt;
&amp;ltbody&amp;gt&lt;br&gt;

&amp;ltp&amp;gtCount numbers: &amp;ltoutput id=&quot;result&quot;&amp;gt&amp;lt/output&amp;gt&amp;lt/p&amp;gt&lt;br&gt;
&amp;ltbutton onclick=&quot;startWorker()&quot;&amp;gtStart Worker&amp;lt/button&amp;gt&lt;br&gt;
&amp;ltbutton onclick=&quot;stopWorker()&quot;&amp;gtStop Worker&amp;lt/button&amp;gt&lt;br&gt;
&lt;br&gt;&lt;br&gt;

&amp;ltscript&amp;gt&lt;br&gt;
var w;&lt;br&gt;

function startWorker()&lt;br&gt;
{&lt;br&gt;
if(typeof(Worker)!==&quot;undefined&quot;)&lt;br&gt;
{&lt;br&gt;
  if(typeof(w)==&quot;undefined&quot;)&lt;br&gt;
    {&lt;br&gt;
    w=new Worker(&quot;demo_workers.js&quot;);&lt;br&gt;
    }&lt;br&gt;
  w.onmessage = function (event) {&lt;br&gt;
    document.getElementById(&quot;result&quot;).innerHTML=event.data;&lt;br&gt;
  };&lt;br&gt;
}&lt;br&gt;
else&lt;br&gt;
{&lt;br&gt;
document.getElementById(&quot;result&quot;).innerHTML=&quot;Sorry, your browser does not support Web Workers...&quot;;&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;

function stopWorker()&lt;br&gt;
{ &lt;br&gt;
w.terminate();&lt;br&gt;
}&lt;br&gt;
&amp;lt/script&amp;gt&lt;br&gt;
&lt;br&gt;
&amp;lt/body&amp;gt&lt;br&gt;
&amp;lt/html&amp;gt&lt;br&gt;
&lt;br&gt;
&lt;div style=&quot;font-name:verdana; font-size:12px;font-weight:bold;&quot;&gt;
The js file code
&lt;/div&gt;

&lt;br&gt;




function showMessage()&lt;br&gt;
{&lt;br&gt;

postMessage(&quot;Hello World.&quot;);&lt;br&gt;

}&lt;br&gt;



</description><link>http://faisaljawaid.blogspot.com/2013/02/web-workers-part-2.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-1474465385631892053</guid><pubDate>Sun, 10 Feb 2013 09:51:00 +0000</pubDate><atom:updated>2013-02-10T13:18:45.363+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WEB Workers Object is not initiated</category><category domain="http://www.blogger.com/atom/ns#">WEB Workers run locally</category><title>Web Workers (Run Locally)</title><description>&lt;div style=&quot;font-name:verdana;font-size:15px;font-weight:bold;&quot;&gt;
 
  How to run WEB Worker locally with Google Chrome.

&lt;/div&gt;

&lt;br&gt;

 IE version 10 supports WEB Workers the previous versions doesnot support.
&lt;br&gt;

&lt;br&gt;
&lt;p&gt;
I face this problem while creating and testing WEB Workers object on my local machine and nothing was happening.
In order to run the code on your local machine with Google chrome we have to enable the flag via parameters while running the code

&lt;/p&gt;

&lt;br&gt;
&lt;p&gt;
Right click on the browser icon and select properties there a window will appear and you will see Target field.
Use following command and append it in the Target field while running Chrome. Please make sure to close all Chrome windows.
&lt;/p&gt;

&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
--allow-file-access-from-files
&lt;/li&gt;
&lt;li&gt;
  The Target field Look something like following
  C:\Users\UserNameHere\AppData\Local\Google\Chrome\Application\chrome.exe&quot; --allow-file-access-from-files
&lt;/li&gt;
&lt;/ul&gt;


&lt;br&gt;

&lt;div style=&quot;font-name:verdana;font-size:12px;font-weight:bold;&quot;&gt;
Note: this is risky way of running and testing your code.&lt;br&gt;
Please deploy your code on webserver and you dont need to &lt;br&gt;
make these changes.
&lt;br&gt;
Please be aware to remove the above changes from browser.
&lt;/div&gt;

&lt;br&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAQh2fdSRJHX-odJf4EiR1pc2mOYAdiVRNFYd1CdVhYjXGETuq9OXHjl0jjvRnX0MwmXNAO2bqqtoHtK3Cje7oVznhnmlNhGCF6FpqReCrP5XFgIxg16wLcSHfzdzDFzVHSGX8B-gM3PNS/s1600/ChromeWEBWorkerlocal.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAQh2fdSRJHX-odJf4EiR1pc2mOYAdiVRNFYd1CdVhYjXGETuq9OXHjl0jjvRnX0MwmXNAO2bqqtoHtK3Cje7oVznhnmlNhGCF6FpqReCrP5XFgIxg16wLcSHfzdzDFzVHSGX8B-gM3PNS/s320/ChromeWEBWorkerlocal.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

</description><link>http://faisaljawaid.blogspot.com/2013/02/web-workers-run-locally.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAQh2fdSRJHX-odJf4EiR1pc2mOYAdiVRNFYd1CdVhYjXGETuq9OXHjl0jjvRnX0MwmXNAO2bqqtoHtK3Cje7oVznhnmlNhGCF6FpqReCrP5XFgIxg16wLcSHfzdzDFzVHSGX8B-gM3PNS/s72-c/ChromeWEBWorkerlocal.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jubail Saudi Arabia</georss:featurename><georss:point>27.012563 49.658128000000033</georss:point><georss:box>26.5600455 49.012681000000036 27.4650805 50.303575000000031</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-8693147242197251987</guid><pubDate>Sat, 09 Feb 2013 11:55:00 +0000</pubDate><atom:updated>2013-02-09T15:06:10.110+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Web Worker</category><title>HTML5 WEB Workers Part 1</title><description>&lt;div style=&quot;font-family:verdana;font-size:15px;font-weight:bold;&quot;&gt;
Javascript is designed to run in single Thread environment.
&lt;/div&gt;
&lt;br&gt;

&lt;p&gt;Javascript does not support Multi Threading. Javascript is 
single threaded and this is major hindrance in implementing 
some cool capabilities in applications.There are other workarounds
used by developers but they dont provide the flexibility which is
now available with introduction of &lt;b&gt;WEB Workers in HTML5&lt;/b&gt;.  &lt;/p&gt;
&lt;br&gt;
WEB Workers are perfect for keeping your UI refresh, performant and responsive for users.
&lt;br&gt;&lt;br&gt;

&lt;div style=&quot;font-family:verdana;font-size:15px;font-weight:bold;&quot;&gt;Types of WEB Workers &lt;/div&gt;

&lt;ul&gt;
 &lt;li&gt; Dedicated Workers &lt;/li&gt;
 &lt;li&gt; Shared Workers &lt;/li&gt;
&lt;/ul&gt;
Note: Only Dedicated Workers are discussed in this article

&lt;br&gt;
&lt;br&gt;
&lt;div style=&quot;font-family:verdana;font-size:15px;font-weight:bold;&quot;&gt;
WEB Worker and DOM
&lt;/div&gt;

&lt;br&gt;

Since WEB worker are external files they don&#39;t have access to following Javascript objects.&lt;br&gt;

&lt;ul&gt;
 &lt;li&gt; The window object &lt;/li&gt;
 &lt;li&gt; The document object &lt;/li&gt;
 &lt;li&gt; The parent object &lt;/li&gt;
&lt;/ul&gt;

&lt;br&gt;
Continued Part 2</description><link>http://faisaljawaid.blogspot.com/2013/02/html5-web-workers.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Jubail Saudi Arabia</georss:featurename><georss:point>27.012563 49.658128000000033</georss:point><georss:box>26.5600455 49.012681000000036 27.4650805 50.303575000000031</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4218629536287974788.post-4972895688766679050</guid><pubDate>Wed, 06 Feb 2013 07:17:00 +0000</pubDate><atom:updated>2013-02-06T10:22:19.040+03:00</atom:updated><title>CANVAS 2D API (HTML5 CANVAS Part 3)</title><description>&lt;b&gt;Drawing on canvas can be done by canvas 2D API&lt;/b&gt;
&lt;br&gt;
There are plethora of Methods and Properties in canvas 2D API.&lt;br&gt;
&lt;br&gt;

2D API reference:&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff975057.aspx&quot; target=&quot;_blank&quot;&gt;click&lt;/a&gt;
</description><link>http://faisaljawaid.blogspot.com/2013/02/canvas-2d-api-canvas-part-3.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>