I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
I am using also Entity Framework and Code First Method.
I have 2 views that populate the same controller : Index.aspxand Gestion.ascx
Each view has a submit button which execute a method in the controller :
- Button Enregistrer(Index) ==> Save()
- Button Valider(Gestion) ==> Valider()
When I start the project I create only the button Enregistrer and the Save()methode. That's was perfectly works ! ( save some values in a list).
But when I add the button Valider and the Valider()methode, nothing works, the 2 buttons became static (dead).
So I put a breakpoint in each method, and I execute.
I find that when I click on Enregistrer 
 
    