<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/3151615.aspx</link><pubDate>Fri, 08 May 2009 21:45:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3151615</guid><dc:creator>lineika</dc:creator><author>lineika</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3151615.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=3151615</wfw:commentRss><description>&lt;p&gt;You are very very welcome! Glad I could help!&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/3151572.aspx</link><pubDate>Fri, 08 May 2009 20:59:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3151572</guid><dc:creator>praveennerd</dc:creator><author>praveennerd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3151572.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=3151572</wfw:commentRss><description>Thanks Lineika ...

This indeed worked in my case where I must stimulate the click event as many validations were attached to it and eval was kind of useless to me.

Once again thanks for the perfect solution you provided.</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/2366760.aspx</link><pubDate>Mon, 19 May 2008 18:27:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2366760</guid><dc:creator>zyxockjm</dc:creator><author>zyxockjm</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2366760.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2366760</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;lineika, thank you so much for your post. That solved my problem for my firefox issue. I was trying to look for some sort of onclick() event because click() wasn&amp;#39;t working in firefox.&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/2277859.aspx</link><pubDate>Fri, 04 Apr 2008 22:51:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2277859</guid><dc:creator>lineika</dc:creator><author>lineika</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2277859.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2277859</wfw:commentRss><description>&lt;p&gt;hello guys I dont know if anybody still needs help but i found this to work:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; ($get(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;buttonName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).dispatchEvent)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; e = document.createEvent(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MouseEvents&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;e.initEvent(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;click&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;$get(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;buttonName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).dispatchEvent(e);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;else&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;$get(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;buttonName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).click();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/2151266.aspx</link><pubDate>Mon, 04 Feb 2008 08:03:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2151266</guid><dc:creator>yizharm</dc:creator><author>yizharm</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2151266.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2151266</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;It&amp;#39;s work very good, Thank you very much!!!&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1913946.aspx</link><pubDate>Tue, 18 Sep 2007 10:28:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1913946</guid><dc:creator>giles.hinton</dc:creator><author>giles.hinton</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1913946.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1913946</wfw:commentRss><description>&lt;p&gt;This is because IE automatically holds the event object at the window level, whereas Mozilla does not as far as I&amp;#39;m aware.&lt;/p&gt;
&lt;p&gt;Whereas in IE you can fire an event, and in the receiving function, identify the caller using event.srcElement, Mozilla requires you to pass the event object as part of the argument in order to identify the caller.&amp;nbsp; This simply means that instead of using runFunction(), you use runFunction(event).&lt;/p&gt;
&lt;p&gt;You can then pick up the caller in Mozilla using event.target.&lt;/p&gt;
&lt;p&gt;My experience would lead me to suggest that the window.event&amp;nbsp;property in IE is&amp;nbsp;one of those&amp;nbsp;&amp;quot;Microsoft-only&amp;quot; implementations, and not adherent to any W3C standard; whilst this isn&amp;#39;t always a bad thing, Microsoft shouldn&amp;#39;t be using it in what is supposed to be a truly &amp;quot;cross browser&amp;quot; capable set of extensions.&lt;/p&gt;
&lt;p&gt;Just my two-pennies&amp;#39; worth - I&amp;#39;d be grateful if anyone knows if Mozilla plan to change their model in the future, as to be fair it is a pain to have to pass around the event object.&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1658888.aspx</link><pubDate>Tue, 10 Apr 2007 12:10:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1658888</guid><dc:creator>darwinc</dc:creator><author>darwinc</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1658888.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1658888</wfw:commentRss><description>&lt;p&gt;e.g. its a work around for fire a button when hitting enter in a textbox (searchBox...)&lt;/p&gt;&lt;p&gt;thx a lot!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1643371.aspx</link><pubDate>Thu, 29 Mar 2007 17:40:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1643371</guid><dc:creator>WishStar99</dc:creator><author>WishStar99</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1643371.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1643371</wfw:commentRss><description>&lt;p&gt;Garbin, thanks for the solution. Cheer&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1592411.aspx</link><pubDate>Fri, 23 Feb 2007 19:52:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1592411</guid><dc:creator>haphazard</dc:creator><author>haphazard</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1592411.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1592411</wfw:commentRss><description>I was having the same problem.&amp;nbsp; Lost half a day trying to figure it out.&amp;nbsp;&amp;nbsp;Just wanted to say thanks.</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1423220.aspx</link><pubDate>Tue, 10 Oct 2006 01:51:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1423220</guid><dc:creator>Eilon</dc:creator><author>Eilon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1423220.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1423220</wfw:commentRss><description>&lt;p&gt;I think that what happens in Firefox is that when you call click() on the button it simply invokes all the event handlers and doesn&amp;#39;t &lt;em&gt;really&lt;/em&gt; do a click operation. And I&amp;#39;m also pretty sure that according to W3C that IE has the correct behavior by truly simulating a click operation. We don&amp;#39;t have any plans to make this oddity work with Atlas since there appear to be workarounds. Also I&amp;#39;m not really sure why you&amp;#39;d want to explicitly click a button - it would seem to me that that is just to workaround issues in the app.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Eilon&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1311329.aspx</link><pubDate>Sun, 11 Jun 2006 09:30:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1311329</guid><dc:creator>danman_5</dc:creator><author>danman_5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1311329.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1311329</wfw:commentRss><description>Thanks Garbin, worked a treat!</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1294877.aspx</link><pubDate>Wed, 24 May 2006 15:05:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1294877</guid><dc:creator>Garbin</dc:creator><author>Garbin</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1294877.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1294877</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;solution: declare the hidden button with UseSubmitBehavior="false": this will make the button postback with the ASP.NET postback model and this should do the trick.&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"display:none;"&lt;/span&gt;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;span class="tag"&gt;asp:Button&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"btnHidden"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;
&lt;span class="attr"&gt;                OnClick=&lt;/span&gt;&lt;span class="attrv"&gt;"btnHidden_Click"&lt;/span&gt;
&lt;span class="attr"&gt;                UseSubmitBehavior=&lt;/span&gt;&lt;span class="attrv"&gt;"false"&lt;/span&gt;
                /&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;div&lt;/span&gt;&amp;gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1282507.aspx</link><pubDate>Wed, 10 May 2006 23:14:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1282507</guid><dc:creator>danman_5</dc:creator><author>danman_5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1282507.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1282507</wfw:commentRss><description>&lt;p&gt;Hi there, I am experiencing the exact same error with my application, did you come up with any workaround for this problem?&lt;/p&gt;
