Questions tagged as 'asp.net-mvc'

2
answers

JSON function Returns no value [closed]

I have a problem, I would like to populate my DropDownlistFor with the result of another DropDownListFor, so I'm using Ajax and Json, same concept they make when they want the result from State to City. Model: public class SegmentMOD...
asked by 17.12.2015 / 14:29
2
answers

Inheritance X Composition - MySQL C # Entity

I was having a question of inheritance modeling in C # involving Person, Individual, and Legal entity, but Cigano Morrison Mendez helped a lot! Now I have another question in another type of relationship. As I said, a person may be physical or l...
asked by 10.03.2016 / 23:42
1
answer

OutputCache only valid at controller level?

I have read the article: link And I started using the: [OutputCache(Duration = 60, VaryByParam = "none")] When I put it in the controller I notice the difference clearly. But when I'm using a library that is called by my control...
asked by 18.03.2016 / 15:02
1
answer

What is the best alternative for recording data using a 3G connection?

I have the following situation: a header table with the fields: IDJOGO IDMODALIDADE IDUSUARIO VALOR_JOGADO HORA_JOGO And a detail table: IDJOGO NUMERO_JOGO In this case, would it be feasible to write the header, retrieve the...
asked by 10.12.2015 / 02:24
2
answers

Use ViewBag as counter

How can I use ViewBag as counter? WHAT DO I NEED? I'm making phone numbers. When I add a new phone, I send my View to my Controller and it returns me to PartialView of my Inputs . I needed a counter,...
asked by 08.12.2015 / 13:36
1
answer

Search form does not execute controller method

I have the following form: <form role="search" method="get" id="search-form" name="search-form" action="/video/pesquisa"> <div class="cover-pursuit-btn"> <button type="submit"...
asked by 16.11.2015 / 20:26
1
answer

How do I store passwords in environment variables (and remove them from version control)?

I'm migrating from a local tfs to a private git (probably bitbucket). Today I simply encrypt webconfig, now I will have to get my sensitive version control data (connection string, passwords, etc.). How do you do? Environment Variables? As...
asked by 18.07.2016 / 19:58
1
answer

Configure Scaffold to generate classes

How can I configure Scaffold to generate non-standard classes (Controllers and Views)?     
asked by 05.10.2015 / 13:42
1
answer

Do not redirect to Login Page

In order to authenticate on my system I am using the [Authorize] attribute I placed this code below in Web.Config in> that is related to non-authentication it redirects itself to my login page. <customErrors defaultRedirect="Gener...
asked by 18.11.2015 / 13:35
1
answer

Make a Select inside a dropdown with help of jquery

I can not script for this to work. I have to search for the second Dropdown and save the ID of the second dropdown to do the Post ID on the DB Controller: This Controller will seek the dioceses of the first dropdown. public ActionResult Get...
asked by 14.01.2016 / 17:24