Questions tagged as 'asp.net-mvc'

1
answer

Monetary values with asp.net MVC

I am having difficulty working with monetary values (decimals), using web application, asp.net MVC , with database Mysql . The problem is that I can not edit decimal values, such as: 53.50 , or 53.50 . I can not save using dot, not comm...
asked by 09.05.2015 / 05:33
1
answer

How to use login in different areas in asp.net mvc

I'm creating an application, where it has more than Area , which is restricted. (as shown in the image below). Myquestionishowtologinindifferentareas?Details:SincetheusersintheAdminareaandintheSystemareaaredifferent,each   oneissavedto...
asked by 04.11.2016 / 19:27
4
answers

Updating data with entity framework

In the project I'm developing, MVC5, Entity 6, I just can not seem to update the data. The Code: zyon.TB_Cliente.Attach(cliente); zyon.Entry(cliente).State = System.Data.Entity.EntityState.Modified; zyon.SaveChanges(); That works when I...
asked by 27.11.2014 / 17:57
2
answers

Saving the logged-in user ID

I am using it in my Windows Authentication application. I have a controller where the user must register their professional experiences. However, the way the application was made, I need every time I enter a new data, put the license number or I...
asked by 11.06.2014 / 14:27
1
answer

DropdownList with unique values MVC

My class Galeria has a foreign key with Album because there is a 1-n relation and each picture in the Galeria item has a Album . Given that, in the CMS that I created I give the possibility of the user to relate a phot...
asked by 04.08.2014 / 20:54
1
answer

Delete user session in ASP.NET MVC with [Authorize]

I have a web system developed in ASP.NET MVC 4. One of the features is user management. A CRUD of users. My login method is as follows: [HttpPost] public ActionResult Login(LoginViewModel loginViewModel) { if (_loginSer...
asked by 31.10.2016 / 15:04
1
answer

Disable IIS Caching

I'm having problems with IIS cache (I believe the problem is it) , whenever I make any changes to the database, the changes do not happen on the site, / p> Changes only appear when I turn off and turn on IIS. Attempts I added this comma...
asked by 11.01.2017 / 14:49
1
answer

How to save in 2 tables at the same time

Hello, I'd like some help. I have this method to save the data into two tables. public void SalvarLocacao(Carrinho carrinho, Locacao locacao) { Item items = new Item(); foreach (var item in carrinho....
asked by 29.09.2016 / 08:20
1
answer

Send multiple values from my CheckBox to an Ajax call

I have a button that when I click calls my ajax function. I want to send the values that were selected in my checkBox. But what comes to my controller is just the first value of my CheckBox.    Sunday And you should send all values selecte...
asked by 15.04.2016 / 13:04
1
answer

Pass object to WebService

I'm starting development using WebService + Windows Form and I made some silly methods passing parameters, however, I came up with the idea of passing an object as a parameter where the Web Service would return me a string either concatenating e...
asked by 01.05.2016 / 18:02