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
I am trying create few webcombo on-the-fly. I am using the "Programmatic Creation" sample
http://live.intersoftpt.com/cs/WebCombo/Programmatic.aspx?path=/WebCombo/Advanced%20Features&noframe=1 as my based.
I have got the creation part working.
Howerver, I don't know how to reference "Dynamic" webcombo when I press the submit button to obtain the selected value. Please help.
Thanks in advance.
Kenny
A minor modification of the “Programmatic.aspx” reference sample file need to be made in order to make the combo accessible from server side event.
Please try to put the declaration of the combo object as a global variable rather than put the line in Page_Load server side event.
Original:
AccessDataSource access; protected void Page_Load(object sender, EventArgs e) { access = new AccessDataSource(Server.MapPath("./App_Data/Northwind.mdb"), "Select * from Customers"); access.ID = "AccessDataSource1"; WebCombo combo = new WebCombo("WebCombo1"); ...
Modified version:
AccessDataSource access; WebCombo combo = new WebCombo("WebCombo1"); protected void Page_Load(object sender, EventArgs e) { access = new AccessDataSource(Server.MapPath("./App_Data/Northwind.mdb"), "Select * from Customers"); access.ID = "AccessDataSource1"; ...
In order to obtain the selected value when submit button is pressed can be simply acquired by using following snippet code.
combo.Value
Hope this helps.
Great! Thanks Yudi.
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