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 have a special scenario. I want to generate a web form dynamically, means depending on values in the database i need to generate a form with input and combo control. Is there any way to do this using Intersoft Asp.net WebUI.
thanks and regards
ca
Hi Ca,
I attached my simple sample. I made a quick selection option in DropDownList control. In some certain values, I add WebCombo or WebInput. Hope this helps.
Regards,Handy
Hello,
Thank you for your solution. Here i have one problem , can you please try that issue from your end.
From the above attached example page , when i select "Ana Trujillo" from the first compobox a new WebCombo is coming. But that combo dont have any dropdown values. How can i populate this combobox with database values from the backend dynamically.
Thanks and regards
Hello Ca,
Yes, my sample only showed you how to add WebCombo without bind it with database. If you want it with database value, you need to bind it with database. Add InitializeDataSource event handler when create WebCombo programmatically and bind the data in that event.
Ok, thank you for your detail. I think I was able to replicate the issue that you reported. I will report this to our developer teams.
hi,thank you for your reply. Stiil i have doubt that how can create protected void combo_InitializeDataSource(object sender, DataSourceEventArgs e)function dynamically. If you can please send the previous example updated with your solution.thanks and regardsca
Hi All,
I had also come across with the problem recently, and I had add some code to 'work around' this problem.
Private Sub Page_Load() LoadGrid() End Sub Private Sub LoadGrid() dim dataTable1 as DataTable=GetYourData() webgrid1.DataValueField="Value" webgrid1.DataTextField="Text" webgrid1.DataSource=dataTable1 webgrid1.DataBind() RemoveHandler webcombo1.InitializeDataSource, AddressOf WebCombo1_InitializeDataSource AddHandler webcombo1.InitializeDataSource, AddressOf WebCombo1_InitializeDataSource End Sub Private Sub WebCombo1_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebCombo.DataSourceEventArgs) Handles WebCombo1.InitializeDataSource End Sub
Hello Fung,
Thank you for your suggestion. However, this is not recommended because all binding code should be placed in InitializeDataSource event.Regarding this issue, I would like to re-confirm that this is not a bug. Please see below sample to see how should we handle this scenario.
Regards,Hamdy
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