Questions tagged as 'asp.net-mvc'

1
answer

Date formatting works in Chrome and does not work in Internet Explorer, or vice versa, with MVC C #

If I use it in the template [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd'/'MM'/'yyyy}")] public DateTime data { get; set; } It works fine in IE but does not work in Chrome . When I open the edit form, instead...
asked by 18.05.2015 / 17:10
1
answer

How to reload the page after the message close using Hubspot Messenger (). run ()?

I'm doing an MVC app and need to do a reload after the message close (successful or not). How can I do this? CodePen for testing: link HTML: <button class="btn btn-danger deleteButton" id="btnAction" data-url="https://jsonplacehol...
asked by 09.01.2017 / 18:05
2
answers

Translating Identity en

I'm using Identity in my application MVC 5.2.3 Microsoft.AspNet.Identity.Core 2.2.1 I also installed the translation package for it Microsoft.AspNet.Identity.Core.pt-br 2.2.1 Microsoft.AspNet.Mvc.pt-br 5.2.3 Microsoft.Owin.p...
asked by 01.09.2017 / 19:59
1
answer

My site does not find the Bootstrap and Jquery files

I created a site ASP.NET MVC with Code First and made the first publish of the application, the database and the site were created, the problem is that the site does not find the files css and Jquery of Boot...
asked by 10.10.2016 / 16:18
1
answer

Could not create a constant value of type 'System.Object'. Only primitive types or enumeration types are supported in this context

I'm trying to make a query in LINQ, and are returning the following error message:    A constant value of type 'System.Object' could not be created. Only primitive types or enumeration types are supported in this context A structure is re...
asked by 02.03.2016 / 15:25
3
answers

How to select User Digital Certificate in Web applications?

I'm developing an ASP.NET MVC5 project to demonstrate electronic invoices. During the process of searching for notes, manifestation or download, I access the webservice of the Internal Revenue Service and I need to send the digital certificat...
asked by 30.12.2015 / 13:57
1
answer

Doubt with mvc list editing, using checkbox and editable field

I'm a little doubtful and I barely know where to start, so I'm going to turn to college students: I have a page with% as% (I am using asp.net-mvc ). It has a list, assuming the elements are A, B, C, D, E. The value of these elements comes fr...
asked by 29.06.2015 / 17:26
2
answers

How to organize the return of data in a ListT?

I have a wcf that returns me some information, I would like to bring them organized, how could I do this? I would like to return data like this: Atthemomentitislikethis: I'm doing this: public List<V_PRODUTOS> GetProdutos(string c...
asked by 08.06.2015 / 05:11
1
answer

How does session per request work?

There was an idea among developers to use the Session per request pattern - Session per request. Researching the subject, I found some topics in the OS that generally said that the indication was for ORM frameworks. Little practical exa...
asked by 02.02.2017 / 14:06
4
answers

How do I make a DropDownList linked with a model property?

I have my class: public class Topico { public int Id { get; set; } public string Nome { get; set; } public string Observacao { get; set; } } and my SubTopic class public class SubTopico { public int Id { get; set; } pu...
asked by 27.05.2014 / 23:47