Questions tagged as 'asp.net-mvc'

1
answer

Kaspersky Anti-Virus blocking Modal Bootstrap [closed]

My antivirus blocking when opening modal, modal is not even displayed right. Follow the code below: Click event: $("#cartoes_click").click(function () { $('.ModalContent_Cartoes').load("/Payment/_Cartoes_Fisica", function () {...
asked by 31.01.2018 / 22:41
1
answer

How to update a User entity that is converted to application?

Code: public int UpdateUser(User usr) { db.Users.Attach(usr.ToApplication()); db.Entry(usr.ToApplication()).State = System.Data.Entity.EntityState.Modified; return db.SaveChanges(); }    Error:   "Attachi...
asked by 23.06.2016 / 15:06
2
answers

Pass parameters via jquery to my model

I always passed paramatros to my controller like this: url: '/Minha_Controller/Minha_Função', .... Now I need to pass parameters directly to My Model and I do not know how to do it. I have this model: MontaArvoreAcao.cs. This does not work,...
asked by 29.09.2014 / 21:32
1
answer

How do I get the value of the parameter sent by a view and persist it in the database?

When I trigger my action address, it gets codigoCliente sends by parameter master/CadastrarEndereco?codigoCliente=1011 . How can the chosen client address persist? My actions : public ActionResult CadastrarEnderec...
asked by 19.11.2014 / 16:29
1
answer

"Invalid column name" MVC

I have a table in a DbContext , I change its name, I update the database and when I run I am redirected to Visual Studio with the following error message:    Invalid column name 'SetorId'. Note: The table name is Set_Id. I...
asked by 06.06.2016 / 21:49
1
answer

Which ASP.NET 4.5 MVC 4 Hosting Reseller Should I Use? [closed]

Would you like to refer to RESELL of hosting with servers in Brazil, reliable, with infrastructure that supports ASP.NET Framework 4.5 and MVC 4?     
asked by 30.06.2015 / 04:22
1
answer

ViewBag losing reference after submitting form. Asp.Net MVC

Hello, I have two ViewBags that are storing a list each, I load them into a form to make a select box, next to them has a Remove button. So far so good, but when I click the first ViewBag button, a reference loss error occurs, the second ViewBag...
asked by 29.05.2014 / 23:13
2
answers

2 devices connected to the same address via Wireless

I'm using Visual Studio 2017 to run application. (ASP.NET MVC) How can I make another computer connect to the same url address: 192.XXXXXXXXXXX:56987 . That is: 2 computers working at the same address, where I can debug computer A an...
asked by 22.05.2017 / 23:48
1
answer

lambda expression gives conversion error

This is my linq with lambda: public JsonResult CarregaDescricaoRede(string _tipo_rede, string _uf, string _cidade) { var resultado_rede_descricao = (from _pdv in db.PDV .Where(r =...
asked by 30.09.2014 / 16:26
1
answer

Can you make DropDownList "readonly" equal to TextField [closed]

I understand that DropDownList is already readonly , since I can not change the values of the options, however I need to maintain the uniform behavior of the screen. In query mode I can assign a readonly to TextBox and the te...
asked by 10.01.2017 / 15:44