Questions tagged as 'razor'

0
answers

Filter with two DropDowList ASP.NET MVC 5

I would like to make a filter with two DropDownList . In the first filter are filtered the Units registered and in the second the Functions registered in that unit, with their respective Employees. The end result would be the list of Emplo...
asked by 01.12.2016 / 18:25
1
answer

Foreach in razor with Many to Many relationship model in the Entity Framework Core

I have a table of funcionário and a table of projeto related many to many as shown in the diagram below: OnthecontrollerFuncionariosControllerintheDetalhesmethodIwanttolistthelistofprojectsthatareinvolved.Inthemethodpopuloamodelan...
asked by 04.10.2016 / 04:44
2
answers

Span Element Front

I have the following column of a table: <td style="font-size:10%"> <p class="list-group-item-text"> <a href="@Url.Action("Cidade", "Cidade", new { cidadecod = item.cidadecod, contratocod = item.contratocod })" class=...
asked by 08.09.2016 / 21:59
0
answers

error while executing view asp.net mvc

When I run the project and call view it is returning the following error: The view at '~/Views/Produto/List.cshtml' must derive from WebViewPage, or WebViewPage<TModel>. View Code: @using Domain.Entidades @model IEnumerable<Pro...
asked by 07.07.2016 / 06:26
1
answer

Show DataReader return date in View?

I have a form where I have in View: <div class="col-md-2 form-group"> @Html.LabelFor(x => x.CLIENTEDESDE) @Html.TextBoxFor(x => x.CLIENTEDESDE, new { @class = "form-control", type = "date" }) @Html.ValidationMessageFor(...
asked by 15.06.2016 / 17:34
1
answer

Error rendering PartialView in a View

I have a View and inside it I want to render a PartialView . What happens is that the partial is of a different model , but that has a relationship between them. I want to show a partial as if it were index , where I show everyth...
asked by 19.06.2016 / 00:55
0
answers

MVC: Passing a Javascript value to a Session

How do I make a sort of "mix" between javascript and razor? I have a page that logs in through facebook, I can login and would like to assign the return of the javascript function that brings the user name, my page session. More or less like...
asked by 23.08.2015 / 05:55
1
answer

DropdownList with checkbox

Would anyone know a way to make a DropdownList with checkbox ? I have the following DropDownList: @Html.DropDownListFor(model => model.CD_AFFILIATE, new SelectList(@ViewBag.list, "CD_AFFILIATE","NM_AFFILIATE"), new { @class...
asked by 02.07.2015 / 15:30
2
answers

How to correct this error, and I was able to see this other table in my view?

I need to make a select with two tables and throw the result to a PagedList . But when I do the query, it returns the error:    Can not implicitly convert type 'PagedList.IPagedList' to 'PagedList.IPagedList
asked by 09.06.2015 / 15:22
1
answer

Show content in textboxfor

I would like to know how to display the value of a property within a textboxfor . I have the following code: @model Calcular.Models.Conta @{ ViewBag.Title = "Somar"; } <h2>Somar</h2> @using (Html.BeginForm("Action", "Conta...
asked by 23.03.2015 / 20:06