-
hi. i want to use a drop down lists in my view. i want first drop down list for company name. and second one for product name for selected company. i dont want to use cascading for that coz in that case when page is refreshed ,value from that dropdown list disappears. is there any alternate way for that...
Posted to
ASP.NET MVC
(Forum)
by
cmakwana
on
06-13-2009, 12:00 AM
Filed under: DropDownList, "ASP.NET MVC", DropDownList selectlist, DropDownList MVC SelectList NULL value ViewData, asp.net mvc cascading drop downs
-
Hi there. I have a page for user to delete records. Here is how I present my controls. I have a drop down list for user to choose the record to view before delete. Upon choosing and click the delete button. The page should refresh to show the latest record. Any idea how can I do that? Using vb language...
-
Hello all, I have a DetailsView bound to an ObjectDataSource . The DetailsView has 2 Template Fields . Each template field hast a DropDownList bound to an ObjectDataSource . DropDownList2 depends on DropDownList1. My problem is that when I try to set the SelectParameters using Visual Studio, I select...
-
Hi, I am just using the formview and built in Sql Datasource to populate a drop down list. I want the first record to be a select message, so that the onchange event can fire and build out a gridview of records based on a parameter from the drop down. I can do everything but get the blank record in the...
-
Hi! I've added a DropDownList containing all user roles: DropDownList rolesList = (DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl( "RolesList" );
String[] roles = Roles.GetAllRoles(); rolesList.DataSource = roles;
rolesList.DataBind();
rolesList.Items...
Posted to
Security
(Forum)
by
biljap
on
05-21-2009, 12:00 AM
Filed under: asp.net.c#, dropdownList, add new fields to create user wizard, createuserwizard
-
Hi, I am trying to do a seach mechanizm. I have a page that has 3 dropdown controls. Here is what I try to accomplish string Agency = ddlAgency.SelectedValue; string Location = ddlBorough.SelectedValue; string Type = ddlType.SelectedValue; string strSql = "SELECT * FROM Projects"; By these...
-
Hi there, I've got 2 dropdownlists. Both have AppendDataBoundItems="True". On ddl1 I have -Select a hotel- as a list item. On ddl2 i have -select a room- as a list item. I databind ddl1 and on event onselectedindexchanged="DropDownListHotel1_SelectedIndexChanged" i programmatically...
-
I tried looking to see if this question has been asked before, but didn't find a solution that was helpful. I'm creating a survey. I have a yes/no radio button list, followed by a drop-down list (which is disabled when the form loads, and its RequiredFieldValidator is also disabled). When the...
-
I'm following through the Nerd Dinner tutorial (with my own unique class...not Dinners), and I've gotten to around page 104 and I've run into a problem that I haven't been able to solve after 2 nights of troubleshooting. My problem is this; when I had the MVC scaffolding build my own...
-
I have seen numerous examples using a SqlDataSource, but not too many using ObjectDataSource. I have a Dropdownlist that is bound to a ObjectDataSource. The Select method of the ObjectDataSource returns a list of Vehicle Objects. public class Vehicle { public int VehicleId { get ; set ; } public int...