Questions tagged as 'asp.net-mvc'

1
answer

Asp.Net Razor with Json

I have a question and I already researched several sites but I did not get the answer. I develop systems in .Net with C # in the MVC standard and use the on-screen presentation in the traditional View with Razor form. It turns out that I ha...
asked by 05.04.2017 / 18:21
1
answer

Null value is going to ajax error function - ASP.NET MVC

I am developing a CEP query page where the information is sent and returned in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type: "GET", success: function (retor...
asked by 19.08.2016 / 17:26
1
answer

Generate Dynamic HTML with ASP.NET

Good people, I'm having a project, and I need to generate a dynamic HTML card by pulling from an sql server. The case is as follows, I have a CARD in html, all stylized. Which in the case is the code below. <hr class="separador" />...
asked by 14.06.2016 / 16:34
1
answer

Doubt with parameter passing in an Url.Action

I have a control that gets an ID and makes a listing, but on this page I have a button to return to the previous page, then as it also gets an id, then how could I pass this id dynamically? Here I am returning by passing ID 1: SelectModality...
asked by 27.07.2016 / 05:38
1
answer

How to get value from a variable in the controller with ajax (jquery)

I have to get a value from a variable inside a method in the controller in .net, the method is in the homeController and returns a json, so alright the code is running and returning the json perfectly but I have to get a value of a variable alre...
asked by 02.08.2016 / 19:40
1
answer

Use Separate DataHora

I have a DataHora field and wanted to use separate, that is, a single field in the database called DateHora of type datetime, and manipulate this field with two editorfor where I saved the date of one editorfor and the time of another editorfor...
asked by 29.10.2016 / 05:34
1
answer

How do I stay with the selected item in a select after page transition?

What are the best ways to stay with a selected item in a select after page transition (Go to a page and then return with the fields already selected) using ASP.NET MVC? Session? Cache? TempData? Hidden field?     
asked by 01.06.2016 / 19:16
1
answer

Redirect to a controller in another area

I tried a solution for this but I could not, I'm trying to redirect session errors to login, my application stays inside a folder called Areas and when I see something redirect to it I redirect it like this: <li><a href="@Ur...
asked by 11.10.2016 / 19:27
1
answer

Validation Problems Uploading Multiple JavaScript Files

No form, in an Input selecting multiple images @using (Html.BeginForm("Edit", "RoomType", FormMethod.Post, new { enctype = "multipart/form-data", onSubmit = "return ValidateImagesUpload()" })) { @Html.AntiForgeryToken() <div class="...
asked by 30.09.2016 / 18:31
1
answer

User add date to List MVC 4

I'm new to ASP.NET MVC 4 and C # and need help. I created a class Enrollment (discipline) public class Enrollment { public virtual int EnrollmentId { get; set; } public virtual string Name { get; set; } public virtual ICollection&...
asked by 24.04.2016 / 22:02