<?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>StolenBit</title>
	<atom:link href="http://www.stolenbit.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stolenbit.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 16 Dec 2011 11:31:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Data Binding to a Dependency Property on WPF ListBox</title>
		<link>http://www.stolenbit.com/2010/07/data-binding-to-a-dependency-property-on-wpf-listbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=data-binding-to-a-dependency-property-on-wpf-listbox</link>
		<comments>http://www.stolenbit.com/2010/07/data-binding-to-a-dependency-property-on-wpf-listbox/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 11:15:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=44</guid>
		<description><![CDATA[Problem: I need to display a feed from a certain source in a WPF ListBox. Approach: Set the item source of the ListBox to a dependency property. As the property changes, the items in the ListBox will also change. Solution: &#8230; <a href="http://www.stolenbit.com/2010/07/data-binding-to-a-dependency-property-on-wpf-listbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Problem: I need to display a feed from a certain source in a WPF ListBox.</p>
<p>Approach: Set the item source of the ListBox to a dependency property. As the property changes, the items in the ListBox will also change.</p>
<p>Solution:</p>
<p>1. Create a dependency property and its wrapper CLR property.</p>
<pre class="brush: csharp; title: ; notranslate">
/// &lt;summary&gt;        /// The Feed dependency property.        /// &lt;/summary&gt;      public static readonly DependencyProperty FeedProperty = DependencyProperty.Register(&quot;Feed&quot;, typeof(SyndicationFeed), typeof(FeedViewer));
/// &lt;summary&gt;        /// Gets or sets the feed.        /// &lt;/summary&gt;       /// &lt;value&gt;The syndication feed.&lt;/value&gt;      public SyndicationFeed Feed        {            get { return (SyndicationFeed)GetValue(FeedProperty); }            set { SetValue(FeedProperty, value); }        }
</pre>
<p>Note that FeedViewer is the user control containing the ListBox.</p>
<p>2. Bind the ListBox item source to the property.</p>
<p>There are two ways (well, at least, I think) to accomplish this.</p>
<p>2.1 XAML</pre>
<blockquote>
<pre>    &lt;UserControl x:Class="Controls.Wpf.FeedViewer"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"              <strong>x:Name="usrFeedViewer"</strong>&gt;        &lt;Grid&gt;            &lt;ListBox x:Name="uxFeedListBox"                  <strong>ItemsSource="{Binding ElementName=usrFeedViewer, Path=Feed.Items}" </strong>HorizontalContentAlignment="Stretch"                  Grid.Row="1" Margin="12,0,12,12" /&gt;        &lt;/Grid&gt;    &lt;/UserControl&gt;</pre>
<p><span style="font-family: Arial;">Note that the ItemSource accepts IEnumerable. Therefore, we assign the feed items for it instead of just Feed.</span></p></blockquote>
<p>2.2 Code Behind</p>
<p>For this approach, we are to create a PropertyChangedCallback event to handle when the Feed property is changed.</p>
<p>There is no need to set the ItemSource property in XAML for the ListBox.</p>
<p>The dependency property will be changed to:</p>
<p><span style="font-family: Courier New;">        /// &lt;summary&gt;</span></p>
<p>/// The Feed dependency property.</p>
<p>/// &lt;/summary&gt;</p>
<p>public static readonly DependencyProperty FeedProperty = DependencyProperty.Register("Feed", typeof(SyndicationFeed), typeof(FeedViewer), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnFeedChanged)));</p>
<p>&nbsp;</p>
<p>Now we define the event named OnFeedChanged:</p>
<pre>        /// &lt;summary&gt;        /// Called when [feed changed].        /// &lt;/summary&gt;        /// &lt;param name="sender"&gt;The sender.&lt;/param&gt;        /// &lt;param name="e"&gt;The &lt;see cref="System.Windows.DependencyPropertyChangedEventArgs"/&gt; instance containing the event data.&lt;/param&gt;        private static void OnFeedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)        {            var feedViewer = (FeedViewer)sender;            var newValue = (SyndicationFeed)e.NewValue;

            feedViewer.uxFeedListBox.ItemsSource = null;            feedViewer.uxFeedListBox.ItemsSource = newValue.Items;        }</pre>
<p>Now when you set/change the Feed property for this control in your application, the ListBox will show you corresponding feed <img src='http://www.stolenbit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2010/07/data-binding-to-a-dependency-property-on-wpf-listbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Clever(?) AdWords Technique</title>
		<link>http://www.stolenbit.com/2009/11/a-clever-adwords-technique/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-clever-adwords-technique</link>
		<comments>http://www.stolenbit.com/2009/11/a-clever-adwords-technique/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 09:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=43</guid>
		<description><![CDATA[For those of you who read manga, you probably know of the name “Naruto”. ”Naruto” is the name of a quite famous Japanese manga series (read more…). While browsing through a manga site today, I have come across an AdWords &#8230; <a href="http://www.stolenbit.com/2009/11/a-clever-adwords-technique/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For those of you who read manga, you probably know of the name “Naruto”.   <br />”Naruto” is the name of a quite famous Japanese manga series (<a href="http://en.wikipedia.org/wiki/Naruto" target="_blank">read more…</a>).    <br />While browsing through a manga site today, I have come across an AdWords that really caught my attention.    <br />”Naruto Hotels”!!! (What the…). Please see the image below for the ad.    <br />I can see that it is an ad from a trip agency but why Naruto!!!???    <br />After reading the details, I realized that, if I don’t misunderstand, the ad probably takes any famous word and put it as the title even if it doesn’t relate to what it is trying to sell.    <br />The outcome is that the trip agency ad appears on a manga site!    </p>
<p><a href="http://lh5.ggpht.com/_cMKhOANrsO4/SwesQpT3pdI/AAAAAAAAAHA/mNh4aIbamOg/s1600-h/Snap_2009.11.21%2014.58.10_001%5B3%5D.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Snap_2009.11.21 14.58.10_001" border="0" alt="Snap_2009.11.21 14.58.10_001" src="http://lh3.ggpht.com/_cMKhOANrsO4/SwesRXnuv5I/AAAAAAAAAHE/biweTb-KTlI/Snap_2009.11.21%2014.58.10_001_thumb%5B1%5D.png?imgmax=800" width="359" height="310" /></a> </p>
<p>What do you think about this marketing technique?   <br />Do you think the manga readers are their target audiences?    <br />Is this technique effective and not against any rule?    <br />Will it confuse the Web users seeing the ad?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2009/11/a-clever-adwords-technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hit Enter Key in a TextBox to Submit a Form – ASP.NET</title>
		<link>http://www.stolenbit.com/2009/03/hit-enter-key-in-a-textbox-to-submit-a-form-%e2%80%93-asp-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hit-enter-key-in-a-textbox-to-submit-a-form-%25e2%2580%2593-asp-net</link>
		<comments>http://www.stolenbit.com/2009/03/hit-enter-key-in-a-textbox-to-submit-a-form-%e2%80%93-asp-net/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 04:33:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=41</guid>
		<description><![CDATA[In ASP.NET, by default, hitting the Enter key in a TextBox fires the Click event of the first button found in the form. For example, you have sub-forms within a &#60;form&#62; element and each form requires its own default button. &#8230; <a href="http://www.stolenbit.com/2009/03/hit-enter-key-in-a-textbox-to-submit-a-form-%e2%80%93-asp-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In ASP.NET, by default, hitting the Enter key in a TextBox fires the Click event of the first button found in the form.   <br />For example, you have sub-forms within a &lt;form&gt; element and each form requires its own default button.    <br />The default action of firing the first button found on a Web page is not what we want.    <br />Making the &lt;form&gt; run at server and setting a DefaultButton property for the form is not a solution since it can only assign one button as the default button.    <br />Having more than one server-side forms is not a solution either since it will not work.</p>
<p>One solution is to surround each sub-form with <strong>&lt;asp:Panel&gt;</strong> element and setting its <em>DefaultButton</em> property to a desired button.    <br />This way, you can have many sub-forms on one page with their own default buttons <img src='http://www.stolenbit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2009/03/hit-enter-key-in-a-textbox-to-submit-a-form-%e2%80%93-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Firefox to Access a SharePoint Site Without Logging In</title>
		<link>http://www.stolenbit.com/2009/01/enable-firefox-to-access-a-sharepoint-site-without-logging-in/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enable-firefox-to-access-a-sharepoint-site-without-logging-in</link>
		<comments>http://www.stolenbit.com/2009/01/enable-firefox-to-access-a-sharepoint-site-without-logging-in/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 04:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=40</guid>
		<description><![CDATA[By default, you will need to provide a username and password for accessing a SharePoint site via Firefox even though you are in the same domain as SharePoint’s. This does not happen in IE. To enable an automatic login for &#8230; <a href="http://www.stolenbit.com/2009/01/enable-firefox-to-access-a-sharepoint-site-without-logging-in/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By default, you will need to provide a username and password for accessing a SharePoint site via Firefox even though you are in the same domain as SharePoint’s.    <br />This does not happen in IE.     <br />To enable an automatic login for Firefox, you will need to configure Firefox to use Windows’s built-in NTLM authentication.     <br />To do so, follow the steps below:</p>
<ol>
<li>Type <strong><font color="#800000">about:config</font></strong> in Firefox’s address bar and press Enter key. </li>
<li>In the Filter textbox, type <font color="#800000"><strong>network.automatic-ntlm-auth.trusted-uris</strong></font> and press Enter key.       <br />You should now see the specified setting appearing in the preference name section. </li>
<li>Double click the preference name (or right click and choose Modify) to modify the value. </li>
<li>In the appearing dialog, enter the SharePoint server URLs (with no tailing “/”) separated by a comma and click OK when done. </li>
</ol>
<p>That’s all and you are good to go <img src='http://www.stolenbit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2009/01/enable-firefox-to-access-a-sharepoint-site-without-logging-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Class in App_Code Folder Does Not Get Compiled</title>
		<link>http://www.stolenbit.com/2008/12/a-class-in-app_code-folder-does-not-get-compiled/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-class-in-app_code-folder-does-not-get-compiled</link>
		<comments>http://www.stolenbit.com/2008/12/a-class-in-app_code-folder-does-not-get-compiled/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 10:41:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=39</guid>
		<description><![CDATA[Today I’ve experienced one odd thing with Visual Studio 2008. As we know, App_Code is not needed for a Web application project under VS2008 since class files can be put anywhere. However, to keep it clean and easy to find, &#8230; <a href="http://www.stolenbit.com/2008/12/a-class-in-app_code-folder-does-not-get-compiled/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I’ve experienced one odd thing with Visual Studio 2008.   <br />As we know, App_Code is not needed for a Web application project under VS2008 since class files can be put anywhere.    <br />However, to keep it clean and easy to find, I decided to created one and create class files under the folder.    <br />It appears that those created objects do not be available.    <br />In the other words, they do not get compiled.    <br />After messing around, I found that the “Build Action” property of those files have been set to “Content” by default.    <br />Well, it should be “Compile” so that the files get compiled.    <br />I’ve also tried to create another folder with the name of “cs”.    <br />The created class files under “cs” have the “Build Action” property of “Compile”.    <br />Therefore, the solution is either set the “Build Action” property to “Compile” or never use a folder with the name of “App_Code”.</p>
<p>Now the question is… why does the “Build Action” property of the files under “App_Code” is “Content”?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/12/a-class-in-app_code-folder-does-not-get-compiled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Case-Insensitive XPath Searching</title>
		<link>http://www.stolenbit.com/2008/12/case-insensitive-xpath-searching/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=case-insensitive-xpath-searching</link>
		<comments>http://www.stolenbit.com/2008/12/case-insensitive-xpath-searching/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 12:50:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XPath Expression]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=38</guid>
		<description><![CDATA[As far as I know, there is no such xpath function to do the case-insenstive search. However, there is a work-around for this. The solution is to receive a lower-case string as the input and use lower-case() xpath function to &#8230; <a href="http://www.stolenbit.com/2008/12/case-insensitive-xpath-searching/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As far as I know, there is no such xpath function to do the case-insenstive search.    <br />However, there is a work-around for this.     <br />The solution is to receive a lower-case string as the input and use lower-case() xpath function to help perform the search.     <br />Consider the following XML:</p>
<div class="code" style="padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;      <br />&lt;specification&gt;       <br />&#160; &lt;name&gt;ASUS Striker&lt;/name&gt;       <br />&#160; &lt;manufacturer&gt;ASUS&lt;/manufacturer&gt;       <br />&#160; &lt;model&gt;Striker&lt;/model&gt;      <br />&lt;/specification&gt;</p>
</p></div>
<p>The following xpath do the search for “asu” which returns two string &#8211; “asus striker” and “asus”:</p>
<div class="code" style="padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
<p>/specification//<strong><font color="#800040">lower-case</font></strong>(text())[<strong><font color="#800040">contains</font></strong>(.,'asu')]</p>
</p></div>
<p>As we can see, using lower-caes() and contains() helps search for lower-case string even though the xml contains upper-case string.   <br />The text() function indicates the value of the node in context.    <br />You can also try name() which indicates the name of the node.    <br />You can try using upper-case() with upper-case input string as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/12/case-insensitive-xpath-searching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare Workstation on Windows Server 2008</title>
		<link>http://www.stolenbit.com/2008/12/vmware-workstation-on-windows-server-2008/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vmware-workstation-on-windows-server-2008</link>
		<comments>http://www.stolenbit.com/2008/12/vmware-workstation-on-windows-server-2008/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 19:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=37</guid>
		<description><![CDATA[I’m currently in a progress of deciding whether to VMWare Workstation or Hyper-V on my Windows Server 2008 for a development environment.&#160; At first, I meant to seek for the one with better performance.&#160; However, I’ve come across one article &#8230; <a href="http://www.stolenbit.com/2008/12/vmware-workstation-on-windows-server-2008/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I’m currently in a progress of deciding whether to VMWare Workstation or Hyper-V on my Windows Server 2008 for a development environment.&#160; At first, I meant to seek for the one with better performance.&#160; However, I’ve come across one article at <a href="http://www.ditii.com/2008/07/18/hyper-v-run-vmware-workstation-under-windows-sever-2008-without-bluescreen/" target="_blank">diTii.com</a> about an issue on using VMWare Workstation on Windows Server 2008.&#160; Below is what they say.&#160; It’s good to know this stuff beforehand.&#160; Thanks <img src='http://www.stolenbit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div style="border-right: #666666 1px solid; padding-right: 10px; border-top: #666666 1px solid; padding-left: 10px; border-left: #666666 1px solid; color: #666666; border-bottom: #666666 1px solid; font-style: italic">
<p>Due to the fact, in the current Intel/AMD chip architecture, only one hardware-based hypervisor can run at a time, you will want to create a special boot entry for a <strong>Hyper-V-less boot time configuration of Windows 2008</strong>. Assuming you are currently booted into Windows 2008, at an administrative command prompt, type the following:</p>
<p class="code" style="padding-left: 5px"><tt>bcdedit /copy {current} /d “Windows 2008 (No Hyper-V)”</tt></p>
<p>The above command should say: The entry was successfully copied to {guid}. </p>
<p>Copy that {guid} to the clipboard including the curly braces.</p>
<p>Now, type the following command:</p>
<p class="code" style="padding-left: 5px"><tt>bcdedit /set {guid} hypervisorlaunchtype off</tt></p>
<p>In the above command, replace {guid} with what you into the clipboard. </p>
<p>Boot into the ‘Windows 2008 (No Hyper-V)’ instance and you will no longer bluescreen while running VMWare guests.</p>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/12/vmware-workstation-on-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Space Under An Image in IE</title>
		<link>http://www.stolenbit.com/2008/11/space-under-an-image-in-ie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=space-under-an-image-in-ie</link>
		<comments>http://www.stolenbit.com/2008/11/space-under-an-image-in-ie/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 03:12:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=36</guid>
		<description><![CDATA[When adding an image in a &#60;div&#62; (as shown in the HTML code below), IE displays a little white space below the image.&#160; This doesn&#8217;t happen on Firefox though. &#60;div&#62; &#160;&#160;&#160; &#60;img alt=&#34;Pronto Marketing &#8211; How We Help You&#34; src=&#34;/img/home_img2.png&#34; &#8230; <a href="http://www.stolenbit.com/2008/11/space-under-an-image-in-ie/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When adding an image in a &lt;div&gt; (as shown in the HTML code below), IE displays a little white space below the image.&#160; This doesn&#8217;t happen on Firefox though.</p>
<div class="code" style="padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
<p>&lt;div&gt;      <br />&#160;&#160;&#160; &lt;img alt=&quot;Pronto Marketing &#8211; How We Help You&quot; src=&quot;/img/home_img2.png&quot; /&gt;       <br />&lt;/div&gt; </p>
</p></div>
<p><a href="http://lh6.ggpht.com/_cMKhOANrsO4/SRJgn3_oxRI/AAAAAAAAAGk/1WpkRulRJm8/s1600-h/stolenbit_space_under_image_ie%5B3%5D.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="134" alt="stolenbit_space_under_image_ie" src="http://lh3.ggpht.com/_cMKhOANrsO4/SRJgo-nFv1I/AAAAAAAAAGo/YhafUixJmSo/stolenbit_space_under_image_ie_thumb%5B1%5D.png?imgmax=800" width="644" border="0" /></a></p>
<p>The fix is simple, just put the closing div tag &lt;/div&gt; on the same line as the image and the problem is fixed:</p>
<div class="code" style="padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
<p>&lt;div&gt;      <br />&#160;&#160;&#160; &lt;img alt=&quot;Pronto Marketing &#8211; How We Help You&quot; src=&quot;/img/home_img2.png&quot; /&gt;&lt;/div&gt; </p>
</p></div>
<p><a href="http://lh4.ggpht.com/_cMKhOANrsO4/SRJgp3kKVzI/AAAAAAAAAGs/taR_2deAQ5A/s1600-h/stolenbit_space_under_image_ie_removed%5B3%5D.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="127" alt="stolenbit_space_under_image_ie_removed" src="http://lh4.ggpht.com/_cMKhOANrsO4/SRJgrJ-NgzI/AAAAAAAAAGw/JKAy6A2ByFo/stolenbit_space_under_image_ie_removed_thumb%5B1%5D.png?imgmax=800" width="644" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/11/space-under-an-image-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tell Your DotNetNuke Module Setting Page To Load Module.css</title>
		<link>http://www.stolenbit.com/2008/10/tell-your-dotnetnuke-module-setting-page-to-load-module-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tell-your-dotnetnuke-module-setting-page-to-load-module-css</link>
		<comments>http://www.stolenbit.com/2008/10/tell-your-dotnetnuke-module-setting-page-to-load-module-css/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 04:36:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=35</guid>
		<description><![CDATA[By default, module.css does not get loaded for a module&#8217;s setting page.&#160; To let it load the file, add the following code (in C#) to your module setting code behind file (settings.ascx.cs): protected void Page_Load( object sender, System.EventArgs e ) &#8230; <a href="http://www.stolenbit.com/2008/10/tell-your-dotnetnuke-module-setting-page-to-load-module-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By default, module.css does not get loaded for a module&#8217;s setting page.&#160; To let it load the file, add the following code (in <strong><font color="#0080c0">C#</font></strong>) to your module setting code behind file (<strong><font color="#800000">settings.ascx.cs</font></strong>):</p>
<div class="code" style="padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
<div style="font-size: 9pt; background: white; color: black; font-family: consolas">
<pre style="margin: 0px"><span style="color: blue">protected</span> <span style="color: blue">void</span> <span style="color: #010001">Page_Load</span>( <span style="color: blue">object</span> <span style="color: #010001">sender</span>, <span style="color: #010001">System</span>.<span style="color: #2b91af">EventArgs</span> <span style="color: #010001">e</span> ) {</pre>
<pre style="margin: 0px">&#160;&#160;&#160; <span style="color: #010001">DotNetNuke</span>.<span style="color: #010001">Framework</span>.<span style="color: #2b91af">CDefault</span> <span style="color: #010001">DefaultPage</span> = (<span style="color: #010001">DotNetNuke</span>.<span style="color: #010001">Framework</span>.<span style="color: #2b91af">CDefault</span>)<span style="color: #010001">Page</span>;</pre>
<pre style="margin: 0px">&#160;&#160;&#160; <span style="color: #010001">DefaultPage</span>.<span style="color: #010001">AddStyleSheet</span>( <span style="color: #a31515">&quot;ModuleSettingStyles&quot;</span>, <span style="color: blue">string</span>.<span style="color: #010001">Format</span>( <span style="color: #a31515">&quot;{0}/module.css&quot;</span>, <span style="color: blue">this</span>.<span style="color: #010001">ModulePath</span> ), <span style="color: blue">true</span> );</pre>
<pre style="margin: 0px">}</pre>
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/10/tell-your-dotnetnuke-module-setting-page-to-load-module-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging a DotNetNuke Compiled Module in VS2008</title>
		<link>http://www.stolenbit.com/2008/10/debugging-a-dotnetnuke-compiled-module-in-vs2008/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debugging-a-dotnetnuke-compiled-module-in-vs2008</link>
		<comments>http://www.stolenbit.com/2008/10/debugging-a-dotnetnuke-compiled-module-in-vs2008/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 09:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Module Starter Kit]]></category>

		<guid isPermaLink="false">http://www.stolenbit.com/?p=34</guid>
		<description><![CDATA[If you are using VS2008 to create a DNN module with a compiled module starter kit, one option is to attach the project to w3wp.exe process.&#160; You can access it via Debug &#62; Attach to Process&#8230; menu. If attaching the &#8230; <a href="http://www.stolenbit.com/2008/10/debugging-a-dotnetnuke-compiled-module-in-vs2008/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are using VS2008 to create a DNN module with a compiled module starter kit, one option is to attach the project to w3wp.exe process.&#160; You can access it via <em><font color="#0080c0">Debug &gt; Attach to Process&#8230;</font></em> menu.</p>
<p><a href="http://lh3.ggpht.com/stolenbit/SQgvu5jD2FI/AAAAAAAAAGc/X2DGTnE3mzI/s1600-h/stolenbit_attach_to_w3wp%5B3%5D.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="462" alt="stolenbit_attach_to_w3wp" src="http://lh6.ggpht.com/stolenbit/SQgvwUkQjfI/AAAAAAAAAGg/loFZQLlvX00/stolenbit_attach_to_w3wp_thumb%5B1%5D.png?imgmax=800" width="644" border="0" /></a> </p>
<p>If attaching the project to w3wp.exe doesn&#8217;t seem to be an option somehow (e.g. you just cannot find it), what you need to do now is to modify some project settings as shown below.</p>
<p>In my case, I&#8217;ve create a host record with local.dotnetnuke as the host name.&#160; In your case, you may want to replace <a href="http://local.dotnetnuke">http://local.dotnetnuke</a> with <a href="http://localhost/dotnetnuke">http://localhost/dotnetnuke</a>, for example.&#160; Please note that I&#8217;ve saved my project under /DesktopModules/ContactUsForm.&#160; So my project url becomes <a href="http://local.dotnetnuke/DesktopModules/ContactUsForm">http://local.dotnetnuke/DesktopModules/ContactUsForm</a>.</p>
<p><a href="http://lh6.ggpht.com/stolenbit/SQgsOWcwOGI/AAAAAAAAAGU/qGwXC0wYZzw/s1600-h/stolenbit_debugging_dotnetnuke_compiled_module_vs2008%5B3%5D.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="stolenbit_debugging_dotnetnuke_compiled_module_vs2008" src="http://lh6.ggpht.com/stolenbit/SQgsPqbL-nI/AAAAAAAAAGY/cxTSa_DhPkQ/stolenbit_debugging_dotnetnuke_compiled_module_vs2008_thumb%5B1%5D.png?imgmax=800" width="551" border="0" /></a> </p>
<p>Save the project and try running it again.&#160; You should now be able to debug the project <img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="Wink" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stolenbit.com/2008/10/debugging-a-dotnetnuke-compiled-module-in-vs2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

