Most voted "dropdownlist" questions
29 questions
Sort by count of
-
3
votes1
answer1159
viewsThere is no Viewdata item of type 'Ienumerable' that has the key
I’m having trouble with the Employee Position that is on a separate Table, when I try to create an employee selecting the position, he error... but if I assign the position in Controller (Ex:…
-
3
votes1
answer165
viewsDropdownlist in C# with Htmlhelper
I’m new here and also new to the universe ASP.NET. I’m having a hard time creating a DropDownList for a form on a web page with ASP.NET MVC and C#. I made a user registration form and one of the…
-
3
votes2
answers1193
viewsASP . NET MVC 5 - Dropdownlist with Modelstate?
I am developing a registration system using MVC5 with DAO, but there were some doubts that I could not resolve. I have a table where I register Projects and another one where the types of Projects…
-
2
votes2
answers1383
viewsPick up a selected item on Dropdownlistfor using an ASP.NET MVC Viewmodel
I am trying to register a Subcategory that needs a Category. I have Subcategoriaviewmodel, where I created the fields public IEnumerable<CategoriaViewModel> Categorias { get; set; } and public…
-
1
votes1
answer2090
viewsEdit data from a Dropdown List in Excel
I have a list of items in a dropdown in excel. These values must be selected by the user and from there, edit it as requested. However, I don’t know how to edit these dropdown values. Can anyone…
-
1
votes1
answer1179
viewsSet Value in a @html.Dropdownlist
In an address registration form, I’d like to do the following. the guy types the zip code, then searches the zip code, and returns the data to fill in the Editorfor. So far so good, it’s working.…
-
1
votes1
answer200
viewsDropdownlist filled and selected
I need to fill in a @Html.Dropdownlist() with my Model parameters and pre-select one of the items. At Model I am receiving the complete package, being: List of products on Produto and the items…
-
1
votes1
answer545
viewsASP.NET - Access Dropdownlist item attribute in Code Behind
I have a DropDownList in which I add items as below: var item= new ListItem("Texto do Item", "Valor do Item"); item.Attributes.Add("NomeAtributo", "ValorAtributo"); The DropDownList is rendered on…
-
1
votes2
answers276
viewsDropdownlist with Begincollectionitem
Goodnight! Could follow in this same question here, but it would be too long. As it may be another subject I decided to open another question. I got everything right as per the best answer, but…
-
1
votes1
answer1478
views@Html.Dropdownlistfor how to set the default value
I need to set the default value displayed by a @Html.DropDownListFor Researching found: @Html.Dropdownlistfor how to set default value So I did it in my code: @Html.DropDownListFor(model =>…
-
1
votes1
answer26
viewsdropdow list MVC, with selected item
I have a dropdowlist that carries RamosDeAtidade, want to know how I do to my Edit view, already be selected the branch I registered, in my Controller, at Action Edit It’s like this: var cliente =…
-
1
votes1
answer156
viewsHow to change the size of the Dropdownbutton list?
I’m new to Flutter and created a Dropdownbutton where it works perfectly. But I need the same when opened, do not fill the entire screen as shown in image 1 and 2. I need the Dropdownbutton open its…
-
0
votes1
answer75
viewsHow does the dropdownlist work?
My code is just to add text, I am using framework Yii 1, I would like to create a dropdownlist with female and male only options. <div class="row"> <?php echo…
-
0
votes1
answer293
viewsHow to order dropdownlist?
How can I order the Dropdownlist? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div…
asp.net-mvc asp.net-mvc-5 bootstrap-3 razor dropdownlistasked 7 years, 5 months ago Marcos Rebitte 9 -
0
votes0
answers113
viewsCreate a "Submit" button after creating a "spinner" with email confirmation
I’m new to creating android apps and wanted your help Crier in the Navigation Drawer one Spinner with 2 text boxes, a drop down list and a button of Submit where this button will have to fetch the…
-
0
votes2
answers225
viewsProblems saving a selected item in Dropdownlistfor using a Viewmodel
I’m trying to save a change I try to make by selecting a Category in a Dropdownlistfor. Kind of: I keep following the Debug and the View is sending the selected Category, but I am not able to…
-
0
votes0
answers79
viewsDropdownlistfor creation with typed view
Good afternoon, everyone, I’m starting my studies in the art of ASP.NET C#. I’m having trouble creating a Dropdownlistfor. Like I’m doing: - I’m using ADO.NET - I have my model Equipment - I have a…
-
0
votes1
answer573
viewsASP . NET MVC - Using a @Html.Dropdownlist for two Actionresult
Hello, I’m developing an application with ASP . NET MVC and using the Epplus API for XLS export. In the View of an equipment report I have two @Html.Dropdownlist with Type of Equipment and Status…
-
0
votes1
answer55
viewsDropdownlist with multi Selected
I have a table of defects and a table of processes, and a defect can have one or several processes. For now I have a dropdownlist for a defect, a process, that changes need to do to be able to…
-
0
votes1
answer133
viewsAsp . Empty Net Dropdownlist After Form Submit
I own a dropdownlist which is dynamically filled after two textboxes have been filled in. When I do form Ubmit the dropdownlist is empty, even if dynamically filled. Dropdownlist…
-
0
votes3
answers182
viewsError submitting form with ASP MVC
I am facing a problem submitting a form developed in ASP MVC. By clicking the save button the following error message is returned: System.InvalidOperationException: 'Não existe item ViewData do tipo…
-
0
votes1
answer115
viewsGet JSON in Javascript (via URI or PHP)?
At this moment I find myself working on a project, and I need to call a webservice that should resume a json, so that later it can be interpreted and fill a dropdown list. Actually, part of the code…
-
0
votes1
answer52
viewsAs popular dropdwonlist with datetime AM value and another dropdwonlist with PM C#
Question: As popular a dropdownlist worthwhile datetime AM and other dropdownlist with PM value in C#. private static void FillTimeDropDown(DropDownList dropDownList) { TimeSpan startTime = new…
-
0
votes1
answer76
viewsLoad a json into a Yii2 Dropdownlist
I recently migrated to the YII 2 framework. And I have a small question: I have a json that I need to popular a Dropdownlist. The Json file: [ {"codigo": "05", "descricao" : "Administrador"},…
-
0
votes0
answers167
viewsPHP-How to update values in a combobox after clicking the insert button?
I’m new to Law and I study alone... I need to make sure that after the user records a course by choosing the combobox and clicking Enroll, the recording is done in the Enroll table in the database.…
-
0
votes1
answer328
viewsFlutter / Changing a Dropdown List after pressing a button
Good afternoon/night, I’m developing an application where on one of the screens I want to make a "chat" equal to Whatsapp. In terms of functionality, my chat differs from Whatsapp for being totally…
-
0
votes0
answers14
viewsHow to pass to the form the dropdown selection of an API result
I created a form in React that searches for data from an API, and I need that in one of the form fields at the time of registration return the values of a second API (which has ID relation to the…
-
-2
votes1
answer162
viewsHow to style an option selector
Good afternoon, you guys, I’m looking for a way to style a select but I’m not getting it, and I’m also not getting material on the internet to do it, if you can help me thank you. And the next one I…
-
-2
votes1
answer36
viewsIs it possible to insert two results in the same Dropdownlist? C#
In my code, there is a page for sales registration where it is necessary to enter some information as for example which customer made the purchase. Controller Venda: // GET: Vendas/Create…