Questions tagged as 'asp.net-mvc'

1
answer

Popular a List with database data accessed by EntityFramework

How popular is my List in C #, with the data stored in the database accessed through EntityFramework? Current code: public static IEnumerable<Contato> GetAll() { return new List<Contato> { //DAqui pa frente nao se...
asked by 06.01.2015 / 14:10
1
answer

Register Assembly in ASP.NET MVC?

How to use the Register Assembly in ASP.NET MVC? I need to create a form that is using a reportviewer in mvc, and it already exists in webforms. I'll pass it on to another project.     
asked by 08.09.2015 / 18:51
1
answer

Exchanging Html.Action () for an Ajax request

I have a method that returns a ActionResult called through a Html.Action() directly on View using Razor . This method is used to render a ComboBox of devExpress with the data that I send from a SQL...
asked by 17.12.2018 / 11:28
1
answer

Pass value from a select to Html.BeginForms - Asp .Net

I have this element <select> : <select id="status" class="form-control form-control-sm" name="arquivo" > @{ foreach (string valor in ViewBag.ListaArquivos) { <option value="...
asked by 13.12.2018 / 14:05
1
answer

DropDownList field and Checkbox triggering a javascript function

I have two DropDownList and Checkbox fields that are responsible for entering value into an inputtext How to make the javascript code know the status sent true or false from the CHECKBOX for the function. DropDownList <div class="...
asked by 29.10.2018 / 03:40
1
answer

Date value coming from JsonResult function 18/11/2018 00:00:00 javascript receives "/ Date (1542506400000) /" [duplicate]

I'm having trouble receiving a JsonResult function that returns me a certain date and this date I'm not able to move to the Date field of my screen for reasons other than the formatting of the field. The function C # JsonResult...
asked by 30.10.2018 / 03:44
1
answer

Map one model Id in another without a DropDownList

I had a problem making relationships in my application. My project is from a school, and in it I have to have the occurrences. But at the time of relating the Student to the Occurrence it happened to me that, in the view create of the occurrence...
asked by 14.05.2014 / 03:15
1
answer

How to render Action accessing controller in this case?

I'm using a ready template and I'm using the bootstrap, but the menu transaction is done through javascript animations and using the <Section> html tag, as follows: <section class="section" id="registerProfessionalUser">...
asked by 09.05.2014 / 19:03
2
answers

Input appear with two numbers after the comma

I have this html, which I bring from a float: <input asp-for="Frete" name="Frete" onKeyPress="return(MascaraMoeda(this,'.',',',event))" class="form-control" /> I would like the value of this form 0,00 and not 0 when I bring the data...
asked by 29.08.2018 / 13:23
1
answer

How to implement encryption in the password?

I want to implement password encryption in the user registry. I found here on stackoverflow this post teaching how to use encryption, but I'm in doubt where I should add the code. Should this method be used in the class or controller? pub...
asked by 22.10.2018 / 18:24