﻿<?xml version="1.0" encoding="utf-8"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Tue, 17 Nov 2009 04:53:56 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Tue, 17 Nov 2009 03:49:42 GMT</pubDate><dc:creator>twor</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;Ok, tanks for the reply.&lt;/p&gt;</description></item><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Tue, 17 Nov 2009 02:01:05 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The “DisableOnClicked” property is simply attached to OnClick event of WebButton. It won’t check whether the page is valid or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’d like to propose a workaround for your scenario. Your scenario doesn’t need “DisableOnClicked” feature of WebButton. You can simply check whether the page is valid or not on WebButton click event, and then set the “Enabled” property of WebButton to false if it returns true.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The aspx code of WebButton.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebDesktop:WebButton ID="WebButton1" runat="server" Height="20px" PostBackMode="FullPostBack"
    AutoPostback="true" Text="Submitting..." OnClicked="WebButton1_Clicked"&amp;gt;
&amp;lt;/ISWebDesktop:WebButton&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The code behind of WebButton OnClicked event.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebButton1_Clicked(object sender, ISNet.WebUI.WebDesktop.WebButtonClickedEventArgs e)
{
    if (Page.IsValid)
        WebButton1.Enabled = false;
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Fri, 13 Nov 2009 04:25:02 GMT</pubDate><dc:creator>twor</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;I tested the sample that you sent me and the result is the same for me. I click the button and the validators fire, but the button stays disabled even when i put some values in the texbox.&lt;/p&gt;
&lt;p&gt;Maybe i explained the issue badly or its a DLL version issue . . .&lt;/p&gt;
&lt;p&gt;Im using WebDesktop version 3.0.7200.303.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But i'll try to explain again the issue, when i click the button, if the validators fire i would like for the button to stay enabled, because when i put values in the textboxes i need to click the button again.&lt;/p&gt;
&lt;p&gt;But if it stays disable i need to refresh the page.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;</description></item><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Thu, 12 Nov 2009 22:13:55 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;DisableOnClick&lt;/strong&gt;, another most common practice for WebButton is to disable the button when clicked. This time-saving feature will automatically disable the button when clicked to prevent users to press the button twice accidentally which could cause duplicate postbacks and human error issues that affect the accuracy and stability of web application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I created a simple sample in order to test your scenario. By using the sample, I was unable to repro the issue on my end. Please make any necessary changes to the attached sample file until it replicates the issue to be investigated further. Please kindly let me know if there are any steps that I miss during my attempt to repro the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For your information, I use WebDesktop 3.0 build 305 and WebUI.NET Framework 3.0 build 705.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebButton DisableOnClicked property bug</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebButton-DisableOnClicked-property-bug/</link><pubDate>Thu, 12 Nov 2009 13:41:32 GMT</pubDate><dc:creator>twor</dc:creator><category>WebButton</category><category>DisableOnClicked</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Im using the property DisableOnClicked from WebButton and i think it has a bug.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When i have validators in my page the button stays disabled:&lt;img style="border: medium none ;" src="http://www.codeproject.com/KB/ajax/disable_btn_on_click/default2_out1.png" alt="" /&gt; &lt;/p&gt;
&lt;p&gt;This is an example image, but this is what happens.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is this really a bug, or is this the correct behaviour of the property?&lt;/p&gt;
&lt;p&gt;I think the button should become disabled only when the request to the server is submitted.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Tanks&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</description></item></channel></rss>