Questions tagged as 'asp.net-mvc'

1
answer

Error initializing database on server in Asp Net Mvc!

I have a finished application developed in C # using Asp Net MVC. On my local server the application connects to the database that is on the server of the company that works, so when placing the application to run in the Host Network provider is...
asked by 16.05.2018 / 20:44
1
answer

SimpleInjector: The configuration is invalid. The type is directly or indirectly depending on itself

I have the following problem when applying the SimpleInjector container in a simple application: The configuration is invalid. The type BookAppService is directly or indirectly depending on itself. The cyclic graph contains the following typ...
asked by 31.03.2018 / 00:25
1
answer

How does the Entity Framework Track objects?

I have read a number of such questions, but I find my very specific question: How does the entity framework "track" objects? That is, as when loading an object and even without sending the object back to the context class, just calling contex...
asked by 06.03.2018 / 15:54
1
answer

Ninject Not creating the NinjectWebCommon class

I'm installing the ninject package , but the NinjectWebCommon class is not automatically created in the App_Start folder. Does anyone have a solution? I'm installing the Ninject.MVC5 version.     
asked by 29.01.2018 / 16:43
1
answer

Checkbox does not load data returned in json

I'm having trouble loading a checkbox ( <select> ) using C# MVC with Json . The method returns the complete list with objects, but does not load in the select box. My controller: public ActionResult SelecionarRep...
asked by 13.03.2018 / 18:40
2
answers

Create Database using Fluent Nhibernate

Is there any way to create a new database directly from my application? I'm using Asp.Net MVC5 C #, Fluent Nhibernate and PostgreSQL. Note: I can already access my tables through the application, what I need is to generate a new database thro...
asked by 10.01.2018 / 18:43
1
answer

Log off and redirect user to login screen ASP NET MVC / C #

I'm looking for a way to end my session and redirect the user to the login screen when my system TimeOut . I tried to use Session.Abandon () according to some examples that I researched. But I do not know what I'm doing wrong. below is my co...
asked by 18.01.2018 / 11:57
1
answer

I'm trying to do a dropdown in html

I'm trying to implement a DropDownList in a View of mine that is for form, but I need the value selected to go to ViewBag . This is my View where there is " Selected Car ", it would need to transform my from Textbox...
asked by 02.01.2018 / 19:29
1
answer

How to insert / save RTF string - ASPxRichEdit

In my application, I search the database for a string that contains RTF and needs to load it into ASPxRichEdit. And, when necessary, save the contents of the ASPxRichEdit into an RTF string to store in the database. How can I do this in C #?...
asked by 26.01.2018 / 14:35
1
answer

Make the current value subtract from the previous value

I'm trying to make a supply system, I need it to take the last km registered in the bank of a specific vehicle and be subtracted by the new one that will be inserted I'm trying to do this, but it does not show any error, but does not subtract ....
asked by 11.12.2017 / 20:39