Questions tagged as 'mvc'

1
answer

Validate Radio Button JavaScript + MVC Razor

I need to validate if all of my Radio has been checked, can you help me validate this in JS? My cshtml is mounting the radio's through a List < > of the Model. <div id="checklists" class="row"> <div class="col-md-6">...
asked by 26.10.2017 / 16:01
2
answers

but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable'1 [WebApplication4.Models.modelExample]

I can not perform enumeration, I have already switched to another information reception in the View but I do not know how to correct it, I checked other forms in StackOverflow but I did not understand. Model: namespace WebApplication4.Mod...
asked by 25.10.2017 / 15:06
3
answers

How to anchor a redirect in APS.NET MVC

How can I send the user to a certain page block by passing the id in the url. For example: link , how to pass this type in ASP.NET MVC using return RedirectToAction . The line of my code looks like this: return RedirectToAction("Ind...
asked by 21.06.2017 / 22:09
2
answers

I can not capture ROTA without using index in URL

In short, it only works if I put index.php in the URL. It looks like it's in .htaccess, but I do not know where. I would like to know which setting is incorrect or what I could do to find out my error. Data: Debian (9) Apache / 2.4.25 (Debian...
asked by 28.10.2017 / 18:17
0
answers

Web Application in ASP.NET MVC CRUD with MS access

I'm doing a job, and I need to do a web application for tracking tasks. The requirements are those of the topic. It is a web application made in ASP.NET MVC and access database creating a CRUD. I'm having difficulty going through the connect dat...
asked by 29.10.2017 / 00:51
0
answers

How to update only one property of an object using OutputCache in ActionResult

Hello, everyone. I have a problem that I do not even know if there is a solution like this. I have an ActionResult that returns the contents of a chart in Jquery. The result of this graphic will always need to be cached so page does not...
asked by 27.09.2017 / 19:11
0
answers

success: function ajax call function from another javascript

function paginacao_tabela_clientes_status(idpessoa){ $.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/clients/tabela_clientes_pedido_entregue', data: {idpessoa: idpessoa},...
asked by 30.09.2017 / 08:17
2
answers

How to use two checkboxes in a C # mvc view to choose the type of query?

Controller.cs public ActionResult pesquisarCliente(string _codigo) { var r = db.Pedido.AsQueryable(); if (!string.IsNullOrEmpty(_codigo)) { r = r.Where(n => n.Cliente...
asked by 17.09.2017 / 16:14
0
answers

Problem using LabelFor Razor MVC 3 + C #

I have the following error in my View : when I pass @class="classe boot-strap" is not used, even passing View inside parameter @class it insists on using 'text-box single-line' , code snippets. Code Razor...
asked by 18.09.2017 / 21:51
1
answer

Is there a services package in the MVC standard?

Is there a service package in the MVC standard? Would it be an MVCS? For example, I have a ConnectionFactory class - which serves to connect to the database. That would be a service. Where do I put this in the MVC pattern? Would it be in the...
asked by 16.10.2017 / 16:33