<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Yacir M Turk</title>
	
	<link>http://yasirmturk.com/blog</link>
	<description>the smart engineer</description>
	<lastBuildDate>Tue, 14 Jun 2011 09:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/yasirmturk" /><feedburner:info uri="yasirmturk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>33.2571</geo:lat><geo:long>72.9382</geo:long><item>
		<title>UBL Netbanking offers Inter-Bank Funds Transfer</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/BnrpgMHuRzE/</link>
		<comments>http://yasirmturk.com/blog/index.php/2011/06/good-news-ubl-netbanking-offers-inter-bank-funds-transfer/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 04:23:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Pakistan]]></category>
		<category><![CDATA[The Smart Engineer]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=246</guid>
		<description><![CDATA[You will now be able to transfer funds from your UBL account to any 1Link member bank account in Pakistan. IBFT is a facility available on Online Banking which allows you to transfer funds from your savings or current account to anybody else&#8217;s account in any other bank. Previously, Standard Chartered is offering this facility [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://yasirmturk.com/blog/wp-content/uploads/2011/06/ubl-netbanking.jpg"><img class="alignleft size-full wp-image-262" title="ubl-netbanking" src="http://yasirmturk.com/blog/wp-content/uploads/2011/06/ubl-netbanking.jpg" alt="UBL Netbanking" width="250" /></a>You will now be able to transfer funds from your UBL account to any 1Link member bank account in Pakistan.</p>
<p><a href="http://www.1link.net.pk/ibft.asp">IBFT</a> is a facility available on Online Banking which allows you to transfer funds from your savings or current account to anybody else&#8217;s account in any other bank. Previously, <a href="http://www.standardchartered.com/pk/personal/ways-to-bank/en/inter-bank-fund-transfer.html">Standard Chartered</a> is offering this facility totally <strong>free of cost</strong> in Pakistan.</p>
<p><strong>Transfer charges:</strong> Rs. 50/- or 0.1% of the transaction amount (whichever is greater) will be charged per IBFT transaction. <em>(exclusive of FED)</em></p>
<div id="attachment_261" class="wp-caption aligncenter" style="width: 412px"><a href="http://yasirmturk.com/blog/wp-content/uploads/2011/06/ubl001.jpg"><img class="size-full wp-image-261" title="ubl-netbanking_inter-bank-funds-transfer" src="http://yasirmturk.com/blog/wp-content/uploads/2011/06/ubl001.jpg" alt="UBL Netbanking offers Inter-Bank Funds Transfer" width="402" height="591" /></a><p class="wp-caption-text">UBL Netbanking offers Inter-Bank Funds Transfer</p></div>
<p>The banks participating in Inter Bank Fund Transfer(IBFT) are:</p>
<ul>
<li>Allied Bank Limited</li>
<li>Askari Bank</li>
<li>Bank Al Falah</li>
<li>Bank Al Habib</li>
<li>Bank Islami</li>
<li>Bank of Punjab</li>
<li>Dawood Islamic Bank</li>
<li>Faysal Bank</li>
<li>Habib Bank Limited</li>
<li>KASB Bank</li>
<li>NIB Bank</li>
<li>Soneri Bank</li>
<li>Standard Chartered Bank</li>
<li>Summit Bank</li>
<li>Tameer Micro Finance Bank</li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/HhT6MYZ3VXArTZEUJ3dQ_ujLe30/0/da"><img src="http://feedads.g.doubleclick.net/~a/HhT6MYZ3VXArTZEUJ3dQ_ujLe30/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HhT6MYZ3VXArTZEUJ3dQ_ujLe30/1/da"><img src="http://feedads.g.doubleclick.net/~a/HhT6MYZ3VXArTZEUJ3dQ_ujLe30/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=BnrpgMHuRzE:wtwrXPMAvSU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=BnrpgMHuRzE:wtwrXPMAvSU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=BnrpgMHuRzE:wtwrXPMAvSU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=BnrpgMHuRzE:wtwrXPMAvSU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=BnrpgMHuRzE:wtwrXPMAvSU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=BnrpgMHuRzE:wtwrXPMAvSU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/BnrpgMHuRzE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2011/06/good-news-ubl-netbanking-offers-inter-bank-funds-transfer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2011/06/good-news-ubl-netbanking-offers-inter-bank-funds-transfer/</feedburner:origLink></item>
		<item>
		<title>UBL Branchless banking – Omni Mobile Dukaan</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/YIvi1zfQ7yo/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/12/ubl-branchless-banking-omni-mobile-dukaan/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 07:48:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[Pakistan]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=248</guid>
		<description><![CDATA[Services at OMNI Dukaan The following services are available at OMNI Dukaans Account Opening Cash Deposit Cash Withdrawal Utility Bill Payments*: Customers can visit UBL OMNI Dukaans to pay their utility bills. Prepaid mobile Airtime purchase Postpaid mobile bill payment Domestic Remittance *Bills of the following utility companies can be paid at OMNI Dukaans: PTCL [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://yasirmturk.com/blog/wp-content/uploads/2010/12/ubl-omni-dukan-branchless-banking.jpg"><img class="aligncenter size-full wp-image-249" title="ubl-omni-dukan-branchless-banking" src="http://yasirmturk.com/blog/wp-content/uploads/2010/12/ubl-omni-dukan-branchless-banking.jpg" alt="" width="507" height="110" /></a></p>
<h2>Services at OMNI Dukaan</h2>
<p>The following services are available at OMNI Dukaans</p>
<ol>
<li>Account Opening</li>
<li>Cash Deposit</li>
<li>Cash Withdrawal</li>
<li>Utility Bill Payments*: Customers can visit UBL OMNI Dukaans to pay their utility bills.</li>
<li>Prepaid mobile Airtime purchase</li>
<li>Postpaid mobile bill payment</li>
<li>Domestic Remittance</li>
</ol>
<p><em>*Bills of the following utility companies can be paid at OMNI Dukaans:</em></p>
<ul>
<li>PTCL</li>
<li>SSGC</li>
<li>SNGPL</li>
<li>KESC</li>
<li>HESCO</li>
<li>FESCO</li>
<li>IESCO</li>
<li>QESCO</li>
<li>KWSB</li>
</ul>
<p>(Remaining companies will be added shortly.)<a href="http://yasirmturk.com/blog/wp-content/uploads/2010/12/ubl-omni-netbanking.jpg"><img src="http://yasirmturk.com/blog/wp-content/uploads/2010/12/ubl-omni-netbanking.jpg" alt="UBL Omni Netbanking" title="ubl-omni-netbanking" width="563" height="147" class="aligncenter size-full wp-image-271" /></a></p>
<h2>Omni Mobile Dukaan</h2>
<p>content coming soon&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/QCp1Cy4ZLvIBY11qK9Lsyks6h8M/0/da"><img src="http://feedads.g.doubleclick.net/~a/QCp1Cy4ZLvIBY11qK9Lsyks6h8M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/QCp1Cy4ZLvIBY11qK9Lsyks6h8M/1/da"><img src="http://feedads.g.doubleclick.net/~a/QCp1Cy4ZLvIBY11qK9Lsyks6h8M/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=YIvi1zfQ7yo:oP7I2UVrb-0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=YIvi1zfQ7yo:oP7I2UVrb-0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=YIvi1zfQ7yo:oP7I2UVrb-0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=YIvi1zfQ7yo:oP7I2UVrb-0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=YIvi1zfQ7yo:oP7I2UVrb-0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=YIvi1zfQ7yo:oP7I2UVrb-0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/YIvi1zfQ7yo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/12/ubl-branchless-banking-omni-mobile-dukaan/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/12/ubl-branchless-banking-omni-mobile-dukaan/</feedburner:origLink></item>
		<item>
		<title>Flash vs Silverlight: Frame Per Second Meter &amp; Stress Test</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/kK9ZTY0C2vs/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/12/flash-vs-silverlight-frame-per-second-meter-stress-test/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 12:10:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[adobe flash]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[stress test]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=216</guid>
		<description><![CDATA[Most of the people are concerned how good each technology can perform. Obviously, it’s a difficult question for the fact that “well” is quite subjective. Nevertheless, I still try to create some identical samples and let the user to decide which one is better. In the sample below, I introduced a new control: FPS Meter, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://yasirmturk.com/blog/wp-content/uploads/2010/12/silverlight-vs-flash.jpg"><img src="http://yasirmturk.com/blog/wp-content/uploads/2010/12/silverlight-vs-flash-300x175.jpg" alt="" title="silverlight-vs-flash" width="300" height="175" class="alignleft size-medium wp-image-239" /></a>Most of the people are concerned how good each technology can perform. Obviously, it’s a difficult question for the fact that “well” is quite subjective. Nevertheless, I still try to create some identical samples and let the user to decide which one is better.</p>
<p>In the sample below, I introduced a new control: FPS Meter, which will display the FPS (frame per second) of the application. To start with the stress test, just click on the application continually and compare their differences.</p>
<p>
Flash:<br />
<object id="FpsMeter" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="src" value="http://yasirmturk.com/static/FpsMeter.swf" /><param name="name" value="FpsMeter" /><param name="allowfullscreen" value="false" /><embed id="FpsMeter" type="application/x-shockwave-flash" width="550" height="400" src="http://yasirmturk.com/static/FpsMeter.swf" name="FpsMeter" bgcolor="#ffffff" quality="high" allowfullscreen="false" allowscriptaccess="sameDomain" align="middle"></embed></object><br />
Silverlight:</p>
<div style="height: 100%;">
 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="400px"><param name="source" value="http://yasirmturk.com/static/FpsMeter.xap" /><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40818.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40818.0" style="text-decoration: none"><br />
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"<br />
                    style="border-style: none" /><br />
            </a><br />
        </object>
</div>
<h2>Comparison</h2>
<p><strong>Flash implementation: </strong>45 minutes (Implemented First)<br />
<strong>Silverlight implementation:</strong> 50 minutes</p>
<h3>Stress Test Result [AS3] vs [C#]</h3>
<p>These are my findings when running the applications in my Intel Core Duo CPU (T2350) @ 1.86GHz Computer.</p>
<table>
<tr>
<th>
                </th>
<th>
                    Flash
                </th>
<th>
                    Silverlight
                </th>
</tr>
<tr>
<td>
                    Initial FPS:
                </td>
<td>
                    60
                </td>
<td>
                    95
                </td>
</tr>
<tr>
<td>
                    FPS after 30 clicks:
                </td>
<td>
                    30
                </td>
<td>
                    51
                </td>
</tr>
<tr>
<td>
                    FPS after 50 clicks:
                </td>
<td>
                    20
                </td>
<td>
                    31
                </td>
</tr>
<tr>
<td>
                    CPU usage after 50 clicks:
                </td>
<td>
                    80%
                </td>
<td>
                    89%
                </td>
</tr>
</table>
<p>It seems that Silverlight has a better performance in handling images.</p>
<p>I think your testing result will be different from mine. Feel free to share your findings as well~</p>
<h3>Source codes</h3>
<p><a href="#">FPS Meter [Flash 9, AS3]</a></p>
<p><a href="#">FPS Meter [Silverlight 2, C#]</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/zazFz_G1Ha9RbO71sI3ih0AFgZg/0/da"><img src="http://feedads.g.doubleclick.net/~a/zazFz_G1Ha9RbO71sI3ih0AFgZg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zazFz_G1Ha9RbO71sI3ih0AFgZg/1/da"><img src="http://feedads.g.doubleclick.net/~a/zazFz_G1Ha9RbO71sI3ih0AFgZg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=kK9ZTY0C2vs:0mwQf-UZH1o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=kK9ZTY0C2vs:0mwQf-UZH1o:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=kK9ZTY0C2vs:0mwQf-UZH1o:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=kK9ZTY0C2vs:0mwQf-UZH1o:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=kK9ZTY0C2vs:0mwQf-UZH1o:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=kK9ZTY0C2vs:0mwQf-UZH1o:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/kK9ZTY0C2vs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/12/flash-vs-silverlight-frame-per-second-meter-stress-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/12/flash-vs-silverlight-frame-per-second-meter-stress-test/</feedburner:origLink></item>
		<item>
		<title>ASP.NET Security Vulnerability – Protect Your Data</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/giV9aVJQFKo/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/09/asp-net-security-vulnerability-protect-your-data/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 16:34:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[aspnet]]></category>
		<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[aspnet security]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=212</guid>
		<description><![CDATA[Microsoft released a Microsoft Security Advisory about a security vulnerability in ASP.NET. This vulnerability exists in all versions of ASP.NET. This vulnerability was publically disclosed at a security conference. Microsoft recommends that all customers immediately apply a workaround (described below) to prevent attackers from using this vulnerability against your ASP.NET applications. What is vulnerability, how [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft released a <a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx" target="_blank">Microsoft Security Advisory</a> about a security vulnerability in ASP.NET.  This vulnerability exists in all versions of ASP.NET.<br />
This vulnerability was publically disclosed at a security conference.  Microsoft recommends that all customers immediately apply a workaround (described below) to prevent attackers from using this vulnerability against your ASP.NET applications.<br />
<em> What is vulnerability, how it works and the workaround is given in detail in the following link?</em></p>
<p><a href="http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx" target="_blank">http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx</a></p>
<p><strong>In Short: </strong></p>
<ul>
<li>The attacker can decrypt the viewstate and read information in it</li>
<li>The attacker can modify the viewstate and send it to server</li>
<li>The attacker can read the contents of web.config</li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/2IaBcH7-5EL8X8XhMoj2-xh2Ffs/0/da"><img src="http://feedads.g.doubleclick.net/~a/2IaBcH7-5EL8X8XhMoj2-xh2Ffs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2IaBcH7-5EL8X8XhMoj2-xh2Ffs/1/da"><img src="http://feedads.g.doubleclick.net/~a/2IaBcH7-5EL8X8XhMoj2-xh2Ffs/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=giV9aVJQFKo:dgNoaBoY3fY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=giV9aVJQFKo:dgNoaBoY3fY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=giV9aVJQFKo:dgNoaBoY3fY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=giV9aVJQFKo:dgNoaBoY3fY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=giV9aVJQFKo:dgNoaBoY3fY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=giV9aVJQFKo:dgNoaBoY3fY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/giV9aVJQFKo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/09/asp-net-security-vulnerability-protect-your-data/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/09/asp-net-security-vulnerability-protect-your-data/</feedburner:origLink></item>
		<item>
		<title>Select Distinct on one column in T-SQL</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/os1pALP4nZs/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/09/select-distinct-on-one-column-in-t-sql/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 14:57:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[ms sql]]></category>
		<category><![CDATA[tsql]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=203</guid>
		<description><![CDATA[I have three tables, X, Y and Z. The tables are written such that X.YID = Y.YID, and Y.ZID = Z.ZID. This basically allows me to write a query where I link a record from X to Y, and link the Y record to a record from Z. So far so good, simple query. But [...]]]></description>
			<content:encoded><![CDATA[<p>I have three tables, X, Y and Z. The tables are written such that X.YID = Y.YID, and Y.ZID = Z.ZID. This basically allows me to write a query where I link a record from X to Y, and link the Y record to a record from Z. So far so good, simple query.</p>
<p>But the problem is&#8230; one of the columns included in the query e.g. <strong>Z.ZCOL2</strong> has to have unique values; the values in this column can only show up once in the query result, but other columns from the other tables do not have this requirement.</p>
<p>Here is the table schema with generic names</p>
<pre>
Table X (XID, YID, XCOL1, XCOL2 ... XCOLN)
Table Y (YID, ZID, YCOL1, YCOL2 ... YCOLN)
Table Z (ZID, ZCOL1, ZCOL2 ... ZCOLN)</pre>
<p>Without the unique value constraint in <strong>Z.ZCOL2</strong>, the query will look like this:</p>
<pre>
SELECT
    X.XID, X.XCOL1 ... ,
    Y.YID, Y.YCOL1 ... ,
    Z.ZID, Z.ZCOL1, Z.ZCOL2 ... Z.ZCOLN
FROM
    X, Y, Z
WHERE
    X.YID = Y.YID AND Y.ZID = Z.ZID</pre>
<p>&#8230; but of course that doesn&#8217;t make sure the that values in <strong>Z.ZCOL2</strong> are unique.</p>
<p><strong>Solution 1:</strong></p>
<pre>
SELECT X.*, Y.*, Z.*
  FROM Z
    JOIN Y ON Y.ZID = Z.ZID
    JOIN X ON X.YID = Y.YID
    JOIN
    (
      SELECT id = min(XID)
        FROM Z
          JOIN Y ON Y.ZID = Z.ZID
          JOIN X ON X.YID = Y.YID
        GROUP BY ZCOL2
    ) A ON A.id = X.XID
</pre>
<p><strong>Solution 2: <em>SQL SERVER 2005 +</em></strong></p>
<pre>
SELECT  *
FROM    (SELECT
         X.XID, X.XCOL1 ... ,
         Y.YID, Y.YCOL1 ... ,
         Z.ZID, Z.ZCOL1, Z.ZCOL2 ... Z.ZCOLN,
                ROW_NUMBER() OVER (PARTITION BY Z.ZCOL2 ORDER BY ID) AS RowNumber
     FROM
         X, Y, Z
     WHERE
         X.YID = Y.YID AND Y.ZID = Z.ZID) AS A
WHERE A.RowNumber = 1
</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/tQB6GcFBeT079XBg9vUaW-FzggU/0/da"><img src="http://feedads.g.doubleclick.net/~a/tQB6GcFBeT079XBg9vUaW-FzggU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/tQB6GcFBeT079XBg9vUaW-FzggU/1/da"><img src="http://feedads.g.doubleclick.net/~a/tQB6GcFBeT079XBg9vUaW-FzggU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=os1pALP4nZs:9jROl3BCYbI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=os1pALP4nZs:9jROl3BCYbI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=os1pALP4nZs:9jROl3BCYbI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=os1pALP4nZs:9jROl3BCYbI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=os1pALP4nZs:9jROl3BCYbI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=os1pALP4nZs:9jROl3BCYbI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/os1pALP4nZs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/09/select-distinct-on-one-column-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/09/select-distinct-on-one-column-in-t-sql/</feedburner:origLink></item>
		<item>
		<title>Build and Deploy iphone/ipad Apps without paying for Developer license</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/AbLw3NoxkPY/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/07/build-and-deploy-iphoneipad-apps-without-paying-for-developer-license/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 10:35:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone App]]></category>
		<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[appstore developer license]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://blog.yasirmturk.com/?p=189</guid>
		<description><![CDATA[Steps for Building your App for iPhone Device This is assuming &#8216;Developer&#8216; is the directory where you installed xCode. 1. Edit: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/SDKSettings.plist and change CODE_SIGNING_REQUIRED from YES to NO. 2. Run this script: #!/bin/bash cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/ dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255 printf "\x8f\x2a\x00\x00" &#62;&#62; working dd if=iPhoneOS\ Build\ System\ [...]]]></description>
			<content:encoded><![CDATA[<h3>Steps for Building your App for iPhone Device</h3>
<p>This is assuming &#8216;<strong>Developer</strong>&#8216; is the directory where you installed xCode.<br />
<span id="more-191"></span><br />
1. Edit:
<pre>/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/SDKSettings.plist</pre>
<p> and change CODE_SIGNING_REQUIRED from YES to NO.</p>
<p>2. Run this script:</p>
<pre>#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/

dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255
printf "\x8f\x2a\x00\x00" &gt;&gt; working
dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original
/bin/mv working iPhoneOS\ Build\ System\ Support
chmod a+x iPhoneOS\ Build\ System\ Support</pre>
<p>3. In project settings set Code Signing Identity and Any iPhone OS Device to &#8216;don&#8217;t code sign.&#8217;</p>
<p>4. In Project Set Active SDK and Active Build Configuration accordingly.</p>
<p>4. In Project select Build tab and set Configuration to Release.</p>
<h3>Steps for Deploying on your device</h3>
<p>There are two options; Cydia or iPhone Explorer</p>
<p>Second option is easy and handy if you need the app to install on your own device coz you need to connect your device using usb cable and then transfer .deb file using iphone explorer and then run command to install it</p>
<p>For distributing your App to other people using jailbroken iphone/ipad devices you need to create your own repository and upload you App to it. then you need to publish your repository to your users</p>

<p><a href="http://feedads.g.doubleclick.net/~a/M7a61Ce0iTY-hBV55JD20-vnLf4/0/da"><img src="http://feedads.g.doubleclick.net/~a/M7a61Ce0iTY-hBV55JD20-vnLf4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/M7a61Ce0iTY-hBV55JD20-vnLf4/1/da"><img src="http://feedads.g.doubleclick.net/~a/M7a61Ce0iTY-hBV55JD20-vnLf4/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=AbLw3NoxkPY:NveSu2oMJNo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=AbLw3NoxkPY:NveSu2oMJNo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=AbLw3NoxkPY:NveSu2oMJNo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=AbLw3NoxkPY:NveSu2oMJNo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=AbLw3NoxkPY:NveSu2oMJNo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=AbLw3NoxkPY:NveSu2oMJNo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/AbLw3NoxkPY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/07/build-and-deploy-iphoneipad-apps-without-paying-for-developer-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/07/build-and-deploy-iphoneipad-apps-without-paying-for-developer-license/</feedburner:origLink></item>
		<item>
		<title>Technology Updates!</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/iVPzc1kjWFE/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/07/technology-updates/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 11:32:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[ibm Billennium]]></category>
		<category><![CDATA[ibm Trillennium]]></category>
		<category><![CDATA[pentium]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://blog.yasirmturk.com/?p=177</guid>
		<description><![CDATA[Once upon a time , there was a software engineer who used to develop programs on his Pentium machine, sitting under a tree on the banks of a river. He used to earn his bread by selling those programs in the Sunday market. One day, while he was working, his machine tumbled off the table [...]]]></description>
			<content:encoded><![CDATA[<p>Once upon a time , there was a software engineer who used to develop programs on his <strong>Pentium</strong> machine, sitting under a tree on the banks of a river. He used to earn his bread by selling those programs in the Sunday market.<br />
One day, while he was working, his machine tumbled off the table and fell in the river. Encouraged by the Panchatantra story of his childhood (the woodcutter and the axe ), He started praying to the River Goddess. The River Goddess wanted to test him and so appeared only after one month of rigorous prayers. The engineer told her that he had lost his computer in the river.<br />
As usual, the Goddess wanted to test his honesty. She showed him a match box and asked,</p>
<blockquote><p>Is this your computer?</p></blockquote>
<p>Disappointed by the Goddess&#8217; lack of computer awareness, the engineer replied,</p>
<blockquote><p>&#8220;No&#8221;</p></blockquote>
<p>She next showed him a pocket-sized calculator and asked if that was his.<br />
Annoyed, the engineer said</p>
<blockquote><p>&#8220;No, not at all!!&#8221;</p></blockquote>
<p>Finally, she came up with his own Pentium machine and asked if it was his.<br />
The engineer, left with no option, sighed and said<br />
<blockquote>&#8220;Yes&#8221;</p></blockquote>
<p>The River Goddess was happy with his honesty. She was about to give him all three items, but before she could make the offer, the engineer asked her,</p>
<blockquote><p>&#8220;Don&#8217;t you know that you&#8217;re supposed to show me some better computers before bringing up my own ?&#8221;</p></blockquote>
<p>The River Goddess, angered at this, replied,</p>
<blockquote><p>&#8220;I know that, you stupid donkey! The first two things I showed you were the Trillennium and the Billennium, the latest computers from IBM!&#8221;</p></blockquote>
<p>. So saying, she disappeared with the Pentium!!</p>
<p><strong>Moral:</strong>If you&#8217;re not up-to-date with technology trends , it&#8217;s better to keep your mouth shut and let people think you&#8217;re a fool than to open your mouth and remove all doubt.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/RdMNH0PvuurxuXT91-zctvEQ1JI/0/da"><img src="http://feedads.g.doubleclick.net/~a/RdMNH0PvuurxuXT91-zctvEQ1JI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RdMNH0PvuurxuXT91-zctvEQ1JI/1/da"><img src="http://feedads.g.doubleclick.net/~a/RdMNH0PvuurxuXT91-zctvEQ1JI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=iVPzc1kjWFE:X8uUMPgVCyE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=iVPzc1kjWFE:X8uUMPgVCyE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=iVPzc1kjWFE:X8uUMPgVCyE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=iVPzc1kjWFE:X8uUMPgVCyE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=iVPzc1kjWFE:X8uUMPgVCyE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=iVPzc1kjWFE:X8uUMPgVCyE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/iVPzc1kjWFE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/07/technology-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/07/technology-updates/</feedburner:origLink></item>
		<item>
		<title>Hello world!</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/cNCHx34r4fY/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/07/hello-world/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:23:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yasirmturk.com/blog/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/rmcQvX3XHf7uivN9zFG79zR4rp8/0/da"><img src="http://feedads.g.doubleclick.net/~a/rmcQvX3XHf7uivN9zFG79zR4rp8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rmcQvX3XHf7uivN9zFG79zR4rp8/1/da"><img src="http://feedads.g.doubleclick.net/~a/rmcQvX3XHf7uivN9zFG79zR4rp8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=cNCHx34r4fY:CBKficWYbRE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=cNCHx34r4fY:CBKficWYbRE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=cNCHx34r4fY:CBKficWYbRE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=cNCHx34r4fY:CBKficWYbRE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=cNCHx34r4fY:CBKficWYbRE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=cNCHx34r4fY:CBKficWYbRE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/cNCHx34r4fY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/07/hello-world/</feedburner:origLink></item>
		<item>
		<title>Watch Live Cricket and Football Matches – Sports Time</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/sFzsBpP2KaQ/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/06/watch-live-cricket-and-football-matches-sports-time/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 16:24:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[live cricket]]></category>
		<category><![CDATA[live football]]></category>
		<category><![CDATA[sports]]></category>

		<guid isPermaLink="false">http://blog.yasirmturk.com/?p=139</guid>
		<description><![CDATA[For Live Cricket Matches Click Here For Live Football Matches Click Here]]></description>
			<content:encoded><![CDATA[<h1>For Live <strong>Cricket </strong>Matches <a href="http://kashifbutt.com/live-football/">Click Here</a></h1>
<h1>For Live <strong>Football </strong>Matches <a href="http://kashifbutt.com/nasa-tv/">Click Here</a></h1>

<p><a href="http://feedads.g.doubleclick.net/~a/c0F9lVHK8MWB_e97oY7sMG_zW18/0/da"><img src="http://feedads.g.doubleclick.net/~a/c0F9lVHK8MWB_e97oY7sMG_zW18/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/c0F9lVHK8MWB_e97oY7sMG_zW18/1/da"><img src="http://feedads.g.doubleclick.net/~a/c0F9lVHK8MWB_e97oY7sMG_zW18/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=sFzsBpP2KaQ:lEbcD7SodVE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=sFzsBpP2KaQ:lEbcD7SodVE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=sFzsBpP2KaQ:lEbcD7SodVE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=sFzsBpP2KaQ:lEbcD7SodVE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=sFzsBpP2KaQ:lEbcD7SodVE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=sFzsBpP2KaQ:lEbcD7SodVE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/sFzsBpP2KaQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/06/watch-live-cricket-and-football-matches-sports-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/06/watch-live-cricket-and-football-matches-sports-time/</feedburner:origLink></item>
		<item>
		<title>Asp.net Session Fail – Cookies blocked in IE IFrame Solution</title>
		<link>http://feedproxy.google.com/~r/yasirmturk/~3/v8SB_XHy6Ns/</link>
		<comments>http://yasirmturk.com/blog/index.php/2010/06/asp-net-session-fail-cookies-blocked-in-ie-iframe-solution/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:36:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[The Smart Engineer]]></category>
		<category><![CDATA[aspnet session]]></category>
		<category><![CDATA[compact privacy policy]]></category>
		<category><![CDATA[iframe cookies]]></category>
		<category><![CDATA[P3P]]></category>
		<category><![CDATA[privacy policy]]></category>

		<guid isPermaLink="false">http://blog.yasirmturk.com/?p=122</guid>
		<description><![CDATA[Internet Explorer gives a lower confidence level to the pages in IFRAME (a.k.a &#8220;third party&#8221;). If the page inside the IFRAME does not have a P3P CP / Compact Privacy Policy / Privacy Policy, its cookies are blocked as indicated by the icon in the tray of [devil's] eye, (when she stated clicked, displays a [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer gives a lower confidence level to the pages in IFRAME (a.k.a &#8220;third party&#8221;). If the page inside the IFRAME does not have a P3P CP / Compact Privacy Policy / Privacy Policy, its cookies are blocked as indicated by the icon in the tray of [devil's] eye, (when she stated clicked, displays a list of blocked URLs).</p>
<h2>Work Around</h2>
<p>There are <span style="text-decoration: underline;">two ways</span> to solve this.<br />
1. If you are <strong>visitor </strong>of the site, change the IE settings to accept all cookies. This can be done by navigating to</p>
<blockquote><p>Internet Options &gt;&gt; Privacy &gt;&gt; Advanced &gt;&gt; Check “Override Automatic Cookie Handling” and “Always allow session cookies”.</p></blockquote>
<p>2. If you are <strong>developer </strong>or webmaster of the site, then you can add p3p headers to the pages loaded in iframe.</p>
<ul>
<li><strong>Step 1:</strong> Create a p3p policy</li>
<p>If your website do not have already a privacy policy, create one. W3C Tutorial:http://www.w3.org/P3P/details.html<br />
IBM Privacy Policy Editor:http://www.alphaworks.ibm.com/tech/p3peditor</p>
<li><strong>Step 2:</strong> Deploy  P3P Policy
<ol>
<li>p3p.xml</li>
<p>Sample contents of p3p.xml<br />
<code></code></p>
<p><code></code></p>
<p><code></p>
<div id="_mcePaste">&lt;META xmlns="http://www.w3.org/2002/01/P3Pv1"&gt;</div>
<div id="_mcePaste">&lt;POLICY-REFERENCES&gt;</div>
<div id="_mcePaste">&lt;POLICY-REF about="/w3c/Privacy-Full.xml#PrivacyPolicy1"&gt;</div>
<div id="_mcePaste">&lt;INCLUDE&gt;/*&lt;/INCLUDE&gt;</div>
<div id="_mcePaste">&lt;COOKIE-INCLUDE/&gt;</div>
<div id="_mcePaste">&lt;/POLICY-REF&gt;</div>
<div id="_mcePaste">&lt;/POLICY-REFERENCES&gt;</div>
<div id="_mcePaste">&lt;/META&gt;</div>
<p></code><code>&lt;META xmlns="http://www.w3.org/2002/01/P3Pv1"&gt;  &lt;POLICY-REFERENCES&gt;    &lt;POLICY-REF about="/w3c/Privacy.xml#PMPrivacyPolicy1"&gt;      &lt;INCLUDE&gt;/*&lt;/INCLUDE&gt;      &lt;COOKIE-INCLUDE/&gt;    &lt;/POLICY-REF&gt;  &lt;/POLICY-REFERENCES&gt;&lt;/META&gt;</code></p>
<li>Privacy-Full.xml</li>
<li>Policy.html</li>
</ol>
</li>
<li><strong>Step 3:</strong></li>
<p>You need to set the compact header with responses<br />
<strong> In ASP.NET:<br />
</strong> <code>HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");</code><br />
<em> This CP will unblock cookies if you are using them for asp.net state management and user tracking</em></ul>

<p><a href="http://feedads.g.doubleclick.net/~a/C_7RPgfF1j_2qV7Q1hhxVAwhlvs/0/da"><img src="http://feedads.g.doubleclick.net/~a/C_7RPgfF1j_2qV7Q1hhxVAwhlvs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/C_7RPgfF1j_2qV7Q1hhxVAwhlvs/1/da"><img src="http://feedads.g.doubleclick.net/~a/C_7RPgfF1j_2qV7Q1hhxVAwhlvs/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yasirmturk?a=v8SB_XHy6Ns:o4TQNsthvZc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=v8SB_XHy6Ns:o4TQNsthvZc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=v8SB_XHy6Ns:o4TQNsthvZc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=v8SB_XHy6Ns:o4TQNsthvZc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yasirmturk?i=v8SB_XHy6Ns:o4TQNsthvZc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yasirmturk?a=v8SB_XHy6Ns:o4TQNsthvZc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/yasirmturk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yasirmturk/~4/v8SB_XHy6Ns" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://yasirmturk.com/blog/index.php/2010/06/asp-net-session-fail-cookies-blocked-in-ie-iframe-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://yasirmturk.com/blog/index.php/2010/06/asp-net-session-fail-cookies-blocked-in-ie-iframe-solution/</feedburner:origLink></item>
	</channel>
</rss>

