Questions tagged as 'razor'

2
answers

Creating a collection

The two images are how my array is. In the first image I have an array with 3 items, the first of the month of April and contains 4 passages. For each ticket I have the respective participants. My problem is in sending this array to my...
asked by 12.04.2014 / 03:42
2
answers

How to receive information in a View?

I programmed my controller as follows: [HttpPost] public ActionResult Login(string pUsuario, string pSenha) { usuario oUsuario = modelOff.usuarios.Where(p => p.usuario1 == pUsuario && p.senha == pSenha).SingleOrDefault();...
asked by 28.07.2017 / 16:55
1
answer

Display or Hide Fields for Individuals or Companies

I have a form that registers Customers, and has the option of being an Individual or Legal Entity, each of which has a few different fields. I thought about using an @Html.RadioButton with the option Individual and Corporate. When you click o...
asked by 07.09.2015 / 23:22
2
answers

How do I leave my DropDownListFor equal to Select

How do I get my DropDownListFor, like this select where the first field can not be selected. <select> <option value="0" selected disabled>Selecionar</option> <option value="1">SEMANAL</option> <option val...
asked by 20.07.2017 / 15:30
1
answer

For with DateTime in Razor giving out of memory exception

I'm having the error out of memory, being caused by this Razor code in my cshtml file, and I can not identify where the problem is. @for(DateTime data = DateTime.Today.Date; data <= DateTime.Today.AddDays(7).Date; data.AddDays(1)) { @da...
asked by 25.01.2018 / 23:41
2
answers

Remove from page mvc "© 2017 - Name Project"

I have a razor page that I call inside another page, and by having this ID: © 2017 - CronoParque, appears twice on the "same page", since I call one inside the other, I wonder if how can I disable this option from the page that I call. The image...
asked by 11.06.2018 / 13:43
2
answers

Action that returns PartialView not being called

I need to present a list of results by completing the form below, but the search is not displaying the result. The action in controller is not being thrown. @using (Html.BeginForm()) { <div class="form-group"> @Html.LabelFor(mode...
asked by 03.10.2016 / 17:26
2
answers

Pass List for ActionResult

Briefly: I have a screen with a table populated by the list below, where I select the line through checkbox , I need to pass that list to my actionResult . As I do not have a form on this screen I can not give the data to p...
asked by 03.02.2017 / 20:01
3
answers

Picking text from a given column with jquery

Good afternoon. I need to get the value of a DropDownList in a given column of a table. This would be the table: @model IEnumerable<Santander.Web.MVC.ValidacaoGanhadores.Models.Ganhadores> <table id="tbValidacao">...
asked by 01.02.2016 / 18:11
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