Please, ask any questions support@obout.com
1. How to use Combobox in my asp.net page?
At the top of your ASP.NET source-code page add:
<%@ Register TagPrefix="ob" Namespace="OboutInc.Combobox" Assembly="obout_Combobox_NET" %>
You can now use Combobox just like in the examples.
Combobox can also be added to the Toolbox of Visual Studio and you can drag it on the page where you want
it to appear.
To see how to do this, take a look at How to add Combobox to the Visual Studio Toolbox?
2. How to add a reference to Combobox in VS?
Go to toolbar menu Project > Add Reference > Click button 'Browse' >
> Find obout_Combobox_NET.dll > Click 'Open' > Click OK
Combobox can also be added to the Toolbox of Visual Studio and you can drag it on the page where you want
it to appear.
To see how to do this, take a look at How to add Combobox to the Visual Studio Toolbox?
3. How to install component on shared hosting server?
Make request to Customer Service of your hosting service.
They will install the component for you.
4. How to change the style of the Combobox?
Change the property FolderStyle to match the folder with the style you want.
Take a look at examples to see the available styles (themes).
5. How to create my own style for the Combobox?
See tutorial page here
Create a new folder inside Styles with the name of your new theme.
Copy the file Styles/style.css inside this folder.
Modify the included CSS classes:
.ob_cbContainer
ob_cbTopContainer
ob_cbButtonContainer
.ob_cbTextbox
.ob_cbOption
.ob_cbOptionOver a
.ob_cbOptionIcon
.ob_cbOptionIconContainer
.ob_cbButton
.ob_cbButtonOver
.ob_cbTables
.ob_cbTables td
.ob_cbInvisible
Note: you might not need to define all the styles above.
Take a look at the existing themes for examples.
6. How to add Combobox to the Visual Studio Toolbox?
For Visual Studio 2005:
Go to toolbar menu Tools > Choose Toolbox Items... > Click button 'Browse...' >
> Find obout_Combobox_NET.dll > Click 'Open' > Click OK
To see how add a reference to the component in Visual Studio,
read How to add reference to dll in Visual Studio project?
7. Where to put folder 'Styles' ?
Copy the combobox/styles folder to your project.
Use the FolderStyle property to set the path to the folder with style.
Use web relative paths:
- If folder was placed in the same folder with your aspx file:
cbo1.FolderStyle = "combobox/styles/default"
- If folder was placed to other location within the folder structure of your project
cbo1.FolderStyle = "~/path_to_other_location/combobox/styles/default"
Also see How to set path for my page?
Also see How to run examples?
8. How to run examples? I am new to web programming.
Please check this page.
TIP: How to add reference to dll in Visual Studio project?
TIP: How to add Combobox to the Visual Studio Toolbox?
Note: You don't need to create VS project to run examples.
9. What browsers are supported?
Combobox has been tested and works the same under Internet Explorer, Netscape Navigator, Mozilla FireFox, Safari and Opera.
Note: Combobox might also work correctly under other browsers, but it has not been tested yet.
10. Does Combobox work with ASP classic too, or only with ASP.NET?
Unfortunatelly this component does not work with ASP classic, only with ASP.NET.
11. How to clear the list with options?
You can clear the options of the Combobox on the server-side or on the client-side.
Server-side:
cbo1.Options.Clear();
Client-side:
cbo1.clearOptions();
12. How to add extra parameters for the server-side method specified in
the AjaxMethod property?
First, you need to add the extra parameter that you need
in the function which opens the combobox:
function openCombobox() {
ob_post.AddParam("extra_param", "some_value");
cbo1.open();
}
Then add this new parameter in the arguments list of the
server-side method which loads the options on-demand:
public string OnSuggestOptions(string sText, string extra_param)
{
...
}
13. How to select combobox item on client side?
Client-side method which selects combobox item on client side:
function selectItem(itemText, itemValue) {
cbo1.setValue(itemValue);
cbo1.setText(itemText);
}
You should replace
cbo1 with your combobox ID.