Questions tagged as 'asp.net-mvc'

1
answer

Problem in a dropdown

I have a very strange problem with my Dropdown. When I upload submit this error appears:    There is no ViewData item of type 'IEnumerable' that   has the key 'Diocese'. But I think the error is not in this Dropdown because I always did t...
asked by 20.01.2016 / 19:12
1
answer

Problem to query within second Dropdown

Always enter the ajax error: error: function (ex) { alert('Failed to retrieve vigararias.' + ex); } Screen Error:    Failed to retrieve cheaters. [object Object] View: <script type="text/javas...
asked by 15.01.2016 / 13:24
1
answer

Error filling a DropDownListFor There is no ViewData item of type 'IEnumerable

I'm having an error while passing the contents of the controller to the view, I'm doing this way, the ViewBag is being populated with the data. In my application I select the items: public List<TB_EMPRESA> ListarTodos()...
asked by 14.01.2016 / 22:12
1
answer

System architecture doubts [closed]

Good afternoon, I have to change the system here of the company, and it will get more complex. We are a construction company, each work we work on is pre-budgeted, when the buyer is going to add an order, the system has to check if there is a pu...
asked by 25.02.2016 / 21:26
1
answer

Jquery code does not call Metodo in controler

I'm not sure how to use a jQuery method. I want to get a list of countries. Follow the code to help me know where I'm going wrong. < script type = "text/javascript" > $(document).ready(function() { $('#btnPais'...
asked by 27.02.2016 / 21:28
1
answer

Write information in the browser console via .Net

I need to show information in the console in the browser the classic console.log of JavaScript, but I would like to do this in the browser with .Net and not in the output of Visual Studio because I believe that Azure is preventing t...
asked by 05.01.2016 / 18:55
1
answer

Authentication for multiple users with ASP.NET MVC and .NET 4.5

I am developing a system where there is a need for two types of users, the client, which will only access the frontend , and the administrator associated with backoffice . I need these users to be authenticated in different "cookies", since th...
asked by 29.02.2016 / 20:00
1
answer

Thousands separator

How could I put thousands separator in a textBoxFor() ? Example: Value entered in View 1.321 (The point is only to facilitate visually) and the controller would receive the value 1321 to insert into the base. My field is...
asked by 21.12.2015 / 18:21
1
answer

pass data from jquery to the controller and return values

Would you like to know how I could do this? My controller method is this: public UserValid RetornaUsuario(String matricula) { UserValid valid = new UserValid(); UserValidDAO dao = new UserValidDAO(); valid = dao.Busca(...
asked by 03.02.2016 / 14:17
1
answer

Error publishing site

The system was working fine, I made some changes and after I uploaded to the server that error occurs, can anyone tell me what it would be? The system is MVC with VS 2013. Note: I returned the previous version which was a backup of the site a...
asked by 02.02.2016 / 19:27