&lt;p&gt;For me I want to be able to Trigger the update for a specific update panel, but firefox updates them all if the click event is triggered in javascript...&lt;/p&gt;
&lt;p&gt;I would be very interested if you had any suggestions...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Dan&lt;/p&gt;</description></item><item><title>Re: Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1276024.aspx</link><pubDate>Thu, 04 May 2006 13:08:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1276024</guid><dc:creator>Luis Abreu</dc:creator><author>Luis Abreu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1276024.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1276024</wfw:commentRss><description>&lt;p&gt;hello.&lt;/p&gt;
&lt;p&gt;yes, firefox handles things differently than IE.&lt;/p&gt;
&lt;p&gt;the problem occurs on the method _onFormElementClick. you see, when you call the click method programatically, you'll get different results in IE and firefox. to IE, the window.event.srcElement points to the button; however, in firefox, it points to the javascript code you've added to the href attribute.&lt;/p&gt;
&lt;p&gt;to be honest, i don't have a clue on which type of behavior is correct. what i'd suggest is opening a bug entry by adding a new post on this forum with the word [BUG] on the title.&lt;/p&gt;</description></item><item><title>Javascript button click event oddity in FireFox</title><link>http://forums.asp.net/thread/1275541.aspx</link><pubDate>Wed, 03 May 2006 22:58:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1275541</guid><dc:creator>pinkmuppet</dc:creator><author>pinkmuppet</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1275541.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1275541</wfw:commentRss><description>&lt;p&gt;Hi Everyone -- This code works fine when outside of an UpdatePanel, but when inside, the server side event never gets called.&amp;nbsp; It works fine in IE&amp;nbsp;(both inside and outside of an UpdatePanel).&lt;/p&gt;
&lt;p&gt;Any Ideas?&amp;nbsp; Code to repro below:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AutoEventWireup&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;CodeFile&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Default.aspx.cs"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Inherits&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="_Default"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;xmlns&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="http://www.w3.org/1999/xhtml"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;head&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;head&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;form&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;id&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="form1"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;atlas&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;ScriptManager&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;EnablePartialRendering&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;atlas&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;UpdatePanel&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="mainUpdatePanel"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Mode&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Always"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;ContentTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;div&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;style&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="display:none;"&amp;gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;Button&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="btn"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Text&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="thebutton"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;div&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;a&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;href&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=""&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;id&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="javascriptBtnInvoke"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&amp;gt;&lt;/font&gt;&lt;font size=2&gt;javascript button click&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;a&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;ContentTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;atlas&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;UpdatePanel&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;form&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;public&lt;/p&gt;&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;partial&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;class&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#008080 size=2&gt;_Default&lt;/font&gt;&lt;font color=#000000 size=2&gt; : System.Web.UI.&lt;/font&gt;&lt;font color=#008080 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; &lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;protected&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; Page_Init(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt; sender, &lt;/font&gt;&lt;font color=#008080 size=2&gt;EventArgs&lt;/font&gt;&lt;font size=2&gt; e)
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;btn.Click += &lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;new&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#008080 size=2&gt;EventHandler&lt;/font&gt;&lt;font size=2&gt;(btn_Click);
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;protected&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; Page_Load(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt; sender, &lt;/font&gt;&lt;font color=#008080 size=2&gt;EventArgs&lt;/font&gt;&lt;font size=2&gt; e)
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;javascriptBtnInvoke.HRef = &lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;"javascript:document.getElementById('"&lt;/font&gt;&lt;font size=2&gt; + btn.ClientID + &lt;/font&gt;&lt;font color=#800000 size=2&gt;"').click();"&lt;/font&gt;&lt;font size=2&gt;;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#008000 size=2&gt;//also tried this -- doesn't work in our out of a update panel&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#008000 size=2&gt;//javascriptBtnInvoke.HRef = "javascript:__doPostBack('" + btn.ClientID + "','');";&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; btn_Click(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt; sender, &lt;/font&gt;&lt;font color=#008080 size=2&gt;EventArgs&lt;/font&gt;&lt;font size=2&gt; e)
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>