Questions tagged as 'asp.net-mvc'

1
answer

How to send parameter to ActionResult?

I have ActionResult Login that validates my user and saves the data in a Session, if everything is ok, redirect to ActionResult BPAC : [HttpPost] public ActionResult Login(string pUsuario, string pSenha) { oUsuario = modelOff....
asked by 05.09.2017 / 20:06
1
answer

Catch a list in the View and move to the C #

I have 2 lists that come from the database, one from technician and one from suppliers. I can not get it from View and switch to Controller. And how to receive this list in the controller Followthecodebelow:ControllerpassinglisttoviewasViewB...
asked by 27.07.2017 / 03:22
1
answer

How to organize the Theme Directory

I have a question about how to split CSS and Javascript files into my project directory ASP.NET I got the theme METRONIC , the theme directory has a folder where all css and js files are called " asset...
asked by 03.08.2017 / 20:46
1
answer

Migrating from WebForms to MVC, what is the best way to store and manipulate the data of a logged-in user?

For years I have worked with C # systems in WebForms , but by necessity I have migrated my development goal to mobile applications with Xamarin and MVVM . Now in parallel I'm developing web systems again, but in MVC standards. But one a d...
asked by 19.06.2017 / 22:21
1
answer

Receiving face in View

Hello! I'm trying to get a filter parameter in my view with the following code in Controller : public ActionResult Cadastro(int? idParente) { var tab_Documentos_Parente = db.Tab_Documentos_Parente.Where(campo => campo.Id_P...
asked by 17.08.2017 / 16:41
1
answer

Pass Facing to Controller

I've been looking for a solution for several days but I have not found anything useful to me. The problem is this, I have a Conttroller that gets the data from the View , so far so good, but when I'm going to capture this data it only capture...
asked by 07.06.2017 / 17:02
1
answer

Display Name with Razor

Do I have this case in my project? public enum TipoValorCalculoComissao { [Display(Name = "Percentual")] Percentual = 1, [Display(Name = "Valor")] Valor = 2 } And I would like to put these values in a combo, but I applied th...
asked by 03.06.2017 / 14:47
1
answer

Write an HTML - possibly dangerous value Request.Form

I have a TextAreaFor that receives a content in Html, when trying to write I have an error, I added in web.config the pages validateRequest="false" I already tested the insert with plain text and it works, only with HTML it does not work [...
asked by 05.06.2017 / 19:57
1
answer

Error converting HTML to PDF using XMLWorkerHelper

While exporting the HTML file to PDF using iTextSharp and XMLWorker error occurs in some situations saying that certain tag is not closed and searching I found this post My application queries an SQL table from where it returns saved HTML...
asked by 29.05.2017 / 18:49
1
answer

Change the color of a td tag of a WebGrid mvc

This is WebGrid and you need to change the background color of Celula filled "IN PROCESSING": to Red : CSS<styletype="text/css"> .grid { margin: 4px; border-collapse: collapse; width: 100%;...
asked by 24.05.2017 / 14:59