Questions tagged as 'asp.net-mvc'

1
answer

How to create signature in asp.net with pagseguro

Hello, I've researched all over the place and I have not found how to integrate a signature into my system in ASP.NET MVC with the pagseguro. I used this code and my feedback is not working when I add this preapproval! //*********************...
asked by 08.07.2016 / 19:04
1
answer

Update a label with dropdown text

In my label all groups appear:    ABC There should only be one group chosen by dropdown, Example:    A JS: $("#GrupoID").change(function () { document.getElementById("grupoupdate").innerHTML = $("#GrupoID").text();...
asked by 21.03.2016 / 14:03
1
answer

Validating form with DataAnnotations in MVC

I'm trying to validate forms using DataAnnotation, I tried directly on model or my viewmodel and none of them works. View Model: public class CieloViewModelTransacaoPartial { [Required(ErrorMessage = "Token é obrigatório")...
asked by 02.05.2016 / 16:57
1
answer

Insert via EntityFramework "IDENTITY_INSERT is set to OFF" error

I have several models and for some reason one of them has the following error: Cannot insert explicit value for identity column in table 'tbl_boleto' when IDENTITY_INSERT is set to OFF. I remember that I have already entered a record, but...
asked by 03.03.2016 / 13:17
1
answer

A potentially dangerous Request.Path value was detected from the client

I'm trying to submit an action with a parameter like this: <a href="@Url.Action(@"Create/?reference=01/04/2016", "Cobranca")" But it generates a URL like this: Cobranca/Create/%3freference%3d01/04/2016 And causes the error: A pot...
asked by 02.03.2016 / 14:42
1
answer

Middleware with ASP.NET MVC and .NET 4.5

Is it possible to add some middleware routes that will, for example, allow or redirect a user to access the admin panel, which if not authenticated will be redirected to the login area? as in the example below (In PHP / Laravel): Route::get(...
asked by 24.02.2016 / 20:20
2
answers

ASP NET MVC - Download html table

I have a view that has a whole table structure, typing the path of the view in the navigation bar I opened the table. I would like to create a button that would drop this table and save it as .xls Can someone help me? I've already looked for it...
asked by 10.03.2016 / 20:40
1
answer

English Validation Messages in IIS - Asp.Net MVC

I published my application in IIS, however, validation messages are appearing in English. I have already installed the Asp.Net MVC package in Portuguese in the link application: link and set up globalization: <configuration> <...
asked by 11.02.2016 / 23:44
1
answer

JsonResult request with decimal type

Because when I send a request with a decimal type (3) the "Point" is deleted, see in the INSS field which is a decimal value, for example: I type 1,69 when doing a bind in the model the point is eliminated and transformed into 1690...
asked by 31.01.2016 / 20:58
2
answers

How do I render a partialview ASP MVC

I have a View that has a div and inside it a partialview EX: <div> @Html.RenderPartial("MeuPartial"); </div> No page load renders right, however, I needed it rendered every time I clicked a button....
asked by 14.04.2016 / 07:20