Questions tagged as 'mvc'

1
answer

ReportViewer does not load in Internet Explorer 11

I'm trying to open a report with ReportViewer on Internet Explorer 11 and it does not open completely. This occurs with the application posted to an application server, but when I run the local report on my development machine with...
asked by 09.01.2017 / 14:09
2
answers

Prevent Seed from duplicating data

I'm using this code in Seed to generate values in my table, so I do not have to type in the database, when I change something in my code and need to give an update in the database, so it is not running, , the code below is for adding or updating...
asked by 08.11.2016 / 02:22
1
answer

Sendgrid V3 Example with Attachment

I need an example code to send email with attachment using sendgrid Web API v3. using (var client = new HttpClient()) { client.BaseAddress = new Uri("https://api.sendgrid.com/"); client.DefaultRequestHeaders.Accept.Clear(); client.Defaul...
asked by 19.07.2016 / 19:28
1
answer

How to generate excel batch files in MVC?

I need to generate separate Excel files. I tried doing a foreach foreach (var item in listExtracts) { DataTable table = Mytable; var grid = new GridView { DataSource = table }; grid.DataBind();...
asked by 05.05.2016 / 13:57
1
answer

Best organization of my project [closed]

My project has the following packages in its structure: br.com.xxxx.model : Which contains the entities. br.com.xxxx.business : That contains the DAO interface together with the classes that implement it. br.com.xxxx.controle : Contai...
asked by 29.09.2016 / 13:50
3
answers

Making queries in a view in the MVC standard is bad practice?

I know that most PHP frameworks use the MVC pattern. Where expensive thing (theoretically) should stay in its place. For example, controllers are responsible for the request and stuff, models are database abstractions, and view is the...
asked by 15.03.2016 / 14:24
1
answer

Send form data by Ajax in MVC project

To begin with, I'll give you a little example of the system for you, my directory structure is as follows: >leganto(raiz) ---> controller -------> ControllerGlobal.php -------> OutrosControllesDeObjetos ---> model -------> M...
asked by 07.04.2016 / 20:24
2
answers

Error uploading media Codeigniter

When attempting to upload any media, the following error always appears: O TIPO DE ARQUIVO NÃO É PERMITIDO . But yes, I put jpg , png , gif , I already changed only to pdf and error persists! Here are codes: CON...
asked by 19.11.2015 / 13:40
1
answer

Load table from view with JSON object

I have the following code in my controller : public JsonResult List(string nome){ IList<ClienteDto> clientes = string.IsNullOrEmpty(nome) ? _repositoryCliente.Get() : _repositoryCliente.GetByName(nome); var mo...
asked by 26.11.2015 / 17:56
1
answer

disappear a button

I have a code where it creates a table if it has a record in the database. In this table, in the last column there is a button that when clicking opens a more detailed screen on that row of the table. I need to make this button appear only in th...
asked by 21.07.2015 / 19:40