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,
I use a WebTab with Contentmode = Inline with dynamically created user controls. What doesn’t work is the event wiring. The events of for example a button on a user control isn’t fired. This is only when I use the WebTab.
When I use a dynamically loaded user control on a normal place holder on a form the event of the button is fired.
Please see the attached project to see what I mean. How can I use the WebTab and still have the events fired in the user controls?
I read on the net that it has to do with the page life cycle and therefore I added the code in Page_Init not in Page_Load.
The attached file is the working one. What I need is a solution where user controls are loaded into the Webtabs INCLUDING event functionality.
Thank you
Thanks for the sample, it seems that it's bug but to make sure I have forwarded this to our development team and they will check it first and fix it if it's bug from our component.
Thanks for the feedback.
Best Regards,
Gordon Tumewu
I have receive ews from our development team regarding this issue. You need to put the code to add the user control at WebTab's PreInitialize event handler at server side. This is the code snippet using C#:
protected void WebTab1_PreInitialize(object sender, EventArgs e) { UserControl oUC2 = Page.LoadControl("TestEditTemplate.ascx") as UserControl; oUC2.ID = "Test1"; WebTab1.TabPages.GetNamedItem("Tab1").PageTemplate = new ClassTemplate(oUC2); }
Hope this helps.
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