I'm interested in hacking one of those digital picture frames (like you see for sale at Walmart) so it fetches and displays an image off the web every 5 minutes or so. (I'm going to have it load a current image.) Any ideas on how to get started?
...
Basically, I have four asp:DropDownLists and I wish to populate all of them from the same table, with certain conditions.
For example, I have this data source:
<asp:SqlDataSource ID="ReferenceDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:mrapConnectionString1 %>
SelectCommand="SELECT * FROM [reference_dat...
The OnSelectedIndexChanged event is not firing for my dropdown box. All forums I have looked at told me to add the AutoPostBack="true", but that didn't change the results.
HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a...
Am unable to add elements to a dropdown list via Javascript.
The below piece of code works in IE and Chrome, but not in firefox.
ddlId.add(new Option("",0));
In firefox, I keep getting an 'Not enough arguments' exception. Any idea on how to resolve it? Thanks
...
I have a form in which I have two drop downs.
A decision in one fires the other.
The basic rule is:
Drop Down A -> select items 1,2 or 3. Drop down B loads list 1
Drop Down A -> select items 4,5 or 6. Drop down B loads list 2
This works fine on first load and save of the form. The problem is when I edit. Lets say I selected and save...
I have following problem. In my view model I defined some list properties as follows:
public class BasketAndOrderSearchCriteriaViewModel
{
List<KeyValuePair> currencies;
public ICollection<KeyValuePair> Currencies
{
get
{
if (this.currencies == null)
this.currencies = new List<KeyV...
Hi!
I am working with cascading dropdowns in MVC. It appears that I will not be able to easily create dropdowns on demand, instead I will have to add the dropdowns before sending it to the client.
This is how I am doing it right now:
In the aspx page
<%: Html.DropDownListFor(model => model.ModelViewAd.Category1, Mod...
This code will display the selected value from the listbox. E.g. if I sellect Item 1 I will get the following output: You have selected Item 1.
Label1.Text = "You have selected " + DropDownList1.SelectedValue + "<br />";
But if I don't select anything and click on Submit button, I will get: You have selected
What would I need to make...
I am using Microsoft Expression Web 3 and I have to pages, the first with a DropDownList and a button and the last shows the result. The DropDownList contains a list of countries where the user is supposed to select a country and the click on the button, this should send the user to a new page to see what's needed to travel to that count...
I have three dropdowns for selecting a year inside a user control. On load I specify the selected value for one drop down. The other two drop downs are automatically getting assigned the same selected value. No matter which dropdown I assign a selected value to, they all three get the same selected value. I've tried recreating a new user...
Hi Dears,
I have Created A Custom Control which is a DropDownList with specified Items. I designed AutoPostback and SelectedCategoryId as Properties and SelectedIndexChanged as Event for My Custom Control.
Here Is My ASCX file Behind Code:
private int _selectedCategoryId;
private bool _autoPostback = false;
public event EventHandler ...
I need to let users select an item from a dropdown list, but also allow them to instead enter any text, even if it doesn't match an item in the list. How can I achieve this on a web page with HTML and Javascript?
The select field doesn't let users enter text, and the input text field doesn't show the preferred alternatives.
All items m...
I'm using entity framework and i have a problem that this dropdown ignores my changes / does not reflect db.
<asp:FormView ID="FormView1" runat="server" DataSourceID="edsFoo" >
<asp:DropDownList ID="myDD" runat="server" AppendDataBoundItems="true" DataValueField='<%# Bind("something") %>'>
<asp:ListItem Value="0" Text="...
So I have some drop down lists in a view (apologies for the wall of code, thought it better to post to much than not enough):
//...blah...
<%=Html.DisplayFor(m=>m.PlanType.PlanTypeType) %>
<%=Html.DisplayFor(m=>m.YearLevel.YearLevelName) %>
<%=Html.DisplayFor(m=>m.Subject.Subject1) %>
//..moreblah...
rendered via an editor...
Hello Community,
i use asp.net mvc 2 and i have a problem with the DropDownListFor helper.
My ViewModel contains a SelectList with all required Values und 1 SelectedValue.
When i use the DropDownListFor helper in my View the SelectedValue is not selected!
Then i select a other Value and submit the form, on the next rendering in the Post...
I am populating a dropdownlist control from a database. That happes fine, however, when I display the dropdown at runtime, I want the first visible option to be "Please select a faculty member" (which would be option value 0).
How can I accomplish that?
SqlConnection con = new SqlConnection(strConn);
...
Hi,
I try to add a new item to the drodownlist.I want the added item to be place at first position of a dropdownlist.How can I do that
I want this to be a first option
ListItem itemspecial = new ListItem();
itemspecial.Value = "-1";
itemspecial.Text = "Please select specialization";
ddlSpecialization.Items.Add(itemspe...
Hi all, I have a form drop down box (for the 50 states) that is populated via a PHP for loop (see code below). The user selects a residential state, then later in the form also has to select a mailing state (in case the two are different). I have provided a check box in JavaScript that, when checked, populates all the mailing informati...
Hi!
I’m trying to link two dropdownlist depending on the value you select from the first dropdownlist.
I don’t have any idea how to do this, so if you guys can point me in the right direction that would be great.
What I want to do is select a value from the first dropdownlist and depending on its value show some options in the second dr...
I have a DataBound DropDownList that is loading fine, but i'd like to insert another item that says "--Select--" or something instead of having the first DataBound item automatically display.
Is there an easy way to do this or do I need to manually add a dummy item?
Here is my code:
MyContext fc = new MyContext ();
...