Questions tagged as 'mvc'

1
answer

Can not open database "Real Estate" requested by the login

Good morning people. Before formatting my pc a few days ago I was doing a project in MVC C # and everything worked perfectly, now it turns out that I get the following error:    Can not open database "Real Estate" requested by the login. The...
asked by 05.02.2017 / 15:39
2
answers

Register registration MVC

I am working on a MVC project public class EmpleadoController : Controller { private readonly SdEmpleado _empleadoRepository = new SdEmpleado(); // GET: Empleado public ActionResult Index() { return View(); }...
asked by 05.09.2016 / 06:07
1
answer

date range datepicker c #

I have a problem, I need to filter two dates from a table in the database and I could not, to see if they can guide me, it's in c #, my controller public ActionResult Report(DateTime? start, DateTime? end) { using (var db = new bd_...
asked by 20.12.2018 / 20:18
1
answer

In a Model (MVC) query a View (SQL) or consult several tables

Good morning. I'm adapting my project to MVC and I have a question, in a form I need to recover the data from 3 tables. I have an already created (SQL) view where I can create the getRegistration () method of the 'Dao Member (Data Access Object)...
asked by 20.10.2016 / 13:12
1
answer

Query with PHP PDO and SQLServer

I am trying to make a query with PHP to a database in SQLServer with ajax and MVC but when I execute the query it throws me the following error sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given...
asked by 02.12.2018 / 07:59
1
answer

ERROR: Another SqlParameterCollection already contains SqlParameter

I'm using SqlParameter, when I use it twice I get this error: {"Otro SqlParameterCollection ya contiene SqlParameter."} Here I use it the first time: SP2 using (ApplicationDbContext db1 = new ApplicationDbContext()) {...
asked by 28.10.2018 / 01:13
1
answer

Highlight text in the cell of an html table when clicking

The problem is that I have a html dynamic table, and I want to put in bold the text of a specific cell when I click on the row. try using jQuery, but it's still a bit complicated for me Does anyone know how you could do that? Excuse me if it'...
asked by 24.10.2018 / 20:05
1
answer

GetUserAsyn returns null [net-core Identity]

Hi, I have a net core mvc project, where I use Identity for users, registration, login, etc. My problem is that when I log in I redirect it to the Index of article, where I want to take the user logged in with await _userManager.GetUserAsy...
asked by 02.09.2018 / 05:12
1
answer

I have a question about this error in order to make an insert in the form, the request line marks error and I do not understand why [duplicated]

type Informe de Excepción mensaje Ha sucedido una excepción al procesar la página JSP /Cliente.jsp en línea 56 descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento. excepción org.apache.jaspe...
asked by 02.09.2018 / 08:11
1
answer

How to fill an Html.DropdownListFor ()?

I need to fill Html.DropdownListFor() in my view through razor, so far I have the following, two classes where I get the data that I need to recover from my db plus the controller by GET to recover the data and send it to the seen...
asked by 03.09.2018 / 16:23