<?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>DotBert &#187; DefaultButton</title>
	<atom:link href="http://dotbert.loedeman.nl/category/defaultbutton/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Thu, 18 Mar 2010 12:49:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET: DefaultButton and DefaultFocus</title>
		<link>http://dotbert.loedeman.nl/aspnet-defaultbutton-and-defaultfocus</link>
		<comments>http://dotbert.loedeman.nl/aspnet-defaultbutton-and-defaultfocus#comments</comments>
		<pubDate>Fri, 13 Jun 2008 08:44:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[DefaultButton]]></category>
		<category><![CDATA[DefaultFocus]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=18</guid>
		<description><![CDATA[Since a while, on some of my company&#8217;s internet pages the DefaultButton and DefaultFocus properties did not work, although the code used seemed to be perfect. The problem was that the DefaultFocus javascript was not rendered at all.
After investigating the problem, I walked into two problems, solving which solved my problem as well:
1. DefaultButton requires [...]]]></description>
			<content:encoded><![CDATA[<p>Since a while, on some of my company&#8217;s internet pages the DefaultButton and DefaultFocus properties did not work, although the code used seemed to be perfect. The problem was that the DefaultFocus javascript was not rendered at all.</p>
<p>After investigating the problem, I walked into two problems, solving which solved my problem as well:</p>
<p>1. DefaultButton requires a control&#8217;s UniqueID property, but DefaultFocus requires a control&#8217;s ClientID property. Strange, but it really works <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="ASP.NET: DefaultButton and DefaultFocus" />  !<br />2. Do not use hyphen characters in your ID properties (I had an auto ID using a GUID), since it will cause your focus to fail (the javascript is not being rendered). If you have or want to use some kind of separation, use the underscore character instead (it will work).</p>
<p>Hope that helps somebody out there too <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="ASP.NET: DefaultButton and DefaultFocus" />  !</p>
<p>Technorati tags: <a href="http://technorati.com/tag/.net" rel="tag">.net</a> <a href="http://technorati.com/tag/asp.net" rel="tag">asp.net</a> <a href="http://technorati.com/tag/defaultbutton" rel="tag">defaultbutton</a> <a href="http://technorati.com/tag/defaultfocus" rel="tag">defaultfocus</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/aspnet-defaultbutton-and-defaultfocus/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
