<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-200919868103760266</id><updated>2025-01-07T05:11:04.810-08:00</updated><category term="ASP.Net"/><category term="C#"/><category term=".Net"/><category term="API"/><category term="SharePoint 2010"/><category term="Sql Server"/><category term="Cognos"/><category term="JavaScript"/><category term="Sharepoint 2013"/><category term="Teradata"/><category term="iOS"/><category term="iTextsharp"/><title type='text'>Programming Heaven</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-4402999400562213349</id><published>2020-09-23T05:39:00.002-07:00</published><updated>2023-03-06T22:33:33.525-08:00</updated><title type='text'>Hide css call property during the inspect</title><content type='html'>&lt;b&gt;Step 1&lt;/b&gt;&amp;nbsp;&lt;div&gt;Put below  script in web page and see
&lt;script type=&quot;application/x-javascript&quot;&gt; addEventListener(&quot;load&quot;, function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } &lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;script type=&quot;application/x-javascript&quot;&amp;gt; addEventListener(&quot;load&quot;, function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } &amp;lt;/script&amp;gt;&lt;/div&gt;


&lt;form&gt;&lt;script src=&quot;https://checkout.razorpay.com/v1/payment-button.js&quot; data-payment_button_id=&quot;pl_KDHRfvMJj7kWrr&quot; async&gt; &lt;/script&gt; &lt;/form&gt;</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/4402999400562213349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2020/09/hide-css-call-property-during-inspect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4402999400562213349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4402999400562213349'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2020/09/hide-css-call-property-during-inspect.html' title='Hide css call property during the inspect'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-3575296780444818909</id><published>2020-08-22T21:41:00.000-07:00</published><updated>2020-08-22T21:41:10.742-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><title type='text'>Two Submit Button One Need validate and another no need to validate in HTML 5 Required Attributes</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;u&gt;Step 1&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Put &quot;&lt;span style=&quot;background-color: white; color: red; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px;&quot;&gt;formnovalidate=false&quot; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px;&quot;&gt;in no validate button and check&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/3575296780444818909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2020/08/two-submit-button-one-need-validate-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3575296780444818909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3575296780444818909'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2020/08/two-submit-button-one-need-validate-and.html' title='Two Submit Button One Need validate and another no need to validate in HTML 5 Required Attributes'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-3476037268802192389</id><published>2020-01-14T20:56:00.001-08:00</published><updated>2020-01-14T20:56:33.704-08:00</updated><title type='text'>Disable .asmx file direct browse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1) Add&amp;nbsp; below configuration&amp;nbsp; in web.config file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;system.web&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;webServices&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;wsdlHelpGenerator href=&quot;Deny.aspx&quot;&amp;gt;&amp;lt;/wsdlHelpGenerator&amp;gt; // You need to create this page (simple aspx/htm to show to users)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/webServices&amp;gt;&lt;br /&gt;
&amp;lt;/system.web&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
&amp;lt;system.web&amp;gt;&lt;br /&gt;
&amp;lt;webServices&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;protocols&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;remove name=&quot;HttpPost&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;remove name=&quot;HttpGet&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;remove name=&quot;Documentation&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/protocols&amp;gt;&lt;br /&gt;
&amp;lt;/webServices&amp;gt;&lt;br /&gt;
&amp;lt;/system.web&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/3476037268802192389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2020/01/disable-asmx-file-direct-browse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3476037268802192389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3476037268802192389'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2020/01/disable-asmx-file-direct-browse.html' title='Disable .asmx file direct browse'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-8055794939606278550</id><published>2016-05-26T22:33:00.004-07:00</published><updated>2016-05-26T22:33:49.369-07:00</updated><title type='text'>Delete All Object in SQL Server Database Query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;1a017dfd-7e5a-44c3-81c0-acc5f980bbdd&quot; id=&quot;21ec2251-38d4-451b-af31-5eab5cebbe04&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c2e93d65-8711-40af-a932-93128d2c1075&quot; id=&quot;15669eca-18fd-45b1-9d23-9c5385c73e4d&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;P&#39; AND category = 0 ORDER BY [name])&lt;br /&gt;
&lt;br /&gt;
WHILE @name is not null&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;DROP PROCEDURE [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;e431a5ed-a940-4619-bc71-60cafce1440d&quot; id=&quot;b825f876-798c-4b35-bc15-f46fd963e393&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;e431a5ed-a940-4619-bc71-60cafce1440d&quot; id=&quot;966293c8-8129-46f4-89de-1e8a3bb66182&quot;&gt;(&lt;/gs&gt;@name) +&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39;Dropped Procedure: &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;P&#39; AND category = 0 AND [name] &amp;gt; @name ORDER BY [name])&lt;br /&gt;
END&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
/* Drop all views */&lt;br /&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;31de08f6-a281-4da0-bddf-e3fd06531ff0&quot; id=&quot;b4a6cdda-26ff-4f3f-9efc-55477f0839bb&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;34389894-3d91-41c3-9fde-4a283cd3d96b&quot; id=&quot;cc2d4b19-e09d-4e5f-ac77-f4a5ed10897c&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;V&#39; AND category = 0 ORDER BY [name])&lt;br /&gt;
&lt;br /&gt;
WHILE @name IS NOT NULL&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;DROP VIEW [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;0119cca3-6372-4274-80a8-91376ccdfb85&quot; id=&quot;08f66117-0cc4-4bc2-a70c-ad0e14a8cb94&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;0119cca3-6372-4274-80a8-91376ccdfb85&quot; id=&quot;e3ddc2e8-2ed9-4a34-a8ce-93447d06f78e&quot;&gt;(&lt;/gs&gt;@name) +&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39;Dropped View: &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;V&#39; AND category = 0 AND [name] &amp;gt; @name ORDER BY [name])&lt;br /&gt;
END&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
/* Drop all functions */&lt;br /&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;3de2b0ce-ea51-4c4d-8325-3ed30ec0211c&quot; id=&quot;736d67f0-9a03-4e53-8019-2b9a961e57c0&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;558861ce-c926-453f-8194-0241374b32fe&quot; id=&quot;08e7225f-33e6-4e16-9972-b162b529c18b&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] IN (N&#39;FN&#39;, N&#39;IF&#39;, N&#39;TF&#39;, N&#39;FS&#39;, N&#39;FT&#39;) AND category = 0 ORDER BY [name])&lt;br /&gt;
&lt;br /&gt;
WHILE @name IS NOT NULL&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;DROP FUNCTION [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;1e6fd83a-128c-418f-be8d-30d11b765746&quot; id=&quot;2999a2fd-78b4-42ba-9139-d3c97269069c&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;1e6fd83a-128c-418f-be8d-30d11b765746&quot; id=&quot;11dfe921-1ba9-4e88-9f5b-999ddebee4be&quot;&gt;(&lt;/gs&gt;@name) +&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39;Dropped Function: &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] IN (N&#39;FN&#39;, N&#39;IF&#39;, N&#39;TF&#39;, N&#39;FS&#39;, N&#39;FT&#39;) AND category = 0 AND [name] &amp;gt; @name ORDER BY [name])&lt;br /&gt;
END&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
/* Drop all Foreign Key constraints */&lt;br /&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;e1d47a66-a365-4744-a399-f2795f03be78&quot; id=&quot;6017dd72-f332-498a-8d17-ee136de4ba4d&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @constraint VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;274d7d20-3780-470e-b891-912d0df94163&quot; id=&quot;cc88ae18-6e91-48f4-90b2-b70c5662a31f&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;6693b0d6-8480-4780-8914-60abde6e7441&quot; id=&quot;da67c4be-f2c1-4094-8e01-730c9c51330f&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;14c91ee1-838d-4e56-9ecd-4a24b52b90f3&quot; id=&quot;a069cf59-50ea-4e0c-a3c7-c0b3e8bdfeea&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;14c91ee1-838d-4e56-9ecd-4a24b52b90f3&quot; id=&quot;50718462-d461-4eae-8b0a-b58f1fb88e15&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;FOREIGN KEY&#39; ORDER BY TABLE_NAME)&lt;br /&gt;
&lt;br /&gt;
WHILE @name is not null&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @constraint = (SELECT TOP 1 CONSTRAINT_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;296e10f0-d039-436a-ba90-c2057bcd6a49&quot; id=&quot;f4fbad9c-9132-4a67-a359-7f2031fa5c5e&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;296e10f0-d039-436a-ba90-c2057bcd6a49&quot; id=&quot;c01c8f04-fc4c-49bb-9c9e-7b244895da85&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;FOREIGN KEY&#39; AND TABLE_NAME = @name ORDER BY CONSTRAINT_NAME)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; WHILE @constraint IS NOT NULL&lt;br /&gt;
&amp;nbsp; &amp;nbsp; BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;ALTER TABLE [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c5eabc54-7f34-4b0f-91f0-0cdf2eabf6f3&quot; id=&quot;483d7ddf-dff0-4286-a942-85486fd6e4e1&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c5eabc54-7f34-4b0f-91f0-0cdf2eabf6f3&quot; id=&quot;7f747892-92e0-49f9-b58b-f35367deba5b&quot;&gt;(&lt;/gs&gt;@name) +&#39;] DROP CONSTRAINT [&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c5eabc54-7f34-4b0f-91f0-0cdf2eabf6f3&quot; id=&quot;ea580685-11e2-493f-b00b-3fe20bda7a2d&quot;&gt;(&lt;/gs&gt;@constraint) +&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRINT &#39;Dropped FK Constraint: &#39; + @constraint + &#39; on &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT @constraint = (SELECT TOP 1 CONSTRAINT_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;a2fb0260-55bb-4a57-a687-16a919f748a9&quot; id=&quot;51077cd9-d9e3-457a-b5d3-3be0191d9c88&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;a2fb0260-55bb-4a57-a687-16a919f748a9&quot; id=&quot;70f57e62-e1d1-420e-8f54-75cd081a94e4&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;FOREIGN KEY&#39; AND CONSTRAINT_NAME &amp;lt;&amp;gt; @constraint AND TABLE_NAME = @name ORDER BY CONSTRAINT_NAME)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; END&lt;br /&gt;
SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;579865a2-c7db-41be-8d39-b89363e87b5e&quot; id=&quot;3b9eee8c-04f2-448f-a674-83a20ab2ddd6&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;579865a2-c7db-41be-8d39-b89363e87b5e&quot; id=&quot;6196d8b8-5079-4988-9856-b469f00fa090&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;FOREIGN KEY&#39; ORDER BY TABLE_NAME)&lt;br /&gt;
END&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
/* Drop all Primary Key constraints */&lt;br /&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c91601de-614f-426b-bec0-2b2d1c6f1787&quot; id=&quot;83116605-6b8e-4e99-a733-e3ff7e409b2e&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @constraint VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;11d47c35-7e3f-4eaa-a8ba-054e2c9f580f&quot; id=&quot;4abc42a4-630c-4ad1-83c5-de4d36c9e32a&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;a403784b-3a9c-45e7-b8ec-f92a10bbce25&quot; id=&quot;83401c27-da30-4718-8861-6f345db20493&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;edd60676-57b2-4713-b1b7-76dd44ed0a71&quot; id=&quot;a2dd2272-c9c5-41b7-893d-c548a1cbe626&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;edd60676-57b2-4713-b1b7-76dd44ed0a71&quot; id=&quot;1b670709-b089-468f-83f9-4a481a9e647b&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;PRIMARY KEY&#39; ORDER BY TABLE_NAME)&lt;br /&gt;
&lt;br /&gt;
WHILE @name IS NOT NULL&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @constraint = (SELECT TOP 1 CONSTRAINT_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;2f3b2e75-54e9-4c7b-a5d8-94d663aa2d2b&quot; id=&quot;50a6a015-5ff7-4647-8da5-c4783b825f20&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;2f3b2e75-54e9-4c7b-a5d8-94d663aa2d2b&quot; id=&quot;85d958cc-d563-4c3d-a9dd-41ab76329ec4&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;PRIMARY KEY&#39; AND TABLE_NAME = @name ORDER BY CONSTRAINT_NAME)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; WHILE @constraint is not null&lt;br /&gt;
&amp;nbsp; &amp;nbsp; BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;ALTER TABLE [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;16dbf744-3725-4108-9a70-444686395e15&quot; id=&quot;497d9223-129d-4409-8b54-9b47da9771d9&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;16dbf744-3725-4108-9a70-444686395e15&quot; id=&quot;9929ea29-ab29-4a14-8c7a-0526472aae52&quot;&gt;(&lt;/gs&gt;@name) +&#39;] DROP CONSTRAINT [&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;16dbf744-3725-4108-9a70-444686395e15&quot; id=&quot;d43936b3-aeb6-402b-b9fa-07e69ad976e9&quot;&gt;(&lt;/gs&gt;@constraint&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;16dbf744-3725-4108-9a70-444686395e15&quot; id=&quot;3c8b4c08-4b04-426b-ac67-0f75d3f78f3d&quot;&gt;)&lt;/gs&gt;+&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRINT &#39;Dropped PK Constraint: &#39; + @constraint + &#39; on &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT @constraint = (SELECT TOP 1 CONSTRAINT_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;72b1bbbe-ff70-4bda-a5b3-ab551f6a440b&quot; id=&quot;b6e6cb7f-d015-411b-89ee-6e1b878fb396&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;72b1bbbe-ff70-4bda-a5b3-ab551f6a440b&quot; id=&quot;8f10e126-d2a7-4920-a297-1bfd53499f2f&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;PRIMARY KEY&#39; AND CONSTRAINT_NAME &amp;lt;&amp;gt; @constraint AND TABLE_NAME = @name ORDER BY CONSTRAINT_NAME)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; END&lt;br /&gt;
SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;ff29e233-9b92-42f0-879a-8f1de4929b31&quot; id=&quot;67b82207-c85a-44fd-a1d4-ae81cbd86ce2&quot;&gt;.&lt;/gs&gt;TABLE_CONSTRAINTS WHERE constraint_catalog=DB_NAME&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;ff29e233-9b92-42f0-879a-8f1de4929b31&quot; id=&quot;2e7ef486-5055-4fae-8931-1aaee3a37d32&quot;&gt;(&lt;/gs&gt;) AND CONSTRAINT_TYPE = &#39;PRIMARY KEY&#39; ORDER BY TABLE_NAME)&lt;br /&gt;
END&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
/* Drop all tables */&lt;br /&gt;
DECLARE @name VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;c90a6d00-a582-4b42-a3a8-c2e7a1af41af&quot; id=&quot;97178093-4996-4521-ab34-479eb76e375e&quot;&gt;(&lt;/gs&gt;128)&lt;br /&gt;
DECLARE @SQL VARCHAR&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;0a9682b9-3801-4233-a1cf-a630562d0ab6&quot; id=&quot;883300f0-85fc-49d5-adf7-788bbbbc60be&quot;&gt;(&lt;/gs&gt;254)&lt;br /&gt;
&lt;br /&gt;
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;U&#39; AND category = 0 ORDER BY [name])&lt;br /&gt;
&lt;br /&gt;
WHILE @name IS NOT NULL&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @SQL = &#39;DROP TABLE [dbo]&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;910c5fb1-be4d-4b2d-88a9-3ede866a7499&quot; id=&quot;4b6cef9a-e974-4b69-888b-5b942864b594&quot;&gt;.&lt;/gs&gt;[&#39; + RTRIM&lt;gs class=&quot;GINGER_SOFTWARE_mark&quot; ginger_software_uiphraseguid=&quot;910c5fb1-be4d-4b2d-88a9-3ede866a7499&quot; id=&quot;531a28ba-8c62-42a0-9c4a-526ce9e0a4e1&quot;&gt;(&lt;/gs&gt;@name) +&#39;]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXEC (@SQL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39;Dropped Table: &#39; + @name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = &#39;U&#39; AND category = 0 AND [name] &amp;gt; @name ORDER BY [name])&lt;br /&gt;
END&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
GO&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/8055794939606278550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2016/05/delete-all-object-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8055794939606278550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8055794939606278550'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2016/05/delete-all-object-in-sql-server.html' title='Delete All Object in SQL Server Database Query'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-8480556205824976586</id><published>2016-04-28T06:21:00.000-07:00</published><updated>2016-04-28T06:22:15.332-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2013"/><title type='text'>How to enable developer ULS log dashboard in sharepoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Step 1 :&lt;/b&gt; Execute below command in powershell&lt;br /&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; font-size: 16px; line-height: 25.6px;&quot;&gt;&lt;b&gt;stsadm -o setproperty -pn developer-dashboard -pv on&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; font-size: 16px; line-height: 25.6px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; font-size: 16px; line-height: 25.6px;&quot;&gt;&lt;b&gt;Step 2:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; line-height: 25.6px;&quot;&gt;Follow the process as per below snap&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; line-height: 25.6px;&quot;&gt;shot&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;lato&amp;quot; , sans-serif; line-height: 25.6px;&quot;&gt;&lt;/span&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/AVvXsEiyYDmHmWfCcXJ-cNJssaXfkx2jgnckVxXQINK6GbC1nRsziOtWuNOcgW4UjE-TFOeKoVwTmUzfSGJ8xcX-eg0VNM7aVe3-E-OWQl79-zPt_m2Iu_1HmyDAuRhAvaWWgiYWTQV9cjiJ-g7w/s1600/Image1.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyYDmHmWfCcXJ-cNJssaXfkx2jgnckVxXQINK6GbC1nRsziOtWuNOcgW4UjE-TFOeKoVwTmUzfSGJ8xcX-eg0VNM7aVe3-E-OWQl79-zPt_m2Iu_1HmyDAuRhAvaWWgiYWTQV9cjiJ-g7w/s640/Image1.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&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/AVvXsEiHyWv0tznyxcwLWfodsZqUoFPZhdnEPhg_bs0M-p9GS2l-q3O7Y2JFuzkoo1q_hqDt2U0d-m_PF-JAvwZ27bMg5WkgzxH_77i5uGHaa2LaBN4zP8vYHkS0X0mp3dcyb16ZFkOuF5uUOpO1/s1600/Image2.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHyWv0tznyxcwLWfodsZqUoFPZhdnEPhg_bs0M-p9GS2l-q3O7Y2JFuzkoo1q_hqDt2U0d-m_PF-JAvwZ27bMg5WkgzxH_77i5uGHaa2LaBN4zP8vYHkS0X0mp3dcyb16ZFkOuF5uUOpO1/s640/Image2.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&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/AVvXsEjZQFm1nsnmg1e8SjFKF1bii79dhjJ2wf4_hWlMgQGNTd8Za6bVP7diGaFx8CKen_MBwvj2IZXvq8U7gUqmuk58jQ4mdV3CGaophWbFEkzH90T4wAufQ_7UStc7yYeUsFUybGzXBWJaqnAX/s1600/Image+3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;372&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZQFm1nsnmg1e8SjFKF1bii79dhjJ2wf4_hWlMgQGNTd8Za6bVP7diGaFx8CKen_MBwvj2IZXvq8U7gUqmuk58jQ4mdV3CGaophWbFEkzH90T4wAufQ_7UStc7yYeUsFUybGzXBWJaqnAX/s640/Image+3.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/8480556205824976586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2016/04/how-to-enable-developer-uls-log.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8480556205824976586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8480556205824976586'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2016/04/how-to-enable-developer-uls-log.html' title='How to enable developer ULS log dashboard in sharepoint'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyYDmHmWfCcXJ-cNJssaXfkx2jgnckVxXQINK6GbC1nRsziOtWuNOcgW4UjE-TFOeKoVwTmUzfSGJ8xcX-eg0VNM7aVe3-E-OWQl79-zPt_m2Iu_1HmyDAuRhAvaWWgiYWTQV9cjiJ-g7w/s72-c/Image1.bmp" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-7285773508909254483</id><published>2016-02-06T00:48:00.000-08:00</published><updated>2016-02-06T00:49:02.858-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Start Stop SharePoint timer Service using command line</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
net stop SPTimerv4&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To start timer service&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
net start&amp;nbsp;SPTimerv4&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To stop SharePoint Administration service:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
net stop&amp;nbsp;SPAdminV4&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To start SharePoint Administration service&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin-bottom: 1.6em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
net start SPAdminV4&lt;/div&gt;
&lt;div class=&quot;wpcnt&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; line-height: 0; margin: 0px; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;wpa wpmrec&quot; style=&quot;border: 0px; box-sizing: inherit; display: inline-block !important; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; max-width: 100%; min-width: 300px; outline: 0px; padding: 0px; position: relative; text-align: left; transform: translate3d(0px, 0px, 0px); vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;u&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #5e5e5e; font-family: Roboto, Helvetica, sans-serif; margin: 20px 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/7285773508909254483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2016/02/start-stop-sharepoint-timer-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7285773508909254483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7285773508909254483'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2016/02/start-stop-sharepoint-timer-service.html' title='Start Stop SharePoint timer Service using command line'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-3615447689693421360</id><published>2014-12-19T02:38:00.000-08:00</published><updated>2014-12-19T02:38:00.983-08:00</updated><title type='text'>Use of SPMetal.exe in SharePoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 34px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
SPMetal.exe&lt;/h2&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #666666; font-family: Titillium, Arial, sans-serif; font-size: 18px; font-stretch: inherit; line-height: 28.7999992370605px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Using the tool called SPMetal, we generate our entity-classes that are needed to perform these object oriented queries toward our SharePoint server&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Command for Generate entity class&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN&amp;gt;spmetal.exe /web:http://sharepointsite /code:c:\classname.css&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/3615447689693421360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2014/12/use-of-spmetalexe-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3615447689693421360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3615447689693421360'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2014/12/use-of-spmetalexe-in-sharepoint.html' title='Use of SPMetal.exe in SharePoint'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6489732403840076909</id><published>2014-09-15T21:20:00.001-07:00</published><updated>2014-09-15T21:20:05.595-07:00</updated><title type='text'>SharePoint 2010 Book Direct Download link</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h4&gt;
&lt;a href=&quot;http://5.9.78.50/cgi-bin/dl.cgi/pvb7677ynmxew3jkjlc6axrxyx5mkmwwlfyeaei4yq/Wrox.Beginning.SharePoint.2010.Development.May.2010.rar&quot;&gt;http://5.9.78.50/cgi-bin/dl.cgi/pvb7677ynmxew3jkjlc6axrxyx5mkmwwlfyeaei4yq/Wrox.Beginning.SharePoint.2010.Development.May.2010.rar&lt;/a&gt;&lt;/h4&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6489732403840076909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2014/09/sharepoint-2010-book-direct-download.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6489732403840076909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6489732403840076909'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2014/09/sharepoint-2010-book-direct-download.html' title='SharePoint 2010 Book Direct Download link'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6038565313620185744</id><published>2013-03-05T02:28:00.003-08:00</published><updated>2013-03-05T02:28:50.291-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>Create Auto Increment ID in Table with data</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create new Column as ID in Table with data type INT.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
Update table with below query .&lt;br /&gt;
&lt;br /&gt;
;WITH cte AS&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT *, RowNum = ROW_NUMBER() OVER (ORDER BY GETDATE())&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FROM &amp;nbsp;TableName&lt;br /&gt;
)&lt;br /&gt;
UPDATE cte&lt;br /&gt;
SET ID = RowNum + 1&lt;br /&gt;
WHERE (RowNum = RowNum)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Modify the ID column Identity (1,1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6038565313620185744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2013/03/create-auto-increment-id-in-table-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6038565313620185744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6038565313620185744'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2013/03/create-auto-increment-id-in-table-with.html' title='Create Auto Increment ID in Table with data'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-2750273621845250049</id><published>2012-12-31T23:55:00.004-08:00</published><updated>2012-12-31T23:55:56.081-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Teradata"/><title type='text'>Find Days of Month In Teradata</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Find Days of Month In Teradata&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
select extract(month from current_date) as monthofyear,&lt;br /&gt;
CASE extract(year from current_date) MOD 5&lt;br /&gt;
WHEN 0 THEN&lt;br /&gt;
CASE monthofyear&lt;br /&gt;
WHEN 1 THEN 31&lt;br /&gt;
WHEN 2 THEN 29&lt;br /&gt;
WHEN 3 THEN 31&lt;br /&gt;
WHEN 4 THEN 30&lt;br /&gt;
WHEN 5 THEN 31&lt;br /&gt;
WHEN 6 THEN 30&lt;br /&gt;
WHEN 7 THEN 31&lt;br /&gt;
WHEN 8 THEN 31&lt;br /&gt;
WHEN 9 THEN 30&lt;br /&gt;
WHEN 10 THEN 31&lt;br /&gt;
WHEN 11 THEN 30&lt;br /&gt;
WHEN 12 THEN 31&lt;br /&gt;
END&lt;br /&gt;
ELSE&lt;br /&gt;
CASE monthofyear&lt;br /&gt;
WHEN 1 THEN 31&lt;br /&gt;
WHEN 2 THEN 28&lt;br /&gt;
WHEN 3 THEN 31&lt;br /&gt;
WHEN 4 THEN 30&lt;br /&gt;
WHEN 5 THEN 31&lt;br /&gt;
WHEN 6 THEN 30&lt;br /&gt;
WHEN 7 THEN 31&lt;br /&gt;
WHEN 8 THEN 31&lt;br /&gt;
WHEN 9 THEN 30&lt;br /&gt;
WHEN 10 THEN 31&lt;br /&gt;
WHEN 11 THEN 30&lt;br /&gt;
WHEN 12 THEN 31&lt;br /&gt;
END&lt;br /&gt;
END&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/2750273621845250049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/12/find-days-of-month-in-teradata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/2750273621845250049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/2750273621845250049'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/12/find-days-of-month-in-teradata.html' title='Find Days of Month In Teradata'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-8324064525784541173</id><published>2012-09-25T02:13:00.000-07:00</published><updated>2012-09-25T02:14:13.310-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Using Facebook login in ASP.NET application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Using Facebook login in ASP.NET application&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Step-1: Register site 
        in Facebook:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 14px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;Open http://developers.facebook.com and login with your Facebook credentials 
            after logging in you will get a screen like this:&lt;/li&gt;
&lt;/ol&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/AVvXsEiDGgbUMLSu_LgJNLvsibB0X9M5gU-4PNap_sW4iGVMnsWMTkXWEGPzj_nVy3sUX_bdv1O0OGCvp51LcdqgabGD7j5YJcwt3l3MnhTLl0F0ehyphenhyphenG-jP50GxRTepwUdqghEcFF42ekpsVrY_Y/s1600/fbDeveloperPage.PNG&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/AVvXsEiDGgbUMLSu_LgJNLvsibB0X9M5gU-4PNap_sW4iGVMnsWMTkXWEGPzj_nVy3sUX_bdv1O0OGCvp51LcdqgabGD7j5YJcwt3l3MnhTLl0F0ehyphenhyphenG-jP50GxRTepwUdqghEcFF42ekpsVrY_Y/s1600/fbDeveloperPage.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ol start=&quot;2&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 14px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Click on &quot;Build for Websites&quot; link, you will reach to 
            https://developers.facebook.com/docs/guides/web/ , just click on &#39;Apps&#39; menu 
            Items (the last menu Item from right side), you will reach to 
            https://developers.facebook.com/apps. Click on&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsgWp608u2YMENrUkBEHqgvOD8ZG3u0D-F3NJcM4T7ADGD-_pkbUPtragqs9Nf-eZ0MImRGMp9x9b9doMITOiYTuiDWJYgcYVmCoddDj7zx1A2KMmUB-ywlVBdEueDXG4MWAKKNtSHKKw/s1600/CreateNewApp.PNG&quot; style=&quot;border: 0px; margin: 0px; overflow: auto; padding: 0px;&quot; /&gt;&amp;nbsp;button, you will get following screen.&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&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/AVvXsEiWa_afZXOvd7HYjOlHW8Gm0vDKxod8DrSY8FfnX15M0_0a97frxEfmezRZYNGDpZNDh3RVi__Y1bAIy958RmGgpmQK_M84I82IuEOmF2YG0UZV50bxjwJc2Qpp3P0yTGImgBls30eP37zC/s1600/CreateNewApp2.PNG&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/AVvXsEiWa_afZXOvd7HYjOlHW8Gm0vDKxod8DrSY8FfnX15M0_0a97frxEfmezRZYNGDpZNDh3RVi__Y1bAIy958RmGgpmQK_M84I82IuEOmF2YG0UZV50bxjwJc2Qpp3P0yTGImgBls30eP37zC/s1600/CreateNewApp2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ol start=&quot;2&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 14px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Enter the name of your website in place of App Name, rest of the fields are 
            optional so fill them if you require to use them and click on &#39;Continue&#39; button. 
            you will be asked to fill a captcha screen and then you will get the summary 
            screen like below screenshot (Just masked the AppID).&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/AVvXsEjl0jMI_NluKZP3vuROYyuIboaxdXEhxQ10S_UH46MJzCzJhCCvdra_B21nPi02stdqOcEQSWOJ4oVeO6X3TU6ONH2yBQHPQnICoWqYYm1Xht4atTozOb6fB5NuJZk6XygWUslqggH4srQ_/s1600/AppSummary.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;496&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl0jMI_NluKZP3vuROYyuIboaxdXEhxQ10S_UH46MJzCzJhCCvdra_B21nPi02stdqOcEQSWOJ4oVeO6X3TU6ONH2yBQHPQnICoWqYYm1Xht4atTozOb6fB5NuJZk6XygWUslqggH4srQ_/s640/AppSummary.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Give the URL of you website/ application Site URL text box of the app summery 
            screen, like below screenshot. I have given localhost address as I will be 
            testing the app from my local build, you will have to give your website URL in 
            this.&lt;/li&gt;
&lt;/ol&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/AVvXsEjl0jMI_NluKZP3vuROYyuIboaxdXEhxQ10S_UH46MJzCzJhCCvdra_B21nPi02stdqOcEQSWOJ4oVeO6X3TU6ONH2yBQHPQnICoWqYYm1Xht4atTozOb6fB5NuJZk6XygWUslqggH4srQ_/s1600/AppSummary.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;497&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl0jMI_NluKZP3vuROYyuIboaxdXEhxQ10S_UH46MJzCzJhCCvdra_B21nPi02stdqOcEQSWOJ4oVeO6X3TU6ONH2yBQHPQnICoWqYYm1Xht4atTozOb6fB5NuJZk6XygWUslqggH4srQ_/s640/AppSummary.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.44444465637207px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Step-2: Create ASP.NET 
        application using Facebook login:&lt;/strong&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 14px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Open Visual Studio.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Select File --&amp;gt; New --&amp;gt; Project/Solution --&amp;gt; &#39;ASP.NET Empty Application&#39;&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Now Right Click on Project Name Select Add--&amp;gt; New Item from the pop-up menu and 
            click on &#39;Web Form&#39; to add Default.Aspx page. (See screenshot).&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/AVvXsEjRrnYNqljjUuuWgx4ct3SqoAprCxELZt7rhq5kGOpN2tgWXneVXWSDofuShphapyDpWE2_NiFMIIuxAwE50KPvTM7qdelBxKZqxClba3P19F4OsXcyAxmjA7Ui2Bf9AvH-dlmX_Pfg4XRB/s1600/AddDefault.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;513&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRrnYNqljjUuuWgx4ct3SqoAprCxELZt7rhq5kGOpN2tgWXneVXWSDofuShphapyDpWE2_NiFMIIuxAwE50KPvTM7qdelBxKZqxClba3P19F4OsXcyAxmjA7Ui2Bf9AvH-dlmX_Pfg4XRB/s640/AddDefault.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Most of the code we will be doing on the HTML code of ASP.NET Page.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            For using Facebook login, we will have to use Facebook JavaScript SDK. There are 
            three ways of using it:&lt;ol style=&quot;border: 0px; margin: 14px 0px; padding: 0px 0px 0px 40px;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
                    Load the JavaScript SDK asynchronously.&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;pre id=&quot;pre0&quot; style=&quot;border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;          // Load the SDK Asynchronously
          (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; (d) {
              var js, id = &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&#39;facebook-jssdk&#39;, ref = d.getElementsByTagName(&#39;script&#39;)[0];
&lt;/span&gt;              &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (d.getElementById(id)) { return; }
              js = d.createElement(&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&#39;script&#39;); js.id = id; js.async = true;
&lt;/span&gt;              js.src = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;//connect.facebook.net/en_US/all.js#xfbml=1&quot;&lt;/span&gt;;
              ref.parentNode.insertBefore(js, ref);
          } (document));
      &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
                    Load the JavaScript SDK synchronously &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;=https://connect.facebook.net/en_US/all.js&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
                    Download the SDK JavaScript file in your local project folder and use it from 
                    there. Implemented in &#39;Default.aspx&#39; of solution.&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;=&quot;scripts/all.js&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            We will also require&amp;nbsp;&lt;a href=&quot;http://www.jquery.com/&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;jquery&lt;/a&gt;&amp;nbsp;for 
            initializing the library. so copy following code in header section of the page.&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;script&lt;/span&gt;&lt;pre id=&quot;pre3&quot; style=&quot;border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;scripts/jquery-1.8.0.min.js&quot;&lt;/span&gt;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;script&lt;/span&gt;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;scripts/all.js&quot;&lt;/span&gt;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; 7) Now to initialize the Facebook SDK copy following code in a new script section :
         $(&quot;document&quot;).ready(function () {
            // Initialize the SDK upon load
            FB.init({
                appId: &#39;YOUR_APP_ID&#39;, // App ID
                channelUrl: &#39;//&#39; + window.location.hostname + &#39;/channel&#39;, // Path to your Channel File
                scope: &#39;id,name,gender,user_birthday,email&#39;, // This to get the user details back from Facebook
                status: true, // check login status
                cookie: true, // enable cookies to allow the server to access the session
                xfbml: true  // parse XFBML
            });
            // listen for and handle auth.statusChange events
            FB.Event.subscribe(&#39;auth.statusChange&#39;, OnLogin);
        });&lt;/pre&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
Here YOUR_APP_ID will be the App Id you will get from the Facebook App.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Also copy the following code after Above code in to get the response back and 
            fill the values.&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: italic; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;// This method will be called after the user login into faceboook&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt;function OnLogin(response) {&lt;/span&gt;&lt;pre id=&quot;pre4&quot; style=&quot;border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; 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;if&lt;/span&gt; (response.authResponse) {
                FB.api(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;/me?fields=id,name,gender,email,birthday&#39;&lt;/span&gt;, LoadValues);                    
            }
        }

        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//This method will load the values to the labels
&lt;/span&gt;        function LoadValues (me) {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (me.name) {
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;displayname&#39;&lt;/span&gt;).innerHTML = me.name;
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;FBId&#39;&lt;/span&gt;).innerHTML = me.id;
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;DisplayEmail&#39;&lt;/span&gt;).innerHTML = me.email;
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;Gender&#39;&lt;/span&gt;).innerHTML = me.gender;
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;DOB&#39;&lt;/span&gt;).innerHTML = me.birthday;
                document.getElementById(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;auth-loggedin&#39;&lt;/span&gt;).style.display = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;block&#39;&lt;/span&gt;;
                            }
        }&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Copy following code in the Body tag of the Page.&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;=&quot;fb-root&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;lt;!--&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; This initializes the FB controls&lt;/span&gt;--&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; white-space: pre-wrap;&quot;&gt;   &lt;/span&gt;&lt;pre id=&quot;pre5&quot; style=&quot;border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; 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;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;fb-login-button&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;autologoutlink&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;scope&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;user_birthday,email&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
      Login with Facebook
     &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;!--&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; FB Login Button &lt;/span&gt;--&amp;gt;&lt;/span&gt;   
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;!--&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Details &lt;/span&gt;--&amp;gt;&lt;/span&gt; 
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;auth-status&quot;&amp;gt;&lt;/span&gt;    
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;auth-loggedin&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;display: none&quot;&amp;gt;&lt;/span&gt;
        Hi, &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;displayname&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;
        Your Facebook ID : &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;FBId&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;
        Your Email : &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;DisplayEmail&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;
        Your Sex:, &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;Gender&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;
        Your Date of Birth :, &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;DOB&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;        
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;
            Your application is ready now, execute the application.&lt;/li&gt;
&lt;/ol&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/8324064525784541173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/using-facebook-login-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8324064525784541173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8324064525784541173'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/using-facebook-login-in-aspnet.html' title='Using Facebook login in ASP.NET application'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDGgbUMLSu_LgJNLvsibB0X9M5gU-4PNap_sW4iGVMnsWMTkXWEGPzj_nVy3sUX_bdv1O0OGCvp51LcdqgabGD7j5YJcwt3l3MnhTLl0F0ehyphenhyphenG-jP50GxRTepwUdqghEcFF42ekpsVrY_Y/s72-c/fbDeveloperPage.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-9218249286434095287</id><published>2012-09-24T00:00:00.001-07:00</published><updated>2012-09-24T00:00:14.544-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Convert Unix Time Stamp To System Date Time</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Convert Unix Time Stamp To System Date Time&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Copy the function code below and paste in your page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; public string ConvertToUnixTimeStapToDateTime(double timestamp)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // First make a System.DateTime equivalent to the UNIX Epoch.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add the number of seconds in UNIX timestamp to be converted.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dateTime = dateTime.AddSeconds(timestamp);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // The dateTime now contains the right date/time so to format the string,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // use the standard formatting methods of the DateTime object.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string resDate = dateTime.ToShortDateString() + &quot; &quot; + dateTime.ToShortTimeString();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return resDate;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Call the function and pass the time span value.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Label1.Text=ConvertToUnixTimeStapToDateTime(128988834);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Happy Programming....With&amp;nbsp;Programming Heaven&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/9218249286434095287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/convert-unix-time-stamp-to-system-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/9218249286434095287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/9218249286434095287'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/convert-unix-time-stamp-to-system-date.html' title='Convert Unix Time Stamp To System Date Time'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-5868842364334860325</id><published>2012-09-17T03:28:00.003-07:00</published><updated>2012-09-17T03:28:39.729-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Download Pre-Request patch file for  SharePoint 2010 Installation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Download Pre-Request patch file for &amp;nbsp;SharePoint 2010 Installation&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Pre-Request patch file download for&amp;nbsp;SharePoint&amp;nbsp;2010 Software.&lt;br /&gt;
&lt;br /&gt;
Click on below link for download pre request file...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=160387&quot; target=&quot;_blank&quot;&gt;1.SQL Native Client&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=166369&quot; target=&quot;_blank&quot;&gt;2.Hotfix for Microsoft Windows (KB976462) – NET 3.5 SP1 HotFix&amp;nbsp;or Windows 2008 R2&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=166363&quot; target=&quot;_blank&quot;&gt;3.Windows Identity Foundation (KB974405)&amp;nbsp;for Windows 2008 R2&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=160382&quot; target=&quot;_blank&quot;&gt;4.Microsoft Sync Framework Runtime v1.0 (x64)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=160383&quot; target=&quot;_blank&quot;&gt;5.Microsoft Chart Controls for Microsoft .NET Framework 3.5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyId=60C92A37-719C-4077-B5C6-CAC34F4227CC&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;6.Microsoft Filter Pack 2.0&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=160390&quot; target=&quot;_blank&quot;&gt;7.Microsoft SQL Server 2008 Analysis Services ADOMD.NET&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=166371&quot; target=&quot;_blank&quot;&gt;9.Microsoft Server Speech Recognition Language - TELE(en-US)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=166379&quot; target=&quot;_blank&quot;&gt;10.SQL 2008 R2 Reporting Services SharePoint 2010 Add-in&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/5868842364334860325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/download-pre-request-patch-file-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/5868842364334860325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/5868842364334860325'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/download-pre-request-patch-file-for.html' title='Download Pre-Request patch file for  SharePoint 2010 Installation'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6534803377952728727</id><published>2012-09-12T04:57:00.001-07:00</published><updated>2012-09-12T04:58:34.278-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="iTextsharp"/><title type='text'>Convert HtmlToPDF in ASP.net &amp; iTextshrap</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Convert Web Page to PDF &amp;nbsp;in ASP.net &amp;amp; iTextshrap&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Download iTextSharp dll from below link&#39;s&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://sourceforge.net/projects/itextsharp/&quot; target=&quot;_blank&quot;&gt;Download iTextSharp dll&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/rar/bPDjDxrB/iTextsharp_Dll.html?refurl=d1url&quot; target=&quot;_blank&quot;&gt;iTextsharp_Dll Download&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a sample website in .net . Add reference the downloaded dll .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a page &amp;nbsp;and&amp;nbsp;design&amp;nbsp;you report in this web page and put one button for Export to pdf .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;C#&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Add namespaces below &amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;using System.IO;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;using iTextSharp.text;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;using iTextSharp.text.html.simpleparser;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;using iTextSharp.text.pdf;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;using System.Text;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Copy and Paste below code in Export Button click event .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Response.ContentType = &quot;application/pdf&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=TestPage.pdf&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringWriter sw = new StringWriter();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HtmlTextWriter hw = new HtmlTextWriter(sw);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.Page.RenderControl(hw);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringReader sr = new StringReader(sw.ToString());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HTMLWorker htmlparser = new HTMLWorker(pdfDoc);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfWriter.GetInstance(pdfDoc, Response.OutputStream);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdfDoc.Open();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; htmlparser.Parse(sr);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdfDoc.Close();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write(pdfDoc);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.End();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;VB&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Add namespaces below &amp;nbsp;.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Imports System.IO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Imports iTextSharp.text&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Imports iTextSharp.text.html.simpleparser&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Imports iTextSharp.text.pdf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Copy and Paste below code in Export Button click event .
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; &amp;nbsp; Response.ContentType = &quot;application/pdf&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=TestPage.pdf&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Cache.SetCacheability(HttpCacheability.NoCache)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim sw As New StringWriter()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim hw As New HtmlTextWriter(sw)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Page.RenderControl(hw)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim sr As New StringReader(sw.ToString())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim htmlparser As New HTMLWorker(pdfDoc)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfWriter.GetInstance(pdfDoc, Response.OutputStream)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdfDoc.Open()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; htmlparser.Parse(sr)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdfDoc.Close()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write(pdfDoc)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.[End]()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 5&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Run your website and click on Export Button and enjoy....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6534803377952728727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/convert-htmltopdf-in-aspnet-itextshrap.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6534803377952728727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6534803377952728727'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/convert-htmltopdf-in-aspnet-itextshrap.html' title='Convert HtmlToPDF in ASP.net &amp; iTextshrap'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6292984584918549030</id><published>2012-09-05T02:12:00.002-07:00</published><updated>2012-09-05T02:12:54.114-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Stock Quote and Chart with yahoo using c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Stock Quote and Chart with yahoo using c#&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a website with visual studio and copy the below code paste in your page code behind .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&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; if (!IsPostBack)&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; &amp;nbsp; &amp;nbsp; // The page is being loaded and accessed for the first time.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retrieve user input from the form.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (Request.QueryString[&quot;s&quot;] == null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the default stock symbol to YHOO.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m_symbol = &quot;STER.NS&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Get the user&#39;s input.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m_symbol = Request.QueryString[&quot;s&quot;].ToString().ToUpper();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Update the textbox value.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txtSymbol.Value = m_symbol;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // This DIV that contains text and DIVs that displays stock quotes and chart from Yahoo.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the innerHTML property to replaces the existing content of the DIV.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; divService.InnerHtml = &quot;&amp;lt;br /&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (m_symbol.Trim() != &quot;&quot;)&lt;br /&gt;
&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; try&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Return the stock quote data in XML format.&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; String arg = GetQuote(m_symbol.Trim()); &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; if (arg == null)&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; return;&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; // Read XML.&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; // Declare an XmlDocument object to represents an XML document.&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; XmlDocument xd = new XmlDocument();&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; // Loads the XML data from a stream.&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; xd.LoadXml(arg);&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; // Read XSLT&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; // Declare an XslCompiledTransform object to transform XML data using an XSLT style sheet.&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; XslCompiledTransform xslt = new XslCompiledTransform();&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; // Use the Load method to load the Xsl transform object.&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; xslt.Load(Server.MapPath(&quot;stock.xsl&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; &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; // Transform the XML document into HTML.&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; StringWriter fs = new StringWriter();&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; xslt.Transform(xd.CreateNavigator(), null, fs);&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; string result = fs.ToString();&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; // Replace the characters &quot;&amp;amp;gt;&quot; and &quot;&amp;amp;lt;&quot; back to &quot;&amp;lt;&quot; and &quot;&amp;gt;&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; divService.InnerHtml = &quot;&amp;lt;br /&amp;gt;&quot; + result.Replace(&quot;&amp;amp;lt;&quot;, &quot;&amp;lt;&quot;).Replace(&quot;&amp;amp;gt;&quot;, &quot;&amp;gt;&quot;) + &quot;&amp;lt;br /&amp;gt;&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; // Display stock charts.&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; String[] symbols = m_symbol.Replace(&quot;,&quot;, &quot; &quot;).Split(&#39; &#39;);&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; // Loop through each stock&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; for (int i = 0; i &amp;lt; symbols.Length; ++i)&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; &amp;nbsp; &amp;nbsp; if (symbols[i].Trim() == &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;&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; int index = divService.InnerHtml.ToLower().IndexOf(symbols[i].Trim().ToLower() + &quot; is invalid.&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; &amp;nbsp; &amp;nbsp; // If index = -1, the stock symbol is valid.&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; if (index == -1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;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; // Use a random number to defeat cache.&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; Random random = new Random();&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; divService.InnerHtml += &quot;&amp;lt;img id=&#39;imgChart_&quot; + i.ToString() + &quot;&#39; src=&#39;http://ichart.finance.yahoo.com/b?s=&quot; + symbols[i].Trim().ToUpper() + &quot;&amp;amp; &quot; + random.Next() + &quot;&#39; border=0&amp;gt;&amp;lt;br /&amp;gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 1 days&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(0,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div1d_&quot; + i.ToString() + &quot;&#39;&amp;gt;&amp;lt;b&amp;gt;1d&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 5 days&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(1,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div5d_&quot; + i.ToString() + &quot;&#39;&amp;gt;5d&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 3 months&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(2,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div3m_&quot; + i.ToString() + &quot;&#39;&amp;gt;3m&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 6 months&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(3,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div6m_&quot; + i.ToString() + &quot;&#39;&amp;gt;6m&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 1 yeas&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(4,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div1y_&quot; + i.ToString() + &quot;&#39;&amp;gt;1y&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 2 years&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(5,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div2y_&quot; + i.ToString() + &quot;&#39;&amp;gt;2y&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 5 years&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(6,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;div5y_&quot; + i.ToString() + &quot;&#39;&amp;gt;5y&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Max&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; divService.InnerHtml += &quot;&amp;lt;a style=&#39;font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: Blue;&#39; href=&#39;javascript:changeChart(7,&quot; + i.ToString() + &quot;, \&quot;&quot; + symbols[i].ToLower() + &quot;\&quot;);&#39;&amp;gt;&amp;lt;span id=&#39;divMax_&quot; + i.ToString() + &quot;&#39;&amp;gt;Max&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&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; &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; }&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Handle exceptions&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;
&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; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// This function handles and parses multiple stock symbols as input parameters&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// and builds a valid XML return document.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;symbol&quot;&amp;gt;A bunch of stock symbols seperated by space or comma&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// &amp;lt;returns&amp;gt;Return stock quote data in XML format&amp;lt;/returns&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string GetQuote(string symbol)&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; // Set the return string to null.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string result = null; &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; try&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; &amp;nbsp; &amp;nbsp; // Use Yahoo finance service to download stock data from Yahoo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string yahooURL = @&quot;http://download.finance.yahoo.com/d/quotes.csv?s=&quot; + symbol + &quot;&amp;amp;f=sl1d1t1c1hgvbap2&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] symbols = symbol.Replace(&quot;,&quot;, &quot; &quot;).Split(&#39; &#39;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Initialize a new WebRequest.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HttpWebRequest webreq = (HttpWebRequest)WebRequest.Create(yahooURL);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Get the response from the Internet resource.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HttpWebResponse webresp = (HttpWebResponse)webreq.GetResponse();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Read the body of the response from the server.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StreamReader strm = new StreamReader(webresp.GetResponseStream(), Encoding.ASCII);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Construct a XML in string format.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string tmp = &quot;&amp;lt;StockQuotes&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string content = &quot;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; symbols.Length; i++)&lt;br /&gt;
&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; // Loop through each line from the stream, building the return XML Document string&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (symbols[i].Trim() == &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; continue;&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; content = strm.ReadLine().Replace(&quot;\&quot;&quot;, &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; string[] contents = content.ToString().Split(&#39;,&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // If contents[2] = &quot;N/A&quot;. the stock symbol is invalid.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (contents[2] == &quot;N/A&quot;)&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Construct XML via strings.&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; tmp += &quot;&amp;lt;Stock&amp;gt;&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; // &quot;&amp;lt;&quot; and &quot;&amp;gt;&quot; are illegal in XML elements. Replace the characters &quot;&amp;lt;&quot; and &quot;&amp;gt;&quot; to &quot;&amp;amp;gt;&quot; and &quot;&amp;amp;lt;&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; tmp += &quot;&amp;lt;Symbol&amp;gt;&amp;amp;lt;span style=&#39;color:red&#39;&amp;amp;gt;&quot; + symbols[i].ToUpper() + &quot; is invalid.&amp;amp;lt;/span&amp;amp;gt;&amp;lt;/Symbol&amp;gt;&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; tmp += &quot;&amp;lt;Last&amp;gt;&amp;lt;/Last&amp;gt;&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; tmp += &quot;&amp;lt;Date&amp;gt;&amp;lt;/Date&amp;gt;&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; tmp += &quot;&amp;lt;Time&amp;gt;&amp;lt;/Time&amp;gt;&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; tmp += &quot;&amp;lt;Change&amp;gt;&amp;lt;/Change&amp;gt;&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; tmp += &quot;&amp;lt;High&amp;gt;&amp;lt;/High&amp;gt;&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; tmp += &quot;&amp;lt;Low&amp;gt;&amp;lt;/Low&amp;gt;&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; tmp += &quot;&amp;lt;Volume&amp;gt;&amp;lt;/Volume&amp;gt;&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; tmp += &quot;&amp;lt;Bid&amp;gt;&amp;lt;/Bid&amp;gt;&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; tmp += &quot;&amp;lt;Ask&amp;gt;&amp;lt;/Ask&amp;gt;&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; tmp += &quot;&amp;lt;Ask&amp;gt;&amp;lt;/Ask&amp;gt;&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; tmp += &quot;&amp;lt;/Stock&amp;gt;&quot;;&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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; //construct XML via strings.&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; tmp += &quot;&amp;lt;Stock&amp;gt;&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; tmp += &quot;&amp;lt;Symbol&amp;gt;&quot; + contents[0] + &quot;&amp;lt;/Symbol&amp;gt;&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; try&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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Last&amp;gt;&quot; + String.Format(&quot;{0:c}&quot;, Convert.ToDouble(contents[1])) + &quot;&amp;lt;/Last&amp;gt;&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; catch&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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Last&amp;gt;&quot; + contents[1] + &quot;&amp;lt;/Last&amp;gt;&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; tmp += &quot;&amp;lt;Date&amp;gt;&quot; + contents[2] + &quot;&amp;lt;/Date&amp;gt;&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; tmp += &quot;&amp;lt;Time&amp;gt;&quot; + contents[3] + &quot;&amp;lt;/Time&amp;gt;&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; // &quot;&amp;lt;&quot; and &quot;&amp;gt;&quot; are illegal in XML elements. Replace the characters &quot;&amp;lt;&quot; and &quot;&amp;gt;&quot; to &quot;&amp;amp;gt;&quot; and &quot;&amp;amp;lt;&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; if (contents[4].Trim().Substring(0, 1) == &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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Change&amp;gt;&amp;amp;lt;span style=&#39;color:red&#39;&amp;amp;gt;&quot; + contents[4] + &quot;(&quot; + contents[10] + &quot;)&quot; + &quot;&amp;amp;lt;span&amp;amp;gt;&amp;lt;/Change&amp;gt;&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; else if (contents[4].Trim().Substring(0, 1) == &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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Change&amp;gt;&amp;amp;lt;span style=&#39;color:green&#39;&amp;amp;gt;&quot; + contents[4] + &quot;(&quot; + contents[10] + &quot;)&quot; + &quot;&amp;amp;lt;span&amp;amp;gt;&amp;lt;/Change&amp;gt;&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; else&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; tmp += &quot;&amp;lt;Change&amp;gt;&quot; + contents[4] + &quot;(&quot; + contents[10] + &quot;)&quot; + &quot;&amp;lt;/Change&amp;gt;&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; tmp += &quot;&amp;lt;High&amp;gt;&quot; + contents[5] + &quot;&amp;lt;/High&amp;gt;&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; tmp += &quot;&amp;lt;Low&amp;gt;&quot; + contents[6] + &quot;&amp;lt;/Low&amp;gt;&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; try&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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Volume&amp;gt;&quot; + String.Format(&quot;{0:0,0}&quot;, Convert.ToInt64(contents[7])) + &quot;&amp;lt;/Volume&amp;gt;&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; catch&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; &amp;nbsp; &amp;nbsp; tmp += &quot;&amp;lt;Volume&amp;gt;&quot; + contents[7] + &quot;&amp;lt;/Volume&amp;gt;&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; tmp += &quot;&amp;lt;Bid&amp;gt;&quot; + contents[8] + &quot;&amp;lt;/Bid&amp;gt;&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; tmp += &quot;&amp;lt;Ask&amp;gt;&quot; + contents[9] + &quot;&amp;lt;/Ask&amp;gt;&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; tmp += &quot;&amp;lt;/Stock&amp;gt;&quot;;&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the return string&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result += tmp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tmp = &quot;&quot;;&lt;br /&gt;
&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; // Set the return string&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result += &quot;&amp;lt;/StockQuotes&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Close the StreamReader object.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strm.Close();&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; catch&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; &amp;nbsp; &amp;nbsp; // Handle exceptions.&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; // Return the stock quote data in XML format.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Run your site and search your quote .&lt;br /&gt;
&lt;br /&gt;
If you have any problem so you can download the sample application from below link ..&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/rar/G3mhqeb7/StockQuote.html&quot;&gt;http://www.4shared.com/rar/G3mhqeb7/StockQuote.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If it help full for you please share to your friend..&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Smruti&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6292984584918549030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/stock-quote-and-chart-with-yahoo-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6292984584918549030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6292984584918549030'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/stock-quote-and-chart-with-yahoo-using-c.html' title='Stock Quote and Chart with yahoo using c#'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-7996799136172338232</id><published>2012-09-01T00:44:00.000-07:00</published><updated>2012-09-01T00:44:02.734-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Search Linked In People In your web application using linked in Javascript API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Search Linked In People In your web application using linked in Javascript API&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to this below URL&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.linkedin.com/secure/developer?newapp=&quot;&gt;https://www.linkedin.com/secure/developer?newapp=&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Step 2&lt;/div&gt;
&lt;div&gt;
Add your apps for generate API key .See Figure 1&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYicMVcByXYfx_L8mjcT7OzmdNWfrEJuxl8K7RLoUonqpjLda2p3NoxBUy8LnR0yzPrWcAkUBhQWbnrSYmQKWOvZs3eSAwlYCW0uIKlhDf-hFBFJnKCERFMHwS_Z__ybtWRq1ms_qDmTRj/s1600/linkedinAppKeyGenrate.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;502&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYicMVcByXYfx_L8mjcT7OzmdNWfrEJuxl8K7RLoUonqpjLda2p3NoxBUy8LnR0yzPrWcAkUBhQWbnrSYmQKWOvZs3eSAwlYCW0uIKlhDf-hFBFJnKCERFMHwS_Z__ybtWRq1ms_qDmTRj/s640/linkedinAppKeyGenrate.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 1&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Fill up all required information as per your requirement .See &lt;b&gt;Figure 2&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8dTVzP2ualsWV38YXbe4gkOo-_HOGja7HTNKsqXtbbyJ4Nz-Wuaq1FxYkhsqw9A30CASTkiilv4stnIu-wLD-9Cdm6NYZGUh9O7vced92HCqbt-rffgm4IyVuldFWzZLjSgSAo8uGKt1A/s1600/FilldatalinkedinAppKeyGenrate.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;510&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8dTVzP2ualsWV38YXbe4gkOo-_HOGja7HTNKsqXtbbyJ4Nz-Wuaq1FxYkhsqw9A30CASTkiilv4stnIu-wLD-9Cdm6NYZGUh9O7vced92HCqbt-rffgm4IyVuldFWzZLjSgSAo8uGKt1A/s640/FilldatalinkedinAppKeyGenrate.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 2&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Then click on &lt;b&gt;Add Application&lt;/b&gt; Button for generate API Key .See &lt;b&gt;Figure 3&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHIAZu_tXifa04bqFRXZipqx7Z86aHrzVMshOOWK7n8WR3sPVWWhRIvMn_4qwwaJO7M2jnk3ueLrWJHBFWrUVUCvn4UHJQDcwTNN5y88zbhbPz-PG09fjjzlr2hroQr4CdTd8yPWl0Uxzz/s1600/displayApiKey.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;388&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHIAZu_tXifa04bqFRXZipqx7Z86aHrzVMshOOWK7n8WR3sPVWWhRIvMn_4qwwaJO7M2jnk3ueLrWJHBFWrUVUCvn4UHJQDcwTNN5y88zbhbPz-PG09fjjzlr2hroQr4CdTd8yPWl0Uxzz/s640/displayApiKey.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 3&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;b&gt;Step 4&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy the Below Code and paste in your application page .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://platform.linkedin.com/in.js&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; api_key: YOUR_API_KEY&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
function searchClick() {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; if (!IN.ENV.auth.oauth_token) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; alert(&quot;You must login w/ LinkedIn to use the Search functionality!&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; return;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; IN.API.PeopleSearch()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; .fields(&quot;id&quot;, &quot;firstName&quot;, &quot;lastName&quot;)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; .params({&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;first-name&quot;: document.searchform.firstName.value,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;last-name&quot;: document.searchform.lastName.value,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;company&quot;: document.searchform.company.value&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; })&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; .result(function(result, metadata) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; setSearchResults(result, metadata);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; });&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
function setSearchResults(result, metadata) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; searchHTML = &quot;Search Results (&quot; + result.numResults + &quot;):&amp;lt;ul&amp;gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; console.log(result.people.values);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; for (i in result.people.values) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; searchHTML = searchHTML + &quot;&amp;lt;li&amp;gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; searchHTML = searchHTML + result.people.values[i].firstName + &quot; &quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; searchHTML = searchHTML + result.people.values[i].lastName + &quot; &quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; searchHTML = searchHTML + &quot; (memberToken: &quot; + result.people.values[i].id + &quot;)&amp;lt;/li&amp;gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; searchHTML = searchHTML + &quot;&amp;lt;/ul&amp;gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; document.getElementById(&quot;searchresults&quot;).innerHTML = searchHTML;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;!-- need to be logged in to use Search; if not, offer a login button --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;script type=&quot;IN/Login&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;p&amp;gt;Basic test of the People Search API via Connect. &amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div&gt;
You must click the button (pressing Enter doesn&#39;t work).&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;form name=&quot;searchform&quot; onsubmit=&quot;return false;&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; First Name:&amp;amp;nbsp;&amp;lt;input type=&quot;text&quot; name=&quot;firstName&quot;&amp;gt;&amp;lt;br/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; Last Name:&amp;amp;nbsp;&amp;lt;input type=&quot;text&quot; name=&quot;lastName&quot;&amp;gt;&amp;lt;br/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; Company:&amp;amp;nbsp;&amp;lt;input type=&quot;text&quot; name=&quot;company&quot;&amp;gt;&amp;lt;br/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;input type=&quot;button&quot; name=&quot;search1&quot; value=&quot;Search LinkedIn!&quot; onclick=&quot;searchClick()&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;div id=&quot;searchresults&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;b&gt;Step 5&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy the API Key and Paste in code where it required .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 6&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Run your application and enjoy it.....&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Note :Project should run in your website url which url you have given in Application add time.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you have any problem please ask me through the comment .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/7996799136172338232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/search-linked-in-people-in-your-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7996799136172338232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7996799136172338232'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/09/search-linked-in-people-in-your-web.html' title='Search Linked In People In your web application using linked in Javascript API'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYicMVcByXYfx_L8mjcT7OzmdNWfrEJuxl8K7RLoUonqpjLda2p3NoxBUy8LnR0yzPrWcAkUBhQWbnrSYmQKWOvZs3eSAwlYCW0uIKlhDf-hFBFJnKCERFMHwS_Z__ybtWRq1ms_qDmTRj/s72-c/linkedinAppKeyGenrate.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6446195681433848349</id><published>2012-08-31T03:42:00.001-07:00</published><updated>2012-08-31T03:42:27.704-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><title type='text'>JavaScript  Detect Device in ASP.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;JavaScript &amp;nbsp;Detect Device in ASP.net&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simple put the JavaScript in your default page and see the result in your different browser .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Redirect Mobile Devices&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
if (screen.width &amp;lt;= 699) {&lt;br /&gt;
document.location = &quot;mobile.html&quot;;&lt;br /&gt;
}&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&quot;mobile.html&quot; would be replaced with the location of wherever your mobile version resides. This technique could be adapted to load an alternate stylesheet as well.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For iPhones/iPods Specifically&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=javascript&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;location.replace(&quot;http://localhost/iphone.html&quot;);&lt;br /&gt;
}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy script....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6446195681433848349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/javascript-detect-device-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6446195681433848349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6446195681433848349'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/javascript-detect-device-in-aspnet.html' title='JavaScript  Detect Device in ASP.net'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-8844644715417967143</id><published>2012-08-29T22:26:00.000-07:00</published><updated>2014-09-15T21:21:20.198-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How to   Display  Page Wise Total Amount &amp; Grand Total Amount in Last page SSRS &amp; RDLC Report</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to &amp;nbsp; Display &amp;nbsp;Page Wise Total Amount And &amp;nbsp;Grand Total Amount in Last page SSRS &amp;amp; RDLC Report&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Go to &lt;b&gt;Project Menu&lt;/b&gt; &amp;gt;&amp;gt;&lt;b&gt; Add Page Footer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
After click on the Add Footer Menu&amp;nbsp;footer&amp;nbsp;automatically&amp;nbsp;add in the report.&amp;nbsp;See &lt;b&gt;Figure 1&lt;/b&gt;&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbEbzmw1Ph3jumh7qbvYCcdZLtLD6Y81UsInGuZy0S31K8O-9-E74G7nKBcUjpL2iUnVIDr0HQLrzmH9-4M2lu-Z6S4ITyL6Z3cVxR2yctqde4we6iFdSks2XCWTqFfEOr96fXOzXGtM3/s1600/AddFooterinSSRSreport.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbEbzmw1Ph3jumh7qbvYCcdZLtLD6Y81UsInGuZy0S31K8O-9-E74G7nKBcUjpL2iUnVIDr0HQLrzmH9-4M2lu-Z6S4ITyL6Z3cVxR2yctqde4we6iFdSks2XCWTqFfEOr96fXOzXGtM3/s640/AddFooterinSSRSreport.png&quot; height=&quot;388&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 1&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 2&lt;/b&gt;
&lt;br /&gt;
Add new TextBox for display page wise total and edit expression of TextBox . See &lt;b&gt;Figure 2&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisU9u1YCN757u79U9y_mB1uppB4wGHYcSsWXSAti514NL3-2iofZ8JZG259LR8ZdmE1Jl9mC_0brBXG4vnQ31ULj8SLkhS3-78dUImBFZUQfWRPuF19mvqq3xxY63GM854NufjJ2K7RZMG/s1600/AddLebelModifyExpression.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisU9u1YCN757u79U9y_mB1uppB4wGHYcSsWXSAti514NL3-2iofZ8JZG259LR8ZdmE1Jl9mC_0brBXG4vnQ31ULj8SLkhS3-78dUImBFZUQfWRPuF19mvqq3xxY63GM854NufjJ2K7RZMG/s640/AddLebelModifyExpression.png&quot; height=&quot;466&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 2&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add this expression for&amp;nbsp;page total&amp;nbsp;TextBox =Sum(ReportItems!TotalAmount.Value)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Add new TextBox for display Grand Total in Last Page of RDLC report and edit expression of TextBox . See&amp;nbsp;&lt;b&gt;Figure 3&lt;/b&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVuYpBibYk8O2oPowN9XokC9aF553yRpHfmE9cYaENpW2DJHex6kVMzRMPfF6aoIGk9eZ1YIFdeOHrIPct8NtEs2lg0e819axTt_JJxSy2-Dc7P44qES9BgIfuHms8kQbwkTVYbeKAhVEU/s1600/AddLebelModifyExpressionLastPage.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVuYpBibYk8O2oPowN9XokC9aF553yRpHfmE9cYaENpW2DJHex6kVMzRMPfF6aoIGk9eZ1YIFdeOHrIPct8NtEs2lg0e819axTt_JJxSy2-Dc7P44qES9BgIfuHms8kQbwkTVYbeKAhVEU/s640/AddLebelModifyExpressionLastPage.png&quot; height=&quot;466&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 3&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=IIF( Globals.PageNumber =Globals.TotalPages,Sum(Fields!TotalAmount.Value, &quot;DataSet1&quot;), &amp;nbsp;&quot;&quot;)&lt;br /&gt;
&lt;br /&gt;
Step 4&lt;br /&gt;
&lt;br /&gt;
Run the application and test the reports&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Smruti&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;1&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://origin-img.shaadi.com/shaadi-rewards/get-html-banner.php?ptnr=ue1mf&amp;amp;banner_type=popup&amp;amp;banner_size=300x250&quot; width=&quot;1&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/8844644715417967143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/how-to-display-page-wise-total-amount.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8844644715417967143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/8844644715417967143'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/how-to-display-page-wise-total-amount.html' title='How to   Display  Page Wise Total Amount &amp; Grand Total Amount in Last page SSRS &amp; RDLC Report'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbEbzmw1Ph3jumh7qbvYCcdZLtLD6Y81UsInGuZy0S31K8O-9-E74G7nKBcUjpL2iUnVIDr0HQLrzmH9-4M2lu-Z6S4ITyL6Z3cVxR2yctqde4we6iFdSks2XCWTqFfEOr96fXOzXGtM3/s72-c/AddFooterinSSRSreport.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6266065792609128675</id><published>2012-08-27T00:50:00.001-07:00</published><updated>2012-08-27T21:37:45.418-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Create Job Schedule On Web using ASP.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Tahoma; font-size: large;&quot;&gt;&lt;b&gt;Create Job Schedule On Web using ASP.net&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Tahoma; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;b&gt;Step 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
Create Global.asax file in your application.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
Copy below code and paste in Global.asax file .&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;b&gt;Code&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;lt;script runat=&quot;server&quot;&amp;gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void Application_Start(object sender, EventArgs e)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Timers.Timer timScheduledTask = new System.Timers.Timer();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Timer interval is set in miliseconds,&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // In this case, we&#39;ll run a task every minute&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timScheduledTask.Interval = 60 * 1000;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timScheduledTask.Enabled = true;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add handler for Elapsed event&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timScheduledTask.Elapsed +=&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new System.Timers.&lt;wbr&gt;&lt;/wbr&gt;ElapsedEventHandler(&lt;wbr&gt;&lt;/wbr&gt;timScheduledTask_Elapsed);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timScheduledTask.Stop();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timScheduledTask.Start();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void timScheduledTask_Elapsed(&lt;wbr&gt;&lt;/wbr&gt;object sender, System.Timers.ElapsedEventArgs e)&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Execute some task&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //GoalReminder gr = new GoalReminder();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int howOften = 1;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (howOften &amp;lt; 5)&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //do some stuff here that i can&#39;t paste&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; howOften++;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SendMail(howOften.ToString() + &quot; Global Mail&quot;);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void Application_End(object sender, EventArgs e)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp;Code that runs on application shutdown&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void Application_Error(object sender, EventArgs e)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Code that runs when an unhandled error occurs&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void Session_Start(object sender, EventArgs e)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Code that runs when a new session is started&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void Session_End(object sender, EventArgs e)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Code that runs when a session ends.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Note: The Session_End event is raised only when the sessionstate mode&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // is set to InProc in the Web.config file. If session mode is set to StateServer&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // or SQLServer, the event is not raised.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; void SendMail(string subject)&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string username, pwd;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username = &quot;xyz@example.com;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pwd = &quot;abc@1234&quot;;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Net.Mail.MailMessage greetings = new System.Net.Mail.MailMessage();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient();&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.From = new System.Net.Mail.MailAddress(&lt;wbr&gt;&lt;/wbr&gt;username, &quot;Sender Display Name&quot;);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.To.Add(&quot;abc@gmail.com&quot;);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.IsBodyHtml = true;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.Priority = System.Net.Mail.MailPriority.&lt;wbr&gt;&lt;/wbr&gt;High;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.Body = &quot;Body Text&quot;;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; greetings.Subject = subject;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.Host = &quot;localhost&quot;;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.Port = 25;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.EnableSsl = false;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.DeliveryMethod = System.Net.Mail.&lt;wbr&gt;&lt;/wbr&gt;SmtpDeliveryMethod.Network;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.UseDefaultCredentials = false;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.Credentials = new System.Net.NetworkCredential(&lt;wbr&gt;&lt;/wbr&gt;username, pwd);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; smtp.Send(greetings);&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
If you want to change your action you can change the code and call inside the &amp;nbsp;&lt;span style=&quot;font-size: 13px;&quot;&gt;timScheduledTask_Elapsed event .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;If you have any problem please feel free to comment .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;If it&amp;nbsp;helpful&amp;nbsp;for you please share it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6266065792609128675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/create-job-schedule-on-web-using-aspnet.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6266065792609128675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6266065792609128675'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/create-job-schedule-on-web-using-aspnet.html' title='Create Job Schedule On Web using ASP.net'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-3892345750609094468</id><published>2012-08-26T23:54:00.002-07:00</published><updated>2012-08-26T23:55:41.187-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos"/><title type='text'>Cogons 10.1 Installation and Configuration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cogons 10.1 Installation and Configuration&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/7YFtW7F4QuY?feature=player_detailpage&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/3892345750609094468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/cogons-101-installation-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3892345750609094468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/3892345750609094468'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/cogons-101-installation-and.html' title='Cogons 10.1 Installation and Configuration'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/7YFtW7F4QuY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-4374951138697360591</id><published>2012-08-26T22:11:00.003-07:00</published><updated>2012-08-26T22:11:49.688-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><title type='text'>What is API ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What is API ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Abbreviation of application program interface, a set of routines, protocols, and tools for building software applications. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together.&lt;br /&gt;
&lt;br /&gt;
Most operating environments, such as MS-Windows, provide an API so that programmers can write applications consistent with the operating environment. Although APIs are designed for programmers, they are ultimately good for users because they guarantee that all programs using a common API will have similar interfaces. This makes it easier for users to learn new programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now a day most of organization provide the API for retrieve information from their global database. So social network sites provide the API for retrive friend list,news feed,current activities etc.&lt;br /&gt;
Example Facebook API,Tweeter API,Linked in API etc. Other organization also provide their API for retrieve valuable data from the global database. Ex -Google API for MAP,Contact,Translation and many more .So API make easier to develop a Application as per their requirement.&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/4374951138697360591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/what-is-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4374951138697360591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4374951138697360591'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/what-is-api.html' title='What is API ?'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6762756303269737328</id><published>2012-08-24T22:08:00.000-07:00</published><updated>2012-08-24T22:08:29.092-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>Programming in Objective-C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Programming in Objective-C&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this chapter, we dive right in and show you how to write your first Objective-C program. You won’t work with objects just yet; that’s the topic of the next&lt;br /&gt;
chapter. We want you to understand the steps involved in keying in a program and compiling and running it.&lt;br /&gt;
To begin, let’s pick a rather simple example: a program that displays the phrase “Programming is fun!” on your screen. Without further ado, Program 2.1&lt;br /&gt;
shows an Objective-C program to accomplish this task.&lt;br /&gt;
&lt;b&gt;Program 2.1&lt;/b&gt;&lt;br /&gt;
// First program example&lt;br /&gt;
#import &amp;lt;Foundation/Foundation.h&amp;gt;&lt;br /&gt;
int main (int argc, const char * argv[])&lt;br /&gt;
{&lt;br /&gt;
@autoreleasepool {&lt;br /&gt;
NSLog (@&quot;Programming is fun!&quot;);&lt;br /&gt;
}&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;Compiling and Running Programs&lt;/b&gt;&lt;br /&gt;
Before we go into a detailed explanation of this program, we need to cover the steps involved in compiling and running it. You can both compile and run&lt;br /&gt;
your program using Xcode, or you can use the Clang Objective-C compiler in a Terminal window. Let’s go through the sequence of steps using both&lt;br /&gt;
methods. Then you can decide how you want to work with your programs throughout the rest of this book.&lt;br /&gt;
Note&lt;br /&gt;
You’ll want to go to developer.apple.com and make sure you have the latest version of the Xcode development tools. There you can download&lt;br /&gt;
Xcode and the iOS SDK at no charge. If you’re not a registered developer, you’ll have to register first. That can also be done at no charge. Note&lt;br /&gt;
that Xcode is also available for a minimal cost from the Mac App Store.&lt;br /&gt;
Using Xcode&lt;br /&gt;
Xcode is a sophisticated application that enables you to easily type in, compile, debug, and execute programs. If you plan on doing serious application&lt;br /&gt;
development on the Mac, learning how to use this powerful tool is worthwhile. We just get you started here. Later we return to Xcode and take you through&lt;br /&gt;
the steps involved in developing a graphical application with it.&lt;br /&gt;
Note&lt;br /&gt;
As mentioned, Xcode is a sophisticated tool, and the introduction of Xcode 4 added even more features. It’s easy to get lost using this tool. If&lt;br /&gt;
that happens to you, back up a little and try reading the Xcode User Guide, which can be accessed from Xcode help menu, to get your bearings.&lt;br /&gt;
Xcode is located in the Developer folder inside a subfolder called Applications. Figure 2.1 shows its icon.&lt;br /&gt;
Figure 2.1. Xcode icon&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvQWTrZ-G2rDPBrI9vCfNN5OItr5YmAqHshpMmZQG7n6h-9oOnyPhyFjnd-Z8m5FvARUk2iRLb71WfwtiTvTPlsnJGSoOh5AcNCx7aXMh2M81l0-a55AUsN38Qp3XEnh5SoyrYRzRjhmY/s1600/21Xcode.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvQWTrZ-G2rDPBrI9vCfNN5OItr5YmAqHshpMmZQG7n6h-9oOnyPhyFjnd-Z8m5FvARUk2iRLb71WfwtiTvTPlsnJGSoOh5AcNCx7aXMh2M81l0-a55AUsN38Qp3XEnh5SoyrYRzRjhmY/s1600/21Xcode.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; text-align: center;&quot;&gt;&lt;b&gt;2.1 Xcode&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6762756303269737328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/programming-in-objective-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6762756303269737328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6762756303269737328'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/programming-in-objective-c.html' title='Programming in Objective-C'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvQWTrZ-G2rDPBrI9vCfNN5OItr5YmAqHshpMmZQG7n6h-9oOnyPhyFjnd-Z8m5FvARUk2iRLb71WfwtiTvTPlsnJGSoOh5AcNCx7aXMh2M81l0-a55AUsN38Qp3XEnh5SoyrYRzRjhmY/s72-c/21Xcode.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-4781272547906982264</id><published>2012-08-24T21:57:00.002-07:00</published><updated>2012-08-24T21:57:43.186-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos"/><title type='text'>Introduction to IBM Cognos Business Intelligence</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;Introduction to IBM Cognos&amp;nbsp;Business Intelligence&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Organizations are pressured constantly to understand and react quickly toinformation. With a capable and efficient business intelligence solution, all levelsof an organization can receive information how, when, and where they need it tomake faster and better aligned decisions.Many organizations often satisfy this complexity and these diverse demands witha number of point solutions. With IBM Cognos Business Intelligence (BI)solutions, you can satisfy needs throughout the user community and ensure that&amp;nbsp;everyone can work and collaborate from a consistent set of data. In addition, IT is&amp;nbsp;simplified with fewer components to deploy, manage, and maintain.&amp;nbsp;In this chapter, we introduce IBM Business Analytics and IBM Cognos BI and&amp;nbsp;discuss the following topics:&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;  IBM Business Analytics&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;  Introduction to IBM Cognos BI&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.1 IBM Business Analytics&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;IBM Business Analytics includes the following products:&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;IBM Cognos BI&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;IBM Financial Performance and Strategy Management&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;IBM Cognos TM1&lt;/li&gt;
&lt;li&gt;IBM Cognos Planning&lt;/li&gt;
&lt;li&gt;IBM Cognos Controller&lt;/li&gt;
&lt;li&gt;IBM Cognos Business ViewPoint&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;IBM Analytics Applications&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;IBM Advanced Analytics (SPSS)&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;IBM Cognos Express&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.2 Introduction to IBM Cognos BI&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;IBM Cognos BI provides a unified workspace for business intelligence and&amp;nbsp;analytics that the entire organization can use to answer key business questions&amp;nbsp;and outperform the competition. With IBM Cognos BI, users can:&lt;/li&gt;
&lt;li&gt;Easily view, assemble and personalize information&lt;/li&gt;
&lt;li&gt;Explore all types of information from all angles to assess the current business&amp;nbsp;situation&lt;/li&gt;
&lt;li&gt;Analyze facts and anticipate tactical and strategic implications by simply&amp;nbsp;shifting from viewing to more advanced, predictive or what-if analysis&lt;/li&gt;
&lt;li&gt; Collaborate to establish decision networks to share insights and drive toward&amp;nbsp;a collective intelligence&lt;/li&gt;
&lt;li&gt; Provide transparency and accountability to drive alignment and consensus&lt;/li&gt;
&lt;li&gt; Communicate and coordinate tasks to engage the right people at the right&amp;nbsp;time&lt;/li&gt;
&lt;li&gt; Access information and take action anywhere, taking advantage of mobile&amp;nbsp;devices and real-time analytics&lt;/li&gt;
&lt;li&gt; Integrate and link analytics in everyday work to business workflow and &amp;nbsp;process&lt;/li&gt;
&lt;li&gt;Organizations need to make the most of a workforce that is increasingly driven to&amp;nbsp;multi-task, network and collaborate.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;IBM Cognos BI delivers analytics everyone&amp;nbsp;can use to answer key business questions.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;1.2.1 Easily view, assemble, and personalize information&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Often, business users do not know how to get to the information that they need,&amp;nbsp;and available tools might not provide the freedom to combine and explore&amp;nbsp;information in the way they want. IBM Cognos BI features allow business users to&amp;nbsp;easily view, assemble, and personalize information to follow a train of thought&lt;br /&gt;
and to generate a unique perspective.Using a single place to quickly see a view of their business, users can&amp;nbsp;personalize content, build on the insights of others, and incorporate data from a&amp;nbsp;variety of sources. These capabilities ensure that more people are engaged in&amp;nbsp;providing unique insights and delivering faster business decisions. Giving&amp;nbsp;business users greater self-service control reduces demands on IT and business&amp;nbsp;intelligence systems.&lt;/blockquote&gt;
&lt;b&gt;1.2.2 Explore all types of information&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
If a separate tool is required, it is difficult to incorporate statistical results with&amp;nbsp;core business reporting. IBM Cognos BI allows business users to consume&amp;nbsp;fact-based statistical evidence to support key decisions directly in the IBM&amp;nbsp;Cognos BI environment. The ability to explore all types of information from all&amp;nbsp;angles to assess the current business situation provides a deeper understanding&amp;nbsp;of the patterns that exist in data. These functions allow business users to deliver&amp;nbsp;reports that include statistical insight and validation and to distribute these&amp;nbsp;reports to the larger business community.&lt;/blockquote&gt;
&lt;b&gt;1.2.3 Analyze facts and anticipate tactical and strategic implications&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Business users need tools that let them accurately evaluate and identify the&amp;nbsp;impact that different scenarios will have on the business and on the bottom line.&amp;nbsp;IBM Cognos BI allows the business user to analyze facts and anticipate strategic&amp;nbsp;implications by simply shifting from viewing data to performing more advanced&amp;nbsp;predictive or what-if analysis. Understanding the scenarios that affect business&amp;nbsp;enables the business user to make informed recommendations to the business&amp;nbsp;and provides an increased competitive advantage.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;1.2.4 IBM Cognos BI user interfaces&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
IBM Cognos BI includes web-based and Windows®-based user interfaces that&lt;br /&gt;
provide a business intelligence experience that is focused upon the needs of&lt;br /&gt;
different users.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Business Insight&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
With IBM Cognos Business Insight, you can create sophisticated interactive&amp;nbsp;dashboards using IBM Cognos content, as well as external data sources such as&amp;nbsp;TM1 Websheets and CubeViews, according to your specific information needs.&amp;nbsp;You can view and open favorite dashboards and reports, manipulate the content&amp;nbsp;in the dashboards, and email your dashboards. You can also use comments and&amp;nbsp;activities for collaborative decision making and use social software such as IBM&amp;nbsp;Lotus® Connections for collaborative decision making.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
For more information about using IBM Cognos Business Insight, see the IBM&lt;br /&gt;
Cognos Business Insight User Guide.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;IBM Cognos Report Studio&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
IBM Cognos Report Studio is a robust report design and authoring tool. Using&amp;nbsp;IBM Cognos Report Studio, report authors can create, edit, and distribute a wide&amp;nbsp;range of professional reports. They can also define corporate-standard report&amp;nbsp;templates for use in IBM Cognos Query Studio and edit and modify reports&amp;nbsp;created in IBM Cognos Query Studio or IBM Cognos Analysis Studio.&amp;nbsp;This book does not cover use of IBM Cognos Report Studio, given the depth of&amp;nbsp;features that IBM Cognos Report Studio provides. For information about using&amp;nbsp;IBM Cognos Report Studio, refer to IBM Cognos Report Studio User Guide or the&amp;nbsp;online Quick Tour.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;IBM Cognos Query Studio&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Using IBM Cognos Query Studio, users with little or no training can quickly&amp;nbsp;design, create, and save reports to meet reporting needs that are not covered by&amp;nbsp;the standard, professional reports created in IBM Cognos Report Studio.&amp;nbsp;For information about using IBM Cognos Query Studio, see the IBM Cognos&amp;nbsp;Query Studio User Guide or the online Quick Tour.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Analysis Studio&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
With IBM Cognos Analysis Studio, users can explore and analyze data from&amp;nbsp;different dimensions of their business. Users can also compare data to spot&amp;nbsp;trends or anomalies in performance. IBM Cognos Analysis Studio provides&amp;nbsp;access to dimensional, online analytical processing (OLAP), and dimensionally&amp;nbsp;modeled relational data sources. Analyses created in IBM Cognos Analysis&amp;nbsp;Studio can be opened in IBM Cognos Report Studio and used to build&amp;nbsp;professional reports.&amp;nbsp;For information about using IBM Cognos Analysis Studio, see the IBM Cognos&amp;nbsp;Analysis Studio User Guide or the online Quick Tour.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Event Studio&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
In IBM Cognos Event Studio, you set up agents to monitor your data and perform&amp;nbsp;tasks when business events or exceptional conditions occur in your data. When&amp;nbsp;an event occurs, people are alerted to take action. Agents can publish details to&amp;nbsp;the portal, deliver alerts by email, run and distribute reports based on events, and&amp;nbsp;monitor the status of events. For example, a support call from a key customer or&amp;nbsp;the cancellation of a large order might trigger an event, sending an email to the&amp;nbsp;appropriate people.&amp;nbsp;For information about using IBM Cognos Event Studio, see the IBM Cognos&amp;nbsp;Event Studio User Guide or the online Quick Tour.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Metric Studio&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
In IBM Cognos Metric Studio, you can create and deliver a customized score&amp;nbsp;carding environment for monitoring and analyzing metrics throughout your&amp;nbsp;organization. Users can monitor, analyze, and report on time-critical information&amp;nbsp;by using scorecards based on cross-functional metrics.&amp;nbsp;For information about using IBM Cognos Metric Studio, see the IBM Cognos&amp;nbsp;Metric Studio User Guide for Authors.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Administration&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
IBM Cognos Administration is a central management interface that contains the&amp;nbsp;administrative tasks for IBM Cognos BI. It provides easy access to the overall&amp;nbsp;management of the IBM Cognos environment and is accessible through IBM&amp;nbsp;Cognos Connection.For information about using IBM Cognos Administration, see the IBM CognosAdministration and Security Guide.&lt;/blockquote&gt;
&lt;b&gt;IBM Cognos Framework Manager&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
IBM Cognos Framework Manager is the IBM Cognos BI modeling tool forcreating and managing business related metadata for use in IBM Cognos BIanalysis and reporting. Metadata is published for use by reporting tools as apackage, providing a single, integrated business view of any number ofheterogeneous data sources.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
OLAP cubes are designed to contain sufficient metadata for business intelligencereporting and analysis. Because cube metadata can change as a cube isdeveloped, IBM Cognos Framework Manager models the minimum amount of&amp;nbsp;information needed to connect to a cube. Cube dimensions, hierarchies, andlevels are loaded at run time.For information about using IBM Cognos Framework Manager, see the IBMCognos Framework Manager User Guide.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/4781272547906982264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/introduction-to-ibm-cognos-business.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4781272547906982264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/4781272547906982264'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/introduction-to-ibm-cognos-business.html' title='Introduction to IBM Cognos Business Intelligence'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-7460294304538731410</id><published>2012-08-24T01:18:00.001-07:00</published><updated>2012-08-24T01:24:14.170-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>Sql Server Database Management.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;/div&gt;
Today I am going to give you the tips and tricks on Sql Server Database Management.&lt;br /&gt;
&lt;div&gt;
This is a common problem for Database developer when they are working on different&amp;nbsp;database&amp;nbsp;servers connected on a single machine.&lt;/div&gt;
&lt;div&gt;
It is very difficult to identify on which server u r connected or executing on which server.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SSMS (Sql Server Management Studio ) gives &amp;nbsp;gives u the facility to easily identify on which server u r currently working on.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Follow the Simple Steps Below..&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-6VCupUGFSqwCF4EcqkReFjukAvg2K7RQ2OnRqufJGhQ4PzRZAN9cQNz9tEeN0Rs986P1SeVPfw83UEXjb49fFUdDxpqKo6IJb8R6f9zR3l-nLeCEh-hjkWGjbaYINQKF8WQR6Gkuu7m/s1600/1-712511.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151154175238594&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-6VCupUGFSqwCF4EcqkReFjukAvg2K7RQ2OnRqufJGhQ4PzRZAN9cQNz9tEeN0Rs986P1SeVPfw83UEXjb49fFUdDxpqKo6IJb8R6f9zR3l-nLeCEh-hjkWGjbaYINQKF8WQR6Gkuu7m/s640/1-712511.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6QmPy42n7h0rPlEZ3gFhydY5DKEyg8aTTML91wp6S9IyMtfLnbpu_ny-LbjzhBvkR3_Fx4NAoxo6GD98NO_Kg9Ctzc45b_wnL8M8IxUTBJHIqFwco64ef-EKv5efYo4ic-DRLJDfkpkGK/s1600/2-714844.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151157510046290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6QmPy42n7h0rPlEZ3gFhydY5DKEyg8aTTML91wp6S9IyMtfLnbpu_ny-LbjzhBvkR3_Fx4NAoxo6GD98NO_Kg9Ctzc45b_wnL8M8IxUTBJHIqFwco64ef-EKv5efYo4ic-DRLJDfkpkGK/s640/2-714844.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZu9HFJs3CT2I8CKAoeZbH5y7LE7pfCMyVfc9hA8_tKo1XMvjx-HnLMUBXk4p_cdyURHFIrz1UauBU7pqKIr9SpZOYErFnsY5Un7O8a8PpA1O7gDlWdqznMAFZVWz0RGHiePOo8r8YqCA/s1600/3-717348.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151170204633746&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZu9HFJs3CT2I8CKAoeZbH5y7LE7pfCMyVfc9hA8_tKo1XMvjx-HnLMUBXk4p_cdyURHFIrz1UauBU7pqKIr9SpZOYErFnsY5Un7O8a8PpA1O7gDlWdqznMAFZVWz0RGHiePOo8r8YqCA/s640/3-717348.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1mapHO1eGXoxOb8RVN-QeBbUVdS0Pq-x0mRkRnKhE6VU4Lk9-V_cDhTIF35T0o_ZpKlMly9HHVrEN7hZjoKu_xZfIKOTzL3NleWr_l_iBO1l0tRAQ1YpIIZVhb2Kclo7b4ptRBliEM2-h/s1600/4-719605.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151179419848594&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1mapHO1eGXoxOb8RVN-QeBbUVdS0Pq-x0mRkRnKhE6VU4Lk9-V_cDhTIF35T0o_ZpKlMly9HHVrEN7hZjoKu_xZfIKOTzL3NleWr_l_iBO1l0tRAQ1YpIIZVhb2Kclo7b4ptRBliEM2-h/s640/4-719605.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPf_-pJeqrx4Qq1ygcoeSo71MdmLhtHrPIbFcnoP4cPfniGyLjHynxEd7vms4ua6_USrS2gvyi47wXnNEZk2jb2kXRbH7tWY23TXaEbUUoHpcoGa3dZhp8pbp1IszaDV-_Me4E1cU4Y6U/s1600/5-721134.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151187228368018&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPf_-pJeqrx4Qq1ygcoeSo71MdmLhtHrPIbFcnoP4cPfniGyLjHynxEd7vms4ua6_USrS2gvyi47wXnNEZk2jb2kXRbH7tWY23TXaEbUUoHpcoGa3dZhp8pbp1IszaDV-_Me4E1cU4Y6U/s640/5-721134.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmTIROSPrma1Nmbcoxp4rKM50Ntvtg719Y0-REkErb0TRElIU_JSduQiFDmKBt6rJLXC-UfZ2dxEvVXyWWfWtRDoLfJftbi1Gf7Z7PTG0LxWBc1IvmLDpjEtOyoCTXtyL3BTUeLJHP_nmM/s1600/6-724073.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151199501260418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmTIROSPrma1Nmbcoxp4rKM50Ntvtg719Y0-REkErb0TRElIU_JSduQiFDmKBt6rJLXC-UfZ2dxEvVXyWWfWtRDoLfJftbi1Gf7Z7PTG0LxWBc1IvmLDpjEtOyoCTXtyL3BTUeLJHP_nmM/s640/6-724073.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCC-WZtra_dgaXF-xrp3GzScYUc905BEi8fc_28C9erFLPxlErk2dE7MpRRqG6S5XYbDoDZhHxUJk31p8a0XUmsac-WzVO2cE4v0uGxJcOG5jpWv6HGKc201Qalj0K-SDiMDNV6JhW1u8H/s1600/7-726295.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151210858755938&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCC-WZtra_dgaXF-xrp3GzScYUc905BEi8fc_28C9erFLPxlErk2dE7MpRRqG6S5XYbDoDZhHxUJk31p8a0XUmsac-WzVO2cE4v0uGxJcOG5jpWv6HGKc201Qalj0K-SDiMDNV6JhW1u8H/s640/7-726295.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmHVDVVoqNy3SB1Tw0uRb_ZLZqwHBoIjtOv1A0TUFK7T5EdDooF0k9VZAnalk5N_3tsp8nWbamt4KPPbpmjiicK5BjrrZfuDy9z5R_gCs46ZzrGTqt36mNQCVSiCUijxyR2p6oc8uY2rEb/s1600/8-728023.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151216298104770&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmHVDVVoqNy3SB1Tw0uRb_ZLZqwHBoIjtOv1A0TUFK7T5EdDooF0k9VZAnalk5N_3tsp8nWbamt4KPPbpmjiicK5BjrrZfuDy9z5R_gCs46ZzrGTqt36mNQCVSiCUijxyR2p6oc8uY2rEb/s640/8-728023.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFnx5gkGT2Zj8aFrnqxC4oVqP2x-ltEmaNsEg8dvEVsQDjK5brfuZ1B0tdHL2jYhEKG4cm-ZKrsLV_RyklNupHnxXvUI9DPbI1Jo2n_NHHz2zYIOth5HuSY_hde-k3h1jsxb6Y_j2xc1u2/s1600/9-730193.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151225929450978&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFnx5gkGT2Zj8aFrnqxC4oVqP2x-ltEmaNsEg8dvEVsQDjK5brfuZ1B0tdHL2jYhEKG4cm-ZKrsLV_RyklNupHnxXvUI9DPbI1Jo2n_NHHz2zYIOth5HuSY_hde-k3h1jsxb6Y_j2xc1u2/s640/9-730193.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mobile-photo&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA3TvDRxbI3qyWVNf51AdNIbkUfsFimAxIAcRaPCZ086xunghbMZeZC-XroPiilNeePZzogbREfhu_CjxG_ZrGFSQtqk1lEaPEyW6Xe5fy2rT6F651MbKDMnHvxMmkdAFYe7J2dahoMK4v/s1600/10-733452.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;536&quot; id=&quot;BLOGGER_PHOTO_ID_5780151243689538754&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA3TvDRxbI3qyWVNf51AdNIbkUfsFimAxIAcRaPCZ086xunghbMZeZC-XroPiilNeePZzogbREfhu_CjxG_ZrGFSQtqk1lEaPEyW6Xe5fy2rT6F651MbKDMnHvxMmkdAFYe7J2dahoMK4v/s640/10-733452.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/7460294304538731410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7460294304538731410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/7460294304538731410'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/sql-server.html' title='Sql Server Database Management.'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-6VCupUGFSqwCF4EcqkReFjukAvg2K7RQ2OnRqufJGhQ4PzRZAN9cQNz9tEeN0Rs986P1SeVPfw83UEXjb49fFUdDxpqKo6IJb8R6f9zR3l-nLeCEh-hjkWGjbaYINQKF8WQR6Gkuu7m/s72-c/1-712511.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-200919868103760266.post-6126190890370315313</id><published>2012-08-17T23:38:00.002-07:00</published><updated>2012-08-23T21:55:26.854-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Create Pivot Table In C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Step 1&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;Create Class file as Pivot.cs &amp;nbsp;and copy the below text and save in your file .&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Data;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/// &amp;lt;summary&amp;gt;&lt;br /&gt;
/// Pivots the data&lt;br /&gt;
/// &amp;lt;/summary&amp;gt;&lt;br /&gt;
public class Pivot&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private DataTable _SourceTable = new DataTable();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private IEnumerable&amp;lt;DataRow&amp;gt; _Source = new List&amp;lt;DataRow&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Pivot(DataTable SourceTable)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _SourceTable = SourceTable;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Source = SourceTable.Rows.Cast&amp;lt;DataRow&amp;gt;();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// Pivots the DataTable based on provided RowField, DataField, Aggregate Function and ColumnFields.//&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;rowField&quot;&amp;gt;The column name of the Source Table which you want to spread into rows&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;dataField&quot;&amp;gt;The column name of the Source Table which you want to spread into Data Part&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;aggregate&quot;&amp;gt;The Aggregate function which you want to apply in case matching data found more than once&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;columnFields&quot;&amp;gt;The List of column names which you want to spread as columns&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;returns&amp;gt;A DataTable containing the Pivoted Data&amp;lt;/returns&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public DataTable PivotData(string rowField, string dataField, AggregateFunction aggregate, params string[] columnFields)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable dt = new DataTable();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string Separator = &quot;.&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;string&amp;gt; rowList = _Source.Select(x =&amp;gt; x[rowField].ToString()).Distinct().ToList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Gets the list of columns .(dot) separated.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var colList = _Source.Select(x =&amp;gt;(columnFields.Select(n =&amp;gt; x[n]).Aggregate((a, b) =&amp;gt; a += Separator + b.ToString())).ToString()).Distinct().OrderBy(m =&amp;gt; m);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add(rowField);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (var colName in colList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add(colName); &amp;nbsp;// Cretes the result columns.//&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string rowName in rowList)&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; DataRow row = dt.NewRow();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[rowField] = rowName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string colName in colList)&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; &amp;nbsp; &amp;nbsp; string strFilter = rowField + &quot; = &#39;&quot; + rowName + &quot;&#39;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] strColValues = colName.Split(Separator.ToCharArray(), StringSplitOptions.None);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; columnFields.Length; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strFilter += &quot; and &quot; + columnFields[i] + &quot; = &#39;&quot; + strColValues[i] + &quot;&#39;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[colName] = GetData(strFilter, dataField, aggregate);&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; dt.Rows.Add(row);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public DataTable PivotData(string rowField, string dataField, AggregateFunction aggregate, bool showSubTotal, params string[] columnFields)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable dt = new DataTable();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string Separator = &quot;.&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;string&amp;gt; rowList = _Source.Select(x =&amp;gt; x[rowField].ToString()).Distinct().ToList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Gets the list of columns .(dot) separated.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;string&amp;gt; colList = _Source.Select(x =&amp;gt; columnFields.Aggregate((a, b) =&amp;gt; x[a].ToString() + Separator + x[b].ToString())).Distinct().OrderBy(m =&amp;gt; m).ToList();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (showSubTotal &amp;amp;&amp;amp; columnFields.Length &amp;gt; 1)&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; string totalField = string.Empty;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; columnFields.Length - 1; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; totalField += columnFields[i] + &quot;(Total)&quot; + Separator;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;string&amp;gt; totalList = _Source.Select(x =&amp;gt; totalField + x[columnFields.Last()].ToString()).Distinct().OrderBy(m =&amp;gt; m).ToList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; colList.InsertRange(0, totalList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add(rowField);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; colList.ForEach(x =&amp;gt; dt.Columns.Add(x));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string rowName in rowList)&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; DataRow row = dt.NewRow();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[rowField] = rowName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string colName in colList)&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; &amp;nbsp; &amp;nbsp; string filter = rowField + &quot; = &#39;&quot; + rowName + &quot;&#39;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] colValues = colName.Split(Separator.ToCharArray(), StringSplitOptions.None);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; columnFields.Length; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!colValues[i].Contains(&quot;(Total)&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; filter += &quot; and &quot; + columnFields[i] + &quot; = &#39;&quot; + colValues[i] + &quot;&#39;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[colName] = GetData(filter, dataField, colName.Contains(&quot;(Total)&quot;) ? AggregateFunction.Sum : aggregate);&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; dt.Rows.Add(row);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public DataTable PivotData(string DataField, AggregateFunction Aggregate, string[] RowFields, string[] ColumnFields)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable dt = new DataTable();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string Separator = &quot;.&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var RowList = _SourceTable.DefaultView.ToTable(true, RowFields).AsEnumerable().ToList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int index = RowFields.Count() - 1; index &amp;gt;= 0; index--)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RowList = RowList.OrderBy(x =&amp;gt; x.Field&amp;lt;object&amp;gt;(RowFields[index])).ToList();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Gets the list of columns .(dot) separated.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var ColList = (from x in _SourceTable.AsEnumerable()&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;select new&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; &amp;nbsp; &amp;nbsp;Name = ColumnFields.Select(n =&amp;gt; x.Field&amp;lt;object&amp;gt;(n))&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;.Aggregate((a, b) =&amp;gt; a += Separator + b.ToString())&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;})&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.Distinct()&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;.OrderBy(m =&amp;gt; m.Name);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //dt.Columns.Add(RowFields);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string s in RowFields)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add(s);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (var col in ColList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add(col.Name.ToString()); &amp;nbsp;// Cretes the result columns.//&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (var RowName in RowList)&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; DataRow row = dt.NewRow();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string strFilter = string.Empty;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (string Field in RowFields)&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; &amp;nbsp; &amp;nbsp; row[Field] = RowName[Field];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strFilter += &quot; and &quot; + Field + &quot; = &#39;&quot; + RowName[Field].ToString() + &quot;&#39;&quot;;&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; strFilter = strFilter.Substring(5);&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; foreach (var col in ColList)&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; &amp;nbsp; &amp;nbsp; string filter = strFilter;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] strColValues = col.Name.ToString().Split(Separator.ToCharArray(), StringSplitOptions.None);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; ColumnFields.Length; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filter += &quot; and &quot; + ColumnFields[i] + &quot; = &#39;&quot; + strColValues[i] + &quot;&#39;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row[col.Name.ToString()] = GetData(filter, DataField, Aggregate);&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; dt.Rows.Add(row);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// Retrives the data for matching RowField value and ColumnFields values with Aggregate function applied on them.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;Filter&quot;&amp;gt;DataTable Filter condition as a string&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;DataField&quot;&amp;gt;The column name which needs to spread out in Data Part of the Pivoted table&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;param name=&quot;Aggregate&quot;&amp;gt;Enumeration to determine which function to apply to aggregate the data&amp;lt;/param&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetData(string Filter, string DataField, AggregateFunction Aggregate)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&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; DataRow[] FilteredRows = _SourceTable.Select(Filter);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object[] objList = FilteredRows.Select(x =&amp;gt; x.Field&amp;lt;object&amp;gt;(DataField)).ToArray();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (Aggregate)&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; &amp;nbsp; &amp;nbsp; case AggregateFunction.Average:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetAverage(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Count:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return objList.Count();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Exists:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (objList.Count() == 0) ? &quot;False&quot; : &quot;True&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.First:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetFirst(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Last:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetLast(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Max:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetMax(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Min:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetMin(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AggregateFunction.Sum:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return GetSum(objList);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&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; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&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; return &quot;#Error&quot; + ex.Message;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetAverage(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return objList.Count() == 0 ? null : (object)(Convert.ToDecimal(GetSum(objList)) / objList.Count());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetSum(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return objList.Count() == 0 ? null : (object)(objList.Aggregate(new decimal(), (x, y) =&amp;gt; x += Convert.ToDecimal(y)));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetFirst(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (objList.Count() == 0) ? null : objList.First();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetLast(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (objList.Count() == 0) ? null : objList.Last();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetMax(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (objList.Count() == 0) ? null : objList.Max();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; private object GetMin(object[] objList)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (objList.Count() == 0) ? null : objList.Min();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public enum AggregateFunction&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Count = 1,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Sum = 2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; First = 3,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Last = 4,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Average = 5,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Max = 6,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Min = 7,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Exists = 8&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Step 2&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgACoLP_YMb5rigWZzcbDmmZ-pUDmarKCZtU-uUdZuNNLBQ9FrJMtRM4I5bINaXV-fmxH-EVlpiZHbhPfzDHDrPrpKpC2QFzS7I9yU14ex5FI-V9uS1_WUbFf9IWzLaRUSHq7Jb0TlsUX5C/s1600/pivotExample.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgACoLP_YMb5rigWZzcbDmmZ-pUDmarKCZtU-uUdZuNNLBQ9FrJMtRM4I5bINaXV-fmxH-EVlpiZHbhPfzDHDrPrpKpC2QFzS7I9yU14ex5FI-V9uS1_WUbFf9IWzLaRUSHq7Jb0TlsUX5C/s1600/pivotExample.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Example Pivot View&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Call PivotData function in your page like below example.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; Pivot pvt = new Pivot(dt);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable pivotTable = new DataTable();&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;nbsp; &amp;nbsp; pivotTable = pvt.PivotData(&quot;Designation&quot;, &quot;Salary&quot;, AggregateFunction.Sum, &quot;Year&quot;);&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://masterindotnet.blogspot.com/feeds/6126190890370315313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/create-pivot-table-in-c.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6126190890370315313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/200919868103760266/posts/default/6126190890370315313'/><link rel='alternate' type='text/html' href='http://masterindotnet.blogspot.com/2012/08/create-pivot-table-in-c.html' title='Create Pivot Table In C#'/><author><name>Smruti</name><uri>http://www.blogger.com/profile/16958867715911233131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgACoLP_YMb5rigWZzcbDmmZ-pUDmarKCZtU-uUdZuNNLBQ9FrJMtRM4I5bINaXV-fmxH-EVlpiZHbhPfzDHDrPrpKpC2QFzS7I9yU14ex5FI-V9uS1_WUbFf9IWzLaRUSHq7Jb0TlsUX5C/s72-c/pivotExample.png" height="72" width="72"/><thr:total>8</thr:total></entry></feed>