Questions tagged as 'razor'

1
answer

Use / Escape @ in CSHTML view

I'm having a jQuery code on the CSHTML page and I'm having trouble validating the email with a regular expression since @ is a Razor command in .NET. How do I resolve this problem? Follow the script: $("#formEsqueceuSenha").submit(fu...
asked by 11.09.2015 / 14:55
1
answer

Make a button to add properties in a list using the BeginCollectionItem C #

I have a people register and I need to create a button to add multiple phones and send to my controller, I'm using BeginCollectionItem, based on my other question Form using BeginCollectionItem gets null viewModel in foreach just missing the b...
asked by 14.08.2015 / 22:04
1
answer

Master Page does not appear in the list when I try to associate it with a view

I'm using Microsoft Visual Studio 2013 and I created a C # ASP.NET MVC 4 project. I created a Master Page in the Views directory, called Modelo.master . Then I created a Controller in the directory Controllers , and again a...
asked by 15.10.2014 / 18:23
2
answers

What is ASP.NET Core Blazor?

Looking at the list of news that is in Visual Studio, I came across something talking about ASP.NET Core Blazor, and apparently has almost nothing talking about, I found very little material, and in English, but even using the translator was ver...
asked by 04.04.2018 / 05:01
2
answers

Pull data to an input when typing in the field

I need a script that, when I type a word inside a field, it pulls all the data that is related to that word, like an example Facebook, in the search bar, when we will type something it already comes bringing everything that is related to it, cou...
asked by 03.03.2017 / 20:42
2
answers

Error passing values to @Html.DropDownList

My Controller : public ActionResult AssociarDependencia(int codigoMilestone, int codigoAtividade) { try { using (CPMDatabaseEntities db = new CPMDatabaseEntities()) { List<Ativi...
asked by 17.10.2015 / 22:06
1
answer

DropDown Waterfall

My problem is to pass values to controller at the time of an update. I can make the cascading all right. Follow my code. First DropDown : @Html.DropDownList( "idCanalIndicadoresMassivo", ViewBag.idCanalIndicadoresMassi...
asked by 27.11.2015 / 15:27
1
answer

Select only one RadioButton with Razor

I have 2 Radio Buttons, and I would like it when I tagged one, the other unchecked. Here's what's happening: Code:@Html.RadioButton("teste", "teste", true) Teste @Html.RadioButton("concessionaria", "concessionaria", false) Concessionária...
asked by 23.06.2014 / 15:15
1
answer

How to export an HTML / C # (Razor) page to PDF?

I have some simple tables and need to export them to PDF. I found the itextsharp library, but in the compressed file there are many folders and files and I do not know how to add the reference in my application. I would like help exporting, e...
asked by 26.03.2014 / 22:20
2
answers

ASP.NET MVC 5, I can not get set when I go into edit

I have a service class and I have the User responsible for the service, which is a user of IdentityUser .    Remembering that I changed the String Identity Id to "Int", just that. I can usually register, however, when I edit, it lis...
asked by 28.12.2017 / 15:34