Questions tagged as 'asp.net-mvc'

1
answer

Sort by Reflection with GetProperty

I have a generic class with a method that needs to sort a generic object. However, giving error saying that it does not recognize the Reflection GetProperty method, since lambda can not translate. How can I do this sort order logic? publ...
asked by 24.06.2017 / 07:41
1
answer

Error creating a condition in the Html.Raw of the WebGrid

I'm trying to put a condition on a WebGrid line and the following error occurs: Cannot convert lambda expression to type 'string' because it is not delegate type EventhoughI'mbasingmyselfonthispost# with credits from MeAjudaSilvio I...
asked by 14.06.2017 / 05:51
1
answer

Changing model value by JQuery and Asp.Net MVC?

I have a model where I have the attribute status , this attribute is a int that I define values. In my form I have 2 buttons: gravar e publicar and gravar , each of these buttons would be a status value, in which case...
asked by 26.05.2017 / 19:32
0
answers

Error in @ Scripts.Render ("")

I can not render bootstrap, scripts, and so on, since my @Scripts.Render and @Styles.Render does not work. The reference System.Web.Optmization is included in the project. See the image with the reference and the rende...
asked by 24.05.2017 / 21:15
0
answers

Page broken when debugging in Chrome

debug of an ASP.NET MVC project in Visual Studio targeting the Chrome browser , it already opens the broken page: This only occurs when the browser is closed. When it already has an open flap, it works perfectly. Why does this hap...
asked by 02.06.2017 / 21:04
1
answer

Queuing Problems for Asynchronous Controllers

Hello, I'm having some problems regarding Asynchronous Controllers because the server's request queuing continues to be blocked for the client during some operation. The routines work exactly, I can execute even parallel functions (for exam...
asked by 18.05.2017 / 03:06
0
answers

The specified string is not in the format required for an e-mail address

I'm doing a routine and I'm not succeeding I'm having this error and in web.config I left it like this <system.net > <mailSettings> <smtp from="[email protected]"> <network host="smtp.gmail.com" password="******" port=...
asked by 25.05.2017 / 20:52
2
answers

How to publish App in Visual Studio 2017 with ASP.MVC 5

Good afternoon, I'm testing ASP.MVC 5 and I made a test app, I published it in visual studio exporting to a directory and tried to upload it in IIS in Windows 10. I did all the procedure described on the site ASP and trying to open appears...
asked by 25.05.2017 / 22:06
1
answer

Validation with ASP MVC

I tried to use [StringLength (4)] but when it executes the error because it can only use character, I looked for some solutions but so far nothing.     
asked by 25.05.2017 / 01:37
1
answer

Log in with the Facebook user

How do I do a routine in C # or Razor on my site, to instead of the guy only by the login page, have the option to log in for the facebook user? I'm not asking for ready code, just how I do it.     
asked by 16.05.2017 / 23:32