Questions tagged as 'asp.net-mvc-5'

2
answers

How popular a select with JQuery

I have a registration screen where the user can add or not phone numbers. I am adding fields to insert the phone dynamically, but one of these fields is a select that will bring data from the database. My jquery is hitting the controller and it...
asked by 23.08.2017 / 22:37
0
answers

Doubt about submit and jquery?

I'm developing an application in Asp.Net MVC and am having a problem that I can not solve. I have a form with 2 buttons submit , and when I do submit I want to get the name of the button to which I clicked by id and thus chan...
asked by 27.05.2017 / 15:18
2
answers

Include 2 IEnumerable in 1 View!

Hello, I'm new here and I'm having problems with my application! I want to list 2 list in a view (Promotions and Postings). The code is like this! (class Promoting) namespace SiteJapaBrindesDDD.MVC.Entidades { public class CadPromocao...
asked by 08.03.2017 / 14:22
1
answer

View clickable link coming from database [duplicate]

I want to display the link that can be clickable, appearing as text: I'm using the code below, but it still comes as text and I can not click: @Html.Raw(HttpUtility.HtmlDecode(item.Facebook))     
asked by 29.12.2016 / 22:34
0
answers

How to list data with inner join with mvc 5, c #, dapper, and sql server?

I have the following difficulties: 1 - View data from a select with inner join. The fields in the other tables do not all appear in the select, and those that appear have a value of zero (0). 2 - Write the data in the database. Even if you...
asked by 19.11.2016 / 01:13
1
answer

How to send a special character to the view, asp.net mvc?

I have a situation where I would like to position the page in the same position as the container where it was before sending Get? Example: <!-- ==== contato ==== --> <div class="container" id="contato" name="contato"> <...
asked by 11.11.2016 / 13:36
1
answer

Problem with route routing asp.net mvc

I have the following route, where I get the delegate id: link So it's working, but I'd like to show the name of the rep link / Index / JsBlaBla In my MapRoute I'm doing so unsuccessfully public static void RegisterRoutes(Ro...
asked by 10.11.2016 / 17:22
1
answer

How to assign value from ComboBox to variable?

I'm customizing the user registry part, using the Entity Framework's Identity Tool. Then on the registration page, I added a ComboBox (Select in HTML): PartofmyView:<divclass="form-group"> @Html.LabelFor(m => m.Email,...
asked by 16.10.2016 / 16:51
1
answer

Jquery is returning undefined for one of the generic properties I created

Jquery is returning undefined to one of the generic properties I created, to use with Bootgrid. I am trying to load a modal according to the click event of one of the buttons on the grid, but the modal opens without content. JQuery recognizes th...
asked by 19.10.2016 / 22:18
1
answer

BeginForm does GET instead of POST

I have a controller that has two Actions; public ActionResult Cadastrar() { return View(); } //[ValidateAntiForgeryToken] [HttpPost] public ActionResult Cadastrar(Usuario usuario) { if (ModelState.IsValid) { var appUsuari...
asked by 09.10.2016 / 02:18