Questions tagged as 'asp.net-mvc'

4
answers

Get logged in to Asp.Net Core 2.0

How do I get the User that is logged into the class? I'm trying this way: public class Teste { private readonly UserManager<Usuario> _userManager; public Teste(UserManager<Usuario> userManager) { _userMan...
asked by 07.06.2018 / 20:11
2
answers

How to refresh after updating the new video?

In my vision, I have an old video, when I upload new video, I want to automatically reload a new video after "upload". View : <div id="embed_video" class="embed-responsive embed-responsive-16by9"> <video class="embed-responsiv...
asked by 24.10.2016 / 14:43
1
answer

Bring selected combo box filled manually

I'm having trouble creating a combo of "Enabled" and "Disabled" by passing the value of the bank to bring it filled. In my controller , I created the following code: InmyView,followingcode: Theresultisthat,withthecoderunning,itwillalwaysapp...
asked by 03.08.2015 / 14:11
1
answer

The method or operation is not implemented error

When I add a record to my Include screen, this error appears to me. What can it be? Service public void AddItem(Test item) { var codigos = this.context.Tests.SingleOrDefault(x => x.Codigo == item.Codigo);...
asked by 21.08.2015 / 15:19
1
answer

How to call column name from another class in the MVC WebGrid

I have this view Listar.cshtml @model IEnumerable<ODM> @{ var idGrid = "grid" + this.ViewBag.IdParameters ?? string.Empty; var grid = new IBM.Web.Helpers.WebGrid(id: idGrid, rowsPerPage: this.RowsPerPage, ajaxUpdateConta...
asked by 17.08.2015 / 21:55
1
answer

Error trying to pass a list of controller to view ASP NET MVC

Good morning, I'm new to development, and I'm having trouble passing a list of a controller query to a view. I gave a researched and all the forms I found did not help much, if anyone can help me, I'll be grateful. Follow the controller:...
asked by 20.08.2015 / 13:22
1
answer

Version of MySql.Data.Entity compatible with MySql 5.6

What are the versions of: MySql.Data MySql.Data.Entity EF Compatible with version 5.6 of MySql?     
asked by 24.07.2015 / 06:02
1
answer

More performative way to return data to View

In a view where we return a list of objects, and we need to demonstrate the quantity, such as a small report, using some conditions. What is the most performative way to return data to view ? Explaining better. When we return an obj...
asked by 24.07.2015 / 19:40
1
answer

Application pool hangs and does not return application

I have a MVC4 system in .NET 4.0 that is running in IIS 7. It generates the following error in the Event Viewer: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/2/2015 11:23:25 AM Event time (UTC): 9/2/...
asked by 02.09.2015 / 16:38
1
answer

LazyLoad even putting .include (t = t.Model)

I'm having the error:    Exception Details: System.ObjectDisposedException: The ObjectContext   instance has been disposed and can not be used anymore for operations   that require a connection. When I call: @Html.DisplayFor(modelItem =...
asked by 29.04.2016 / 18:54