I'm try to add a combobox to my form which i have done and populate it with the infomation i need but i want to stop the user from being able to edit the first 5 character in the textbox part of the combo box( 1 is this possible 2 am i going about it in the right way).
I have 3 columns fro a db to enter ips ie 123.456.7.89 at the start if each number i want (SE1)(SE2)(SE3) which i can do at the momment . So I get in the combobox list 3 items with (SE1)123.456.7.89 OR just (SE1) depending of i a result is returned from the DB. However i don't want the user to be able to edit out the (SE?) part of the sting in the textbox. When editing i've tried used the text change event to try and capture the change and make sure the string.length > 5 , but the event does not fire also when i leave the combobox it it adds to the combox list. If I refersh it goes back to how it should be with only the 3 items.
I have a problem with CascadingDropDown... I have two related comboboxes, where the second is a slave of the first (e.g. country the first, cities the second). What I want is that if I select one country from combobox 1 then the second must be "filtered" by that selection (it should display all the cities inside the selected country, and the actual CascadingDropDown implementation is OK), but if I leave the combobox 1 in the default option (e.g. "Please select a country") I want the second to display all the cities I have in the database. The problem is that when selecting default option for combobox 1 the second combobox is disabled and a postback to my webservice never occurs.
it binding correctly(datasource dynamically binded) and it raises event too while changing index but it is not raising event when we manually clearing the combobox text..if currently combobox having text "ASP" then i manually select that entire text and using del key i am deleting but it is not raising event for me.. when i change index it automatically raising event...i need to raise event while combobox is empty...
I am developing a web application in Visual Studio 2008 using ASP.NET with VB. I am using a ComboBox control from the AJAX Control ToolKit. The ComboBox gets populated from a database.On Page Load the focus is on the ComboBox control. The user can use the Down Arrow Key to drop the listed items, move up and down through it and on pressing Enter key on the highlighted item the other controls on the page (such as Text Box, DropDown List) get populated with data related with the selected item from the ComboBox on which the Enter key was pressed.What I want is that if somebody uses mouse on the ComboBox items and clicks any one item the data related to the clicked item should populate the other controls. This should also work on Lost Focus.So how do we write the Mouse Click and Lost Focus events for a ComboBox control from the AJAX Control TookKit.
I have one Button (Refresh Button), One ComboBox (containing DEV and UAT as its items) and a GridView on my asp page.
I am filling up my Grid with values from database on the ComboBox's 'TextChanged' event and Buttons's 'Click' event.
First time when page is loaded, there is no information in the grid, but when i choose DEV/UAT from the ComboBox 'TextChanged' event is fired, the grid is filled with the relevant data. That is what i want.
When i click the Refresh Button to refresh the data again, first comboBox's 'TextChanged' event and then 'btn_Click' event is fired.
I want then when a button id pressed only 'Click' event to be fired and not the ComboBox's 'TextChanged' event.
i want to know how to use the combobox in asp.net web form. in this combobox i need that it can work as a textbox as well as dropdownlist. In this i want that user can enter their destination as there choise and in the dropdownlist we can give some imp. destinations. How can i use these two in a single one..
I have a comboBox within a grid. Basically to get it I have to use findcontrol. I am thinking of another option however. Within the init method I was planning on getting the value and storing it to a private static field:
private static RadComboBox theComboBox
Is it unwise to be storing a relatively complex object like this in a static field?
I want to fill the combobox by using the table value.
OdbcConnection con = new OdbcConnection(); OdbcCommand cmd; con.ConnectionString = ""; con.Open(); cmd = new OdbcCommand("Select no from table", con); ada = new OdbcDataAdapter(cmd); ds = new DataSet(); ada.Fill(ds); combobox1.Items.Add(ds);
But no values was loading in the combobox, what wrong with my above mentioned code.