Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

metabuilders combobox help 1

Status
Not open for further replies.

kaijanm

Programmer
May 14, 2003
102
US
Thanks in advance for any help.

I'm trying to use the MetaBuilders combobox on my form, but I am just not sure how to do it.

I added in the code (correctly, I think??) as a reference in the project.

On the HTML on the backend, I just have this:
<MBCBB:COMBOBOX id="comboCities" runat="server"></MBCBB:COMBOBOX>

I'm trying to add the contents to the combobox dynamically, just as I would with a ddl.

When looking at the .aspx file, it shows the control, but it says: 'Error Creating Control' in red before the name.

Any clues as to what I did wrong? Sorry for such a basic post.

Thanks!
Kimberly
 
You may not have registered the control. The easy way to handle this is to right-click one of the tabs in the ToolBox (or create a new one and right-click it) then go to "Add/Remove Items" and browse to the MetaBuilders ComboBox DLL. You should then see another item you can drag-and-drop onto your form. By dragging and dropping VS.NET will automatically add everything you need in the .aspx file.

[COLOR=blue gainsboro]
Get a FREE iPod by helping me get mine! Click my referrer link:

More about the company and deal:
[/color]
 
BoulderBum, you're a genius! :) Thank you for that. But now I have another question. The combobox works it seems, so far, but I'm having a problem with selecting the value on the combobox based on what is currently in the db.

So, if there is nothing, it should show nothing, but if there's a value in that field in the db, then I need it to show that value on pageload.

With the ddl, I had this: cmbCities.SelectedValue = rdrUsers.Item("city"), (called ddlCities at the time though), but now there is no data showing.

Does all that make sense?

Thanks!
Kimberly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top