Questions tagged as 'mvc'

0
answers

Error in Linq query

I have a DropDownList with which I want to bring the records according to the item selected, when I click on the search button I get the following error:    The entity or complex type 'DB_ALMACENModel.Product' can not be   const...
asked by 18.07.2018 / 06:10
1
answer

I do not receive values from SELECT FROM but from INSERT INTO and if the record exists (MVC, PDO, MYSQL)

Hi, I'm working with PHP and MySql with PDO and the model view controller (MVC) but I have an error when trying to do a SELECT * on the model side. My intrigue is that it works when I do INSERT INTO and when it's a SELECT. what I do is a validat...
asked by 04.07.2018 / 18:39
2
answers

Redirect to an action or action Javascript PHP

I have this doubt, I want to make a validation if the condition is met, show me an alert and redirect me to a specific page but since I am working in MVC, I must do it through an action: the code I have is the next: <script type="text...
asked by 04.07.2018 / 15:10
1
answer

When inserting an array in Sql Server the assigned Id messes up the array [closed]

Sorry for the title but I did not know how to describe the situation. The situation is as follows: I have a project in VS2017, asp.net core where I have a method that enters an array into the database. It is an array of a table that I created wi...
asked by 06.07.2018 / 04:24
0
answers

Help generating a table to capture information wn c # mvc

The problem that I present is the following. 1.- In a View I have to capture fields for two models, then what I do is the following. in the index actionresult, in order to generate the model I occupy the following. var user = db.MtoUsuar...
asked by 26.06.2018 / 16:38
0
answers

Open Form of another project C # (mvc)

I have a question if it is possible to do it, I am doing a small project in C # following the MVC pattern, it is organized in the following way: Project 1 (library of classes): Access to data Project 2 (library of classes): Controller (bri...
asked by 24.05.2018 / 18:24
1
answer

API REST WITH Spring Boot JPA AND HIBERNATE

I have a project where we are doing a restfull service with: Spring boot JPA JDBC WEB SPRING (MVC) Hibernate Well currently I do not have much experience with hibernate in the onetomany relationship. The detail is that for exam...
asked by 01.06.2018 / 08:20
1
answer

Create function to query the existence of data in a generic way

public function consultar_existencia($campo) { if ($this->request->is('post')) { $this->autoRender = false; $this->layout = false; $this->loadModel('Client'); $existe = $this-...
asked by 19.06.2018 / 17:32
0
answers

Physical scanner connect to an asp.net project

Buy a scanner (barcore scanner MJ-8200) and I would like suggestions to use it within a project, either asp, or mvc, with some script, any suggestions thanks.     
asked by 16.05.2018 / 16:31
0
answers

Send a dataset to a view in MVC 2

PD: Lack of information: what I want to show in the gridview are only the data that I insert into the database from the excel I do not want to show ALL the records of this one. good afternoon community my question is the following it turns out t...
asked by 07.05.2018 / 20:24