<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Panel.DefaultButton property with LinkButton control in ASP.NET</title>
	<atom:link href="http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/</link>
	<description>In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming.</description>
	<lastBuildDate>Tue, 29 Dec 2009 10:34:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joe</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-243773</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 16 Mar 2010 04:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-243773</guid>
		<description>I have a question: I try to find out the value of the disabled property of linkbutton in javascript. It&#039;s not a problem in IE but it&#039;s undefined in Firefox. My problem is that although the link is disabled clicking it triggers onClientClick event which shows a message. I want to check if the link is disabled before showing the message however the disabled property is undefined in FireFox. Thank you in a advance for your help.</description>
		<content:encoded><![CDATA[<p>I have a question: I try to find out the value of the disabled property of linkbutton in javascript. It&#8217;s not a problem in IE but it&#8217;s undefined in Firefox. My problem is that although the link is disabled clicking it triggers onClientClick event which shows a message. I want to check if the link is disabled before showing the message however the disabled property is undefined in FireFox. Thank you in a advance for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake H</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-237977</link>
		<dc:creator>Jake H</dc:creator>
		<pubDate>Tue, 16 Mar 2010 18:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-237977</guid>
		<description>The simplest, cross-browser approach I&#039;ve seen is at this guy&#039;s site:

http://weblogs.asp.net/jeff/archive/2005/07/26/420618.aspx

Just one line and you&#039;re all set...
            MyPasswordTextBox.Attributes.Add(&quot;onKeyPress&quot;, &quot;javascript:if (event.keyCode == 13) __doPostBack(&#039;&quot; + MySubmitButton.UniqueID + &quot;&#039;,&#039;&#039;)&quot;)</description>
		<content:encoded><![CDATA[<p>The simplest, cross-browser approach I&#8217;ve seen is at this guy&#8217;s site:</p>
<p><a href="http://weblogs.asp.net/jeff/archive/2005/07/26/420618.aspx" rel="nofollow">http://weblogs.asp.net/jeff/archive/2005/07/26/420618.aspx</a></p>
<p>Just one line and you&#8217;re all set&#8230;<br />
            MyPasswordTextBox.Attributes.Add(&#8220;onKeyPress&#8221;, &#8220;javascript:if (event.keyCode == 13) __doPostBack(&#8216;&#8221; + MySubmitButton.UniqueID + &#8220;&#8216;,&#8221;)&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlon Bohol</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-232193</link>
		<dc:creator>Marlon Bohol</dc:creator>
		<pubDate>Tue, 16 Mar 2010 04:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-232193</guid>
		<description>This is what i did in ASP.NET code behind and it works pretty well in both IE and FF:

&lt;code lang=&quot;vb&quot;&gt;
    Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        JavaScriptLoad()

    Private Sub JavaScriptLoad()

        Dim addClickFunctionScript As StringBuilder = New StringBuilder()

        addClickFunctionScript.Append(&quot;  function addClickFunction(id) {{ &quot;)
        addClickFunctionScript.Append(&quot; var b = document.getElementById(id); &quot;)
        addClickFunctionScript.Append(&quot; if (b &amp;&amp; typeof(b.click) == &#039;undefined&#039;) b.click = function() {{ &quot;)
        addClickFunctionScript.Append(&quot; var result = true; if (b.onclick) result = b.onclick(); &quot;)
        addClickFunctionScript.Append(&quot; if (typeof(result) == &#039;undefined&#039; &#124;&#124; result) {{ eval(b.getAttribute(&#039;href&#039;)); }} &quot;)
        addClickFunctionScript.Append(&quot; }}}}; &quot;)

        Dim addClickScript As String = &quot;addClickFunction(&#039;{0}&#039;);&quot;
        Dim ClickScript As String = String.Format(addClickScript, lnkLogin.ClientID)

        Page.ClientScript.RegisterStartupScript(Me.GetType(), &quot;addClickFunctionScript&quot;, addClickFunctionScript.ToString(), True)
        Page.ClientScript.RegisterStartupScript(Me.GetType(), &quot;click_&quot; + lnkLogin.ClientID, ClickScript, True)

    End Sub

&lt;/code&gt;

corresponding .aspx file

&lt;code lang=&quot;html&quot;&gt;
&lt;asp:Panel runat=&quot;server&quot; DefaultButton=&quot;lbHello&quot;&gt;
    First name: &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;txtFirstName&quot; /&gt;
    &lt;asc:LinkButton ID=&quot;lbHello&quot; runat=&quot;server&quot; Text=&quot;Click me&quot;  /&gt;
&lt;/asp:Panel&gt;
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>This is what i did in ASP.NET code behind and it works pretty well in both IE and FF:</p>
<div class="codecolorer-container vb twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br /></div></td><td><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; Protected <span style="color: #000080;">Sub</span> Page_PreRender(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs) Handles Me.PreRender<br />
&nbsp; &nbsp; &nbsp; &nbsp; JavaScriptLoad()<br />
<br />
&nbsp; &nbsp; <span style="color: #000080;">Private</span> <span style="color: #000080;">Sub</span> JavaScriptLoad()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000080;">Dim</span> addClickFunctionScript <span style="color: #000080;">As</span> StringBuilder = <span style="color: #000080;">New</span> StringBuilder()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; &nbsp;function addClickFunction(id) {{ &quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; var b = document.getElementById(id); &quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; if (b &amp;&amp; typeof(b.click) == 'undefined') b.click = function() {{ &quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; var result = true; if (b.onclick) result = b.onclick(); &quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; if (typeof(result) == 'undefined' || result) {{ eval(b.getAttribute('href')); }} &quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; addClickFunctionScript.<span style="color: #000080;">Append</span>(<span style="color: #800000;">&quot; }}}}; &quot;</span>)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000080;">Dim</span> addClickScript <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> = <span style="color: #800000;">&quot;addClickFunction('{0}');&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000080;">Dim</span> ClickScript <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> = <span style="color: #000080;">String</span>.Format(addClickScript, lnkLogin.ClientID)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Page.ClientScript.RegisterStartupScript(Me.GetType(), <span style="color: #800000;">&quot;addClickFunctionScript&quot;</span>, addClickFunctionScript.ToString(), <span style="color: #000080;">True</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Page.ClientScript.RegisterStartupScript(Me.GetType(), <span style="color: #800000;">&quot;click_&quot;</span> + lnkLogin.ClientID, ClickScript, <span style="color: #000080;">True</span>)<br />
<br />
&nbsp; &nbsp; <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span></div></td></tr></tbody></table></div>
<p>corresponding .aspx file</p>
<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;asp:Panel runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> DefaultButton<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lbHello&quot;</span>&gt;</span><br />
&nbsp; &nbsp; First name: <span style="color: #009900;">&lt;asp:TextBox runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;txtFirstName&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;asc:LinkButton <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lbHello&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #000066;">Text</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Click me&quot;</span> &nbsp;<span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>asp:Panel&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando Paiva</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-232134</link>
		<dc:creator>Fernando Paiva</dc:creator>
		<pubDate>Tue, 16 Mar 2010 00:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-232134</guid>
		<description>Based on Dave&#039;s solution (post #7).

[cc lang=&quot;html&quot;]
&lt;asp:Panel ID=&quot;pnNewstatus&quot; runat=&quot;server&quot; DefaultButton=&quot;btnHiddenSubmit&quot;&gt;
New Status:
&lt;asp:TextBox ID=&quot;txbNewStatus&quot; runat=&quot;server&quot;/&gt;
&lt;asp:LinkButton ID=&quot;lnkBtnNewStatusCancel&quot; runat=&quot;server&quot; Text=&quot;Cancel&quot; /&gt;
&lt;asp:LinkButton ID=&quot;lnkBtnNewStatusSubmit&quot; runat=&quot;server&quot; Text=&quot;Submit&quot; /&gt;
&lt;asp:Button ID=&quot;btnHiddenSubmit&quot; runat=&quot;server&quot; /&gt;
&lt;/asp:Panel&gt;
[/cc]

and then, on the code behind:

[cc lang=&quot;vb&quot;]
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  btnHiddenSubmit.Attributes.Add(&quot;style&quot;, &quot;display:none;&quot;)
End Sub

Protected Sub lnkBtnNewStatusSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkBtnNewStatusSubmit.Click, btnHiddenSubmit.Click
&#039;Do What you need to do for those clicks
End Sub
[/cc]

</description>
		<content:encoded><![CDATA[<p>Based on Dave&#8217;s solution (post #7).</p>
<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;asp:Panel <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pnNewstatus&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> DefaultButton<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btnHiddenSubmit&quot;</span>&gt;</span><br />
New Status:<br />
<span style="color: #009900;">&lt;asp:TextBox <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;txbNewStatus&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;asp:LinkButton <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lnkBtnNewStatusCancel&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #000066;">Text</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Cancel&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;asp:LinkButton <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lnkBtnNewStatusSubmit&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #000066;">Text</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;asp:Button <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btnHiddenSubmit&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>asp:Panel&gt;</span></div></td></tr></tbody></table></div>
<p>and then, on the code behind:</p>
<div class="codecolorer-container vb twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Protected <span style="color: #000080;">Sub</span> Page_Load(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs) Handles Me.Load<br />
&nbsp; btnHiddenSubmit.Attributes.Add(<span style="color: #800000;">&quot;style&quot;</span>, <span style="color: #800000;">&quot;display:none;&quot;</span>)<br />
<span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span><br />
<br />
Protected <span style="color: #000080;">Sub</span> lnkBtnNewStatusSubmit_Click(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs) Handles lnkBtnNewStatusSubmit.Click, btnHiddenSubmit.Click<br />
<span style="color: #008000;">'Do What you need to do for those clicks<br />
</span><span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Holgate</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-214432</link>
		<dc:creator>Jared Holgate</dc:creator>
		<pubDate>Tue, 16 Mar 2010 10:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-214432</guid>
		<description>Mdespesse&#039;s point in 17 makes this solution work perfectly in FF3. Thanks.</description>
		<content:encoded><![CDATA[<p>Mdespesse&#8217;s point in 17 makes this solution work perfectly in FF3. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmytro Shteflyuk</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213961</link>
		<dc:creator>Dmytro Shteflyuk</dc:creator>
		<pubDate>Tue, 16 Mar 2010 15:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213961</guid>
		<description>Nice point, mdespesse! Thanks for sharing your experience.</description>
		<content:encoded><![CDATA[<p>Nice point, mdespesse! Thanks for sharing your experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdespesse</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213920</link>
		<dc:creator>mdespesse</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213920</guid>
		<description>After some research, it seems that DOM specs stand that href attribute should be an URI and that to get the exact content of href, one should use :

&lt;code lang=&quot;javascript&quot;&gt;
eval(b.getAttribute(&#039;href&#039;))
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>After some research, it seems that DOM specs stand that href attribute should be an URI and that to get the exact content of href, one should use :</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span>b.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdespesse</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213914</link>
		<dc:creator>mdespesse</dc:creator>
		<pubDate>Tue, 16 Mar 2010 12:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-213914</guid>
		<description>It seems that firefox 3 automatically htmlencode hrefs. So our :

&lt;code lang=&quot;javascript&quot;&gt;
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOption[...]
&lt;/code&gt;

becomes :

&lt;code lang=&quot;javascript&quot;&gt;
javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOption[...]
&lt;/code&gt;

which obviously doesn&#039;t work as expected.
To have it work again, change the end of addClickFunctionScript to :

&lt;code lang=&quot;javascript&quot;&gt;
eval(unescape(b.href));
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>It seems that firefox 3 automatically htmlencode hrefs. So our :</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">javascript<span style="color: #339933;">:</span>WebForm_DoPostBackWithOptions<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> WebForm_PostBackOption<span style="color: #009900;">&#91;</span>...<span style="color: #009900;">&#93;</span></div></td></tr></tbody></table></div>
<p>becomes :</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">javascript<span style="color: #339933;">:</span>WebForm_DoPostBackWithOptions<span style="color: #009900;">&#40;</span>new<span style="color: #339933;">%</span>20WebForm_PostBackOption<span style="color: #009900;">&#91;</span>...<span style="color: #009900;">&#93;</span></div></td></tr></tbody></table></div>
<p>which obviously doesn&#8217;t work as expected.<br />
To have it work again, change the end of addClickFunctionScript to :</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span>unescape<span style="color: #009900;">&#40;</span>b.<span style="color: #660066;">href</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-212433</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 16 Mar 2010 11:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-212433</guid>
		<description>Hi,

I have implemented this fix and it seems to be ok in most cases.  However, if I have a form with asp.net validators then it only works once.  e.g.  Enter an invalid entry, press enter and the correct button is clicked.  However, press enter again, and the wrong one is clicked!

Anyone have any ideas?  Thanks in advance.

Simon.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have implemented this fix and it seems to be ok in most cases.  However, if I have a form with asp.net validators then it only works once.  e.g.  Enter an invalid entry, press enter and the correct button is clicked.  However, press enter again, and the wrong one is clicked!</p>
<p>Anyone have any ideas?  Thanks in advance.</p>
<p>Simon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramana</title>
		<link>http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-206539</link>
		<dc:creator>Ramana</dc:creator>
		<pubDate>Tue, 16 Mar 2010 05:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net/#comment-206539</guid>
		<description>Hi uttam,

i am implemented what you are given the code in my aspx page, but in FireFox again its not working, when i enter key in textbox the cursor goes to next button, could you please give me any idea.

Thanks
Ramana</description>
		<content:encoded><![CDATA[<p>Hi uttam,</p>
<p>i am implemented what you are given the code in my aspx page, but in FireFox again its not working, when i enter key in textbox the cursor goes to next button, could you please give me any idea.</p>
<p>Thanks<br />
Ramana</p>
]]></content:encoded>
	</item>
</channel>
</rss>
