iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
Im using the property DisableOnClicked from WebButton and i think it has a bug.
When i have validators in my page the button stays disabled:
This is an example image, but this is what happens.
Is this really a bug, or is this the correct behaviour of the property?
I think the button should become disabled only when the request to the server is submitted.
Tanks
DisableOnClick, 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.
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.
For your information, I use WebDesktop 3.0 build 305 and WebUI.NET Framework 3.0 build 705.
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.
Maybe i explained the issue badly or its a DLL version issue . . .
Im using WebDesktop version 3.0.7200.303.
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.
But if it stays disable i need to refresh the page.
Ricardo
The “DisableOnClicked” property is simply attached to OnClick event of WebButton. It won’t check whether the page is valid or not.
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.
The aspx code of WebButton.
<ISWebDesktop:WebButton ID="WebButton1" runat="server" Height="20px" PostBackMode="FullPostBack" AutoPostback="true" Text="Submitting..." OnClicked="WebButton1_Clicked"> </ISWebDesktop:WebButton>
The code behind of WebButton OnClicked event.
protected void WebButton1_Clicked(object sender, ISNet.WebUI.WebDesktop.WebButtonClickedEventArgs e) { if (Page.IsValid) WebButton1.Enabled = false; }
Hope this helps.
Ok, tanks for the reply.
Glad to hear the good news.
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname