I currently have an Instance of the ASP.net ajax control toolkit combo box residing in a field set with a style of position:releative applied. The control also sits in a very plain table.
There are two problems with the display of the list:
The list does not sit flush with the text box. In I.E. 7 (which is the majority of my target audience, intranet where IE7 is the company standard) the list display about 10px below the fieldset, which is what the bottom margin of the fieldset is set to. In FF 2.0 the list sits sinificantly lower and off-set to the right.
Below the filed set there is more content in a div, also with a style of position:relative applied. The list from the combo box displays behind the content of this div, which is obviously an issue.
Removing position: releative from the fieldset resolves the display issue of the combo box, but results in other unwanted display side effects.
The code below when using a traditional ASP.NET DropDownList works perfectly. If a value is not picked (default value still displaying), then the range validator displays the problem. However when I use this same code with an AJAX ComboBox, the RangeValidator returns false every time, and the message is always displayed. Take a look:
[Code]....
So every time I press a button to postback, the "** Item is required**" message is displayed. Again, this works just fine with a regular ASP.NET DDL, just not with the ComboBox from the toolkit. I can get a RequiredFieldValidator working with the ComboBox, but I like the post selection behavior of a RangeValidator better.
I have added some combobox and texboxes in gridview dynamically to provide the data entry like operations.i have fetched and reset the value of these dynamically added controls on button click as ->
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.
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 using CSS Friendly to solve the Problem of MenuControl with .NETFramework 3. When I copy the related files to the App_Browseres , the Menu style is not working. menu style is retrieve from the CSS file.
I am using asp menu control and binding the menu items dynamically based on the screens table from the DB. here is the code how i am binding the menu from the DB.
for (int i = 0; i < dtLeftModules.Rows.Count; i++) { MenuItem objLeftMenuItem = new MenuItem(); objLeftMenuItem.Text = dtLeftModules.Rows[i]["Menu_Name"].ToString();
[Code]....
but when i select the menu item the page is navigated well.. but selsctedstyle is not applying.. still showing same color.
i guess the problem with ajax postback. because i have placed the menucontrol inside the updatepanel and gave the postback trigger target control id as topmenu control id. yes leftmenu is bind based on the topmenuitem click.
Showimgdiv s the div whose Position:absolute and dislay:none... onclick of a linkbitton i want to show the divvar iid=document.getElementById('ctl00_body_Showimgdiv') iid.style.display='block'; Tis code works in IE but not in FF.. so i decided to go wit jquery and im a beginner in tat
$(document).ready(function(){ var iddd=$("#Showimgdiv"); iddd.css ({ display:"block" }) iddd.show(); }); Either of tis dint work
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.
Ive got an ASP:Menu in my page and want to display a background image for each item, and have that background change when the user hovers over, or selects it.
However, the UnselectedTab style applies when the page loads but then the style doesnt change on either select or hover, ...
Is there a way to programmatically select the entire string of the selected item in the AJAX Combobox?What I'm trying to do is bascially on a State/City selection.
1. User selects a State from the first combobox. This triggers the City combobox to be populated. The item(0) is "Select One:".
2. I want the entire "Select One:" to be hightlight as if the user had used their mouse and highlighted all the text.
The reason for this that I'd like the user to be able to start typing the city without needing to clear out the "Select One:" manually.
I was trying to use CssClass="WindowsStyle" with the following CSS. Its working fine if WindowsXP theme is selected but when the theme is changed it looks odd (different from other controls).
I wish to have the ComboBox similar to the style used by other controls. Please give me the solution for this issue.
I understand the issue is with the button(background-image: url(../images/windows-arrow.gif);) but what could be the alternate solution?CSS used
I want to create a dll Only for Ajax ComboBox. I mean I want when I add this dll in toolbax, I able to drag Ajax Combo Box control on web form.Ajax provided source code & JavaScript files for ComboBox but how I can Create a dll from this.
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.