Questions tagged as 'dropdownlist'

0
answers

DropDownList in C # with HtmlHelper

I'm new here and also new to the ASP.NET universe. 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 items needs to be DropDownList...
asked by 06.06.2018 / 14:12
1
answer

As popular dropdwonlist with AM datetime value and another dropdwonlist with PM C # value

Question: How popular is a dropdownlist with value datetime AM and another dropdownlist with PM value in C #. private static void FillTimeDropDown(DropDownList dropDownList) { TimeSpan startTime = new T...
asked by 31.07.2018 / 16:50
3
answers

Error submitting form with ASP MVC

I'm having a problem submitting a form developed in ASP MVC. Clicking the save button returns the following error message: System.InvalidOperationException: 'Não existe item ViewData do tipo 'IEnumerable<SelectListItem>' que possui a cha...
asked by 13.02.2018 / 20:14
1
answer

Asp .Net Dropdownlist Empty After Form Submit

I have a dropdownlist that is populated dynamically after two textboxes have been filled. When I submit the form the dropdownlist is empty even though it is filled dynamically. DropDownList <asp:DropDownList ID...
asked by 10.01.2018 / 14:32
1
answer

ASP .NET MVC - Use an @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 Equipment Type and Status respectively. To display the report...
asked by 19.10.2017 / 19:50
1
answer

How to sort the dropdownlist?

How can I sort the DropdownList ? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">...
asked by 18.06.2017 / 16:27
2
answers

Problems 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 . Type like this: I'mfollowingtheDebugandtheViewissendingtheselectedCategory,butIcannotcontinuethischange.MySubcategoryControllerlookslikethis://G...
asked by 22.02.2017 / 17:37
1
answer

Get JSON in Javascript (via URI or PHP)?

At this point I find myself working on a project, and I need to call a webservice that should resume a json, later it will be interpreted and fill a dropdown list. In fact, part of the code I need for this work, I already found it, in an article...
asked by 30.03.2018 / 00:33
1
answer

DropDownList with multi selected

I have a table defects and one of processes, and a defect can have one or several processes. For now I have to work a dropdownlist for a defect, a process, what changes I need to make to be able to select several processes, follow the code below...
asked by 25.10.2017 / 17:51
0
answers

Creating DropDownListFor with typed view

Good afternoon guys, I'm starting my studies in the art of ASP.NET C #. I'm having trouble creating a DropDownListFor. How I'm doing:  - I'm using ADO.NET  - I have my model Equipment  - I have a Viewmodel EquipmentCompany, just to list...
asked by 11.07.2017 / 21:49