Posts by Penihel Roosewelt • 86 points
7 posts
-
1
votes3
answers1923
viewsA: Update values after dropdown change
<script type="text/javascript"> $(function(){ $('.chzn-select').chosen({width: "50%", no_results_text: "Sem registro de ", size:"5"}); $(document).on('chosen:updated',…
-
1
votes3
answers1923
viewsA: Update values after dropdown change
In your case: $('.chzn-select').trigger("chosen:updated"); Now, to change the subject Now your problem in updating the country, I suggest you use the knockoutjs and "link" your select to an array,…
-
0
votes1
answer594
viewsA: Return more than one data list in the view
You can put in Viewbag ViewBag.Lista1 = new List<>(); ViewBag.Lista2 = new List<>(); return View(); Then the View Voce accesses in the same way: @ViewBag.Lista1 Now Voce can if you want,…
-
0
votes2
answers982
viewsA: How to redirect to another page when user does not have authorization
Redirect normally using the MVC Redirect Method. And put a Location tag on the web.config assigning anonymity to your action only (url) <location path="login/SessaoExpirada">…
-
1
votes3
answers12809
viewsA: Error while running my MVC application
By the way ai, your example shows that you are assigning a namespace to "Inherits" and you should assign the Class that is within Global.asax.Cs take my example: in Global.asax <%@ Application…
-
1
votes1
answer285
viewsA: Using Identity in an Asp.Net MVC 5 application with Web Api and vice versa
I would do an Action (anonymity) the part for the mobile app login. So in this action I would search for the user and then call the code you posted. Sack ? Create an Action and a controller that can…
-
3
votes1
answer67
viewsA: How to work with more than one dependency on Service class?
The ideal is that all "Repository" your receive in the constructor an instance of Database Context (In the case of Entityframework, Dbcontext) there you will always have the same scope of database,…