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
We have a control that is dynamically created based on user choices. This control may have several controls within it, i.e., text box, combo box, calendar, etc.
When the control has a calendar in it, the page always crashes with the following line:
val.evaluationfunction = MaskValidatorEvaluateIsValid;
And then immediately followed by:
ctl00_WebPaneManager1_ViewLeftSide_Content_rptOptions_CalendarControl_10_18_InitializeAtlas();
The calendar is then rendered but does not function.
If, however, we physically insert a calendar control on the page, everything works fine. For now, I'm having to insert an invisible calendar object (cal.Visible = false) on the page, but I shouldn't have to do that.
I hope there's a solution to this. Thank you.
In the test site you attached, in order to make it work you will need to enable the AspNetAjaxSetting in the WebInput. Here is the snippet:
WebInput test = new WebInput();test.AspNetAjaxSettings.CreatedAtRuntime = true;test.AspNetAjaxSettings.UpdateControlScripts = true;test.AspNetAjaxSettings.UpdateControlStyles = true;
I also have to modified the WebControl to remove the previous WebInput in the panel before adding a new WebInput type to the panel.
Attached is the modified WebUserControl.ascx.
I have create a simple programmatic WebInput creation sample using dropdown box. The type of the created WebInput could be set using the dropdownbox. In the sample, I could not recreate the issue you mention.
Perhaps you could modify the sample to reflect your scenario better, so we could replicate the issue in our environment.
I've attached a solution where I was able to duplicate it. The problem seems to stem from a layering of panels and a web user control. This more closely duplicates our environment of using master pages with your web pane manager, panels, update panels and our custom user controls.
Hi Glenn,
I just tried these three settings on our dynamic control in our project and they work great. I can't really find any details on this object and its properties in the documentation. Could you point me to some details on this AspNetAjaxSettings object so I can understand its usage and it's properties please? Thank you.
[EDIT] I noticed there's an IsDynamicCreated property but all the documentation says regarding this is "(Inherited from ISNet.WebUI.ISNetControl)." Do you know what this property does when it's set to true/false? Thanks.
Unfortunately, this property is not explained in detail in the documentation.
The AspNetAjaxSettings is used if user wish to implement Intersoft control in the ASP .NET AJAX environment, for example in an update panel.
The AspNetAjaxSettings.CreatedAtRuntime must be set to true if the control is created during ajax update (i.e. control is not available initially in the first page load)
The AspNetAjaxSettings.UpdateControlScripts is set to true if you would like to ensure the new scripts to be loaded during the ajax update. The AspNetAjaxSettings.UpdateControlStyles is similar, however it is used for the styles / css.
Thank you. I'll file this info for future reference. I hope others will find it useful.
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