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
Hi ,
When I use the webtoolbar , I find a problem . If I put the webtoolbar in the UpdatePanel , then I find the buttons of the webtoolbar can only be clicked once . There will be no response when I click the buttons of the webtoolbar once again .
<asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <div id="Div_WTB"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <ISWebDesktop:WebToolBar ID="WTB1" runat="server" DockingArea="Top" DockingRow="1" Caption="WebToolBar1" CommandSize="120px" Height="26px" ImageSize="16, 16" NewDockingArea="NotSet" NewDockingRow="0" NewIsFloat="Default" IntegratedTo="None"> <CommandClientSideEvents OnClick="WTB1_AddPage_OnClick" /> <Commands> <ISWebDesktop:ToolCommand Category="WebToolBar1" DisplayMode="TextAndImage" Image="~/Images/InterSoft/ToolBar/add.gif" Name="cmdAdd" Text="Add" ToolTip="Add" Type="Button"> </ISWebDesktop:ToolCommand> <ISWebDesktop:ToolCommand Category="WebToolBar1" DisplayMode="TextAndImage" Image="~/Images/InterSoft/ToolBar/wg_Cancel.gif" Name="cmdDelete" Text="Delete" ToolTip="Delete" Type="Button"> </ISWebDesktop:ToolCommand> </Commands> </ISWebDesktop:WebToolBar> <script> WTB_Initialize_Common('<%= WTB1.ClientID %>'); </script> </tr> </table> </div> </ContentTemplate> </asp:UpdatePanel>
When I execute the code above , I can only click the button of "Add" or "Delete" once , then I can not click these buttons . If I remove the UpdatePanel , then it back to normal . I want to know why .
Anyone can help me ? Thanks a lot !
Hi Xu,In this simple sample, you are using 2 update panel controls to handle WebToolBar and TextBox. Actually, you were right to use UpdatePanel for the TextBox. But, there's a little bit mistake when using updatePanel. WebToolBar already perform FlyPostBack, so that no need to use update panel for WebToolBar. It works as well as expectation on my end. Please see the attachment to see the code.
Regards.Riendy
Hello Xu,Unfortunately, I could not replicate your issue on my end. I tried in simple sample that use WebToolBar inside UpdatePanel, and absolutely with scriptManager.
This sample works fine on my end. Please see my attachment. Is it possible for you to reproduce your issue on my simple sample ?
Thank you.Riendy
Hello Riendy ,
Thank you for your help . I have seen your example . In the example , you excute the javascript code through clicking these buttons of the webtoolbar . However , I want to execute some background program , such as add or delete , through clicking these buttons . I do not know whether it is the reason to my problem .
Thank you !
Hi Xu,I also have tried to execute a code in background program, just for checking How many times the button able to call. And it works fine on my end. Could you please give me a simple runable sample that reproduce your issue ?To maximize the performance, I think you should use WebFlyPostBackManager.
Thank you for your reply . I have made a simple runable sample base on the sample you provided . The issue still exist . The sample is in the attach file .
Thank you very much !
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