Hi Guys,
Can anyone help me, I have a IE javascript issue.
I am really stuck and the client has just brought it to my attention.
The site is http://www.fleurofengland.com/, its the check out page so if you would be kind enough to goto the site, add anything to your basket and go through to the checkout.
The problem is when you get to...
I guess this is simple, but i couldnot figure it out.
i have a dropdown list with values
America
Asia
Europe
I need to the display the ddl as Select Type and when i click the dropdownlist to see the values in it, it should display the three values, but i should not use Select Type as a list item and it should not be displayed in th...
I have a set of radio buttons. When primary is selected, the Primary Company field is hidden. I would also like to at this time clear the drop down selection. How can I do this?
<p>
<label>Company Type:</label>
<label for="primary"><input onclick="javascript: $('#sec').hide('slow');" type="radio" runat="server" name="...
I have a form to enter subcontracts. On this form I have a dropdownlist of all companies in the system. Next to it is a button "Create Company". This button opens a jquery dialog which allows the user to create a new company. Once the dialog closes, the new company needs to be added to the dropdownlist and selected. If I refresh, it...
Hi guys,
Basically I have a drop down list which is populated with text and values depending on a selected index of a radio button list. The code is as follows:
protected void RBLGender_SelectedIndexChanged(object sender, EventArgs e)
{
DDLTrous.Items.Clear();
DDLShoes.Items.Clear();
if (RBLGender.SelectedVa...
I have a page with several drop down lists that all have the same contents. The page starts out with only three ddls, but more need to be added based on user input. There is also other information associated with the drop down lists that is all in a table. So, when the user clicks a link I add a new row of textboxes and drop down lists t...
I have an .aspx page with a databound multi-select jquery dropdown. This works nicley but how can i get hold of the selected items in the code behind?
...
Hello,
I'm having problems trying to populate a dropdownlist from the database. When I'm trying to set the datasource I can't find the dropdown control, it's in a DetailsView so I think it might have something to do with it only being created when it's in edit mode. It still says it's in current mode when I'm editing though, so not sure...
Hey,
I am trying to figure out why a website's drop down box will not show any options. The data file for this drop down box comes from a microsoft access .mde file. The file is present and after the last update was working fine. Some changes happened to the site, i.e. text got added along with some photos. Im not saying this was when...
I put a dropdownlist on a webform and give a list as datasource.
But what can I do, if I want the first item in dropdownlist to be "Select a user" or something like that?
For example: // ddlAllUsers is a DropDownList
List<REGUSER> users = UserOperations.GetAllUsers();
ddlAllUsers.DataSource = users;
ddlAllUsers....
I have the following sql table which contains menu (website menu) data.
Table Name: MenuItems
Columns: Id, MenuId, ParentMenuItemId, Text.
My goal is to bind a DDL according to the following hierarchy (example):
Id: 1, MenuId: 1, ParentMenuItemId: -1, Text: 'One'
Id: 2, MenuId: 1, ParentMenuItemId: 1, Text: 'Two'
Id: 3, MenuId: 1,...
I'm trying to extract the selected value from a a DropDownList as a string as follows:
if ((ASPxComboBox1.SelectedItem.Value).ToString = "Selection")
This is not working. Please let me know if there is a away of getting each selected string extracted?
...
I'm populating a DropDownList using JS on the client and validating with a RequiredFieldValidator.
This works fine on the client but the Page.IsValid consistently comes back false on the server.
Is this because the selected value wasn't in the DropDownList when it was first served to the page?
What's the easiest way around this? (I ne...
How can I bind data from a database to a ListBox control in ASP.NET?
...
I've spent the majority of the past week knee deep in the new templating functionality baked into MVC2. I had a hard time trying to get a DropDownList template working. The biggest problem I've been working to solve is how to get the source data for the drop down list to the template. I saw a lot of examples where you can put the sour...
Hi,
I am trying set up a simple dropdown list but I dont seem to be able to get it to bind to the Model.
I am using Asp.Net MVC and nhibernate.
My dropdown list is declared like so:
<%= Html.DropDownListFor(model => model.Project, (IEnumerable<SelectListItem>)ViewData["Projects"], " -- Select -- ", new { name = "Project" })%>
I set ...
I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?
...
I have three dropdown boxes, Region, District, and City. I want my District dropdown to have a "Select All" option so the user can get all Cities in the Region, else just display the City based on the selected District. My query looks like this:
IF @district =-2 THEN
(SELECT DISTINCT city
FROM myTable
WHERE RIGHT(Region, 3) = ?)
ORD...
hi
i have a page x which is nothing special. i also have a page y with a form -> dropdown-field.
Now i want to place a link link from page x to page y whose link will also select the third value of the dropdown.
The sample is descriped easier than it is in reality just to get to the point.
How is that doable?
Regards
...
In my controller I have this:
ViewData["maskList"] = new SelectList(equipmentRepository.GetMasks(), "Id", "DisplayName");
and then I bind it to my view using
<div each="var nfa in mfa.NasalFittingAssessment">
${Html.DropDownList("NasalMaskTypeId", ViewData["maskList"] as IEnumerable<System.Web.Mvc.SelectListItem>, new { class = "...