-
Hi, For this project I'm using .Net 1.1 and VB. I'm trying to create ddl's for the 'date of birth'. That is, one ddl for month, one for day, and one for year. I want to combine those values and update a single 'dob' field of the table (currently in MS Access). Also, I need...
-
I needed to remove duplicate years from a DropDownList and so I created the following class in C#: public class Ddl { public Ddl() { } public static void RemoveDuplicateItems( DropDownList ddl) { for ( int i = 0; i < ddl.Items.Count; i++) { ddl.SelectedIndex = i; string year = ddl.SelectedItem.ToString...
-
I'd like to populate a dropdown list on page load, on a web form. Like this: <!-- make this automatically inset this year, and next year --> <% Dim thisYear Dim nextYear Date.Today.Year.ToString(thisYear) nextYear = thisYear + 1 %> <asp:DropDownList ID="DateYear" runat="server">...
-
Hi! Using the tutorial at http://blogs.msdn.com/mattdotson/articles/490868.aspx, I managed to create a GridView with Insert Rows. However, if I place a DropDownList in an Insert Row, instead of a TextBox, I get the following error message: Databinding methods such as Eval(), XPath(), and Bind() can only...
-
Hi, really really hoping someone can help with this , by modifying the my code to return values to my GridView's templated column containg a dropdownlist. I am trying to present a list of questions each of which can have different Answer types. For example some questions can be answered with Yes...
-
Has anyone worked with FormulatorNet? Its a pretty nice packaged Web Form Builder with Admin Front End. I haven't had any problems skinning it, but when it comes to setting default values I'm not doing so great. I am trying to customize its DropDownList for Countries to set value to USA. Right...
-
I am migrating a Java program into ASP .NET environment. One of the problems we encouter is displaying data (such as Neme, Title, Dept) in multiple columns in a dropdown list. I know there are ways by which you can do this in Windows form; however, I don't know if this is at all possible in ASP Web...
Posted to
Web Forms
(Forum)
by
sg2000
on
10-18-2006, 12:00 AM
Filed under: ASP.NET, DropDownList, DataBind DataBinding, ASP.NET 2.0, asp.NET 2.0 C#
-
I have a FormView "FormView1" which contains a drop down list "dropdownlist1" in the insert template. I need to be able to get the value when the selected index is changed in the drop down list. I understand this is done using bubble events. How do I do this in c#? Cheers, Roger.
-
Hi guys... DropDownlist1.databinding(); is not working. I mean to say it is not working as like Gridview1.databind() or formview1.databind(); My DropDownList1 is connected with Database(I have used select distinct ). What I was expecting when I will use DropDownlist1.databinding();, It will give me current...
-
I want to add instructional text to my DropDownList, with out making the text as one of the index in the list, i.e. “please click here” or “please select your subject”, is this possible? I am using VS 2005 and Visual basic Language Could you please advice.
Posted to
Web Forms
(Forum)
by
faezeh
on
10-19-2006, 12:00 AM
Filed under: DropDownList, DropDownList FindByValue