<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>mgthantzin.com/blog &#187; programming</title>
	<atom:link href="http://mgthantzin.com/blog/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://mgthantzin.com/blog</link>
	<description>After the sunset, a new day must be born,... trust me.</description>
	<lastBuildDate>Fri, 27 May 2011 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Ajax Tab Panel Disappearing in Chrome</title>
		<link>http://mgthantzin.com/blog/2010/10/ajax-tab-panel-disappearing-in-chrome/</link>
		<comments>http://mgthantzin.com/blog/2010/10/ajax-tab-panel-disappearing-in-chrome/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 02:03:58 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[TabPanel]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=86</guid>
		<description><![CDATA[After postback, entire Ajax Tab Panel becomes invisible in Chrome. Fix is: &#60;compilation debug=&#8221;false&#8221; strict=&#8221;false&#8221; explicit=&#8221;true&#8221;&#62; Credit goes to XJ.]]></description>
			<content:encoded><![CDATA[<p>After postback, entire Ajax Tab Panel becomes invisible in Chrome. Fix is:</p>
<blockquote><p>&lt;compilation <span style="color: #ff0000;">debug=&#8221;false&#8221;</span> strict=&#8221;false&#8221; explicit=&#8221;true&#8221;&gt;</p></blockquote>
<p>Credit goes to XJ.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/10/ajax-tab-panel-disappearing-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 SP1 Data Source Windows Problem</title>
		<link>http://mgthantzin.com/blog/2010/07/visual-studio-2008-sp1-data-source-windows-problem/</link>
		<comments>http://mgthantzin.com/blog/2010/07/visual-studio-2008-sp1-data-source-windows-problem/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 08:43:27 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=68</guid>
		<description><![CDATA[I haven&#8217;t used data source that much as I have been working on web projects for quite some time. Today, I gotta take a look at our previous Windows program and realized that nothing happened when I clicked &#8216;Show Data Sources&#8217; or &#8216;Add New Data Source&#8230;&#8217; from Data menu. I had to run this once [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t used data source that much as I have been working on web projects for quite some time. Today, I gotta take a look at our previous Windows program and realized that nothing happened when I clicked &#8216;Show Data Sources&#8217; or &#8216;Add New Data Source&#8230;&#8217; from Data menu. I had to run this once to get it solved.</p>
<p><code>"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /setup</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/07/visual-studio-2008-sp1-data-source-windows-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript pageLoad() for MasterPage and ContentPage</title>
		<link>http://mgthantzin.com/blog/2010/05/javascript-pageload-for-masterpage-and-contentpage/</link>
		<comments>http://mgthantzin.com/blog/2010/05/javascript-pageload-for-masterpage-and-contentpage/#comments</comments>
		<pubDate>Thu, 13 May 2010 16:03:27 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[contentpage]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[masterpage]]></category>
		<category><![CDATA[pageLoad()]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=31</guid>
		<description><![CDATA[Sometimes, we need to use pageLoad() function in both MasterPage and ContentPage to get something done. But, if we add two function with such same name, that function residing in ContentPage will be ignored by the browser. To correct this behaviour, we need to extend pageLoad() function in MasterPage as follows: In MasterPage function pageLoad(sender, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, we need to use pageLoad() function in both  MasterPage and ContentPage to get something done. But, if we add two  function with such same name, that function residing in ContentPage will  be ignored by the browser. To correct this behaviour, we need to extend  pageLoad() function in MasterPage as follows:</p>
<p>In MasterPage</p>
<div>
<table>
<tbody>
<tr>
<td>
<pre>function pageLoad(sender, args)
{
...
// ... do my MasterPage JavaScript stuff...
...
if (window.contentPageLoad) {
window.contentPageLoad(sender, args);
}
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>In ContentPage</p>
<div>
<table>
<tbody>
<tr>
<td>
<pre>function contentPageLoad(sender, args)
{
// do something
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>Credit goes to <a href="http://devio.wordpress.com/2009/02/22/javascript-pageload-for-masterpage-and-contentpage/" target="_blank">devioblog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/javascript-pageload-for-masterpage-and-contentpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding external files to VS project</title>
		<link>http://mgthantzin.com/blog/2010/05/adding-external-files-to-vs-project/</link>
		<comments>http://mgthantzin.com/blog/2010/05/adding-external-files-to-vs-project/#comments</comments>
		<pubDate>Thu, 13 May 2010 16:00:51 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[JS]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=27</guid>
		<description><![CDATA[Sometimes, we need to include files while publishing our web application in Visual Studio. But, those files (e.g. pdf) are not published together. In that case, make sure the file is in project. Right-click the file and if you see ‘Include in Project’, it means that file is not part of project yet. Then, right-click [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, we need to include files while publishing our web  application in Visual Studio. But, those files (e.g. pdf) are not  published together. In that case, make sure the file is in project.  Right-click the file and if you see ‘Include in Project’, it means that  file is not part of project yet. Then, right-click the file again.  Select properties and set these values:</p>
<p>Build Action: Content<br />
Copy to Output Directory: Do not copy (This is to copy the file to Bin  folder.)</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/adding-external-files-to-vs-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>innerText for Firefox</title>
		<link>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/</link>
		<comments>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:59:17 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[innertext]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=25</guid>
		<description><![CDATA[Firefox doesn’t recognise innerText property. Below is the fix. var AmountLabelControl = document.getElementById('lblAmount'); var amount; if (AmountLabelControl.textContent) { // Firefox... amount = AmountLabelControl.textContent; } else if (AmountLabelControl.innerText) { // IE... amount = AmountLabelControl.innerText; } Thant Zin Oo]]></description>
			<content:encoded><![CDATA[<p>Firefox doesn’t recognise innerText property. Below is the  fix.</p>
<table>
<tbody>
<tr>
<td>
<pre>var AmountLabelControl = document.getElementById('lblAmount');

var amount;

if (AmountLabelControl.textContent) {
// Firefox...
amount = AmountLabelControl.textContent;
}
else if (AmountLabelControl.innerText) {
// IE...
amount = AmountLabelControl.innerText;
}</pre>
</td>
</tr>
</tbody>
</table>
<p></p>
<p>Thant Zin Oo</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE8 renders blank sub menu items for ASP:Menu</title>
		<link>http://mgthantzin.com/blog/2010/05/ie8-renders-blank-sub-menu-items-for-aspmenu/</link>
		<comments>http://mgthantzin.com/blog/2010/05/ie8-renders-blank-sub-menu-items-for-aspmenu/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:58:35 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[submenu]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=23</guid>
		<description><![CDATA[This is a known issue. Add following CSS class to your page. .IE8Fix { z-index:100; } And, apply that CSS to your menu’s DynamicMenuStyle. &#60;asp:Menu ID="ApplicationMenu" runat="server" Orientation="Horizontal"&#62; &#60;DynamicMenuStyle CssClass="IE8Fix" /&#62; &#60;/asp:Menu&#62; Credit goes to km Web Solutions.]]></description>
			<content:encoded><![CDATA[<p>This is <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=364930" target="_blank">a  known issue</a>. Add following CSS class to your page.</p>
<div>
<table>
<tbody>
<tr>
<td>
<pre>.IE8Fix
{
z-index:100;
}</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>And, apply that CSS to your menu’s DynamicMenuStyle.</p>
<div>
<table>
<tbody>
<tr>
<td>
<pre>&lt;asp:Menu ID="ApplicationMenu" runat="server" Orientation="Horizontal"&gt;
            &lt;DynamicMenuStyle CssClass="IE8Fix" /&gt;
&lt;/asp:Menu&gt;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>Credit goes to <a href="http://www.webdatadesign.com.au/pt/blog/default.aspx?id=60&amp;t=IE8-rendering-white-space-Aspnet-Menu" target="_blank">km  Web Solutions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/ie8-renders-blank-sub-menu-items-for-aspmenu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulating Button Click() Event in Firefox</title>
		<link>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/</link>
		<comments>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:57:29 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[simulate]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=21</guid>
		<description><![CDATA[We cannot directly simulate click event in Firefox. Add the following code to register mouseclick event for the button. HTMLElement.prototype.click = function() { var evt = this.ownerDocument.createEvent(‘MouseEvents’); evt.initMouseEvent(‘click’, true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } Then, you may call the event in Firefox as if you [...]]]></description>
			<content:encoded><![CDATA[<p>We cannot directly simulate click event in Firefox. Add the  following code to register mouseclick event for the button.</p>
<div>
<div>HTMLElement.prototype.click  = function() {<br />
var evt = this.ownerDocument.createEvent(‘MouseEvents’);<br />
evt.initMouseEvent(‘click’,  true, true, this.ownerDocument.defaultView,  1, 0, 0, 0, 0,  false, false, false,  false, 0, null);<br />
this.dispatchEvent(evt);<br />
}</div>
</div>
<p></p>
<p>Then, you may call the event in Firefox as if you do in IE.</p>
<p>For client-side button: document.getElementById(’btnUpdate’).click();<br />
For server-side button: document.getElementById(’&lt;%=  this.btnUpdate.ClientID %&gt;‘).click();</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iFrame &amp; Modal PopUp</title>
		<link>http://mgthantzin.com/blog/2010/05/iframe-modal-popup/</link>
		<comments>http://mgthantzin.com/blog/2010/05/iframe-modal-popup/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:56:41 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=19</guid>
		<description><![CDATA[Undesired Behaviour: I tried to call a ASP.Net Ajax Modal Popup from master page code and child page has got one HTML iFrame. Modal Popup didn’t appear while the code was executed. Fix: Add runat=”server” tag to iFrame and make it server-side element. Behaviour was corrected.]]></description>
			<content:encoded><![CDATA[<p>Undesired Behaviour: I tried to call a ASP.Net Ajax Modal  Popup from master page code and child page has got one HTML iFrame.  Modal Popup didn’t appear while the code was executed.</p>
<p>Fix: Add runat=”server” tag to iFrame and make it server-side  element. Behaviour was corrected.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/iframe-modal-popup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

