Posts by pnet • 14,727 points
909 posts
-
0
votes3
answers3981
viewsQ: Declare variable within my cshtml
I have this code in my cshtml file <div class="grid_19 box-resultado"> @{ string nm, dia, mes, ano, sexo, numpassaporte, diavalidade, mesvalidade, anovalidade, paisemissao, dados = ""; .......…
-
0
votes1
answer733
viewsQ: Write with MVC and jQuery however the data is coming null
I made a jQuery to get the data from the form. And I made a method in my controller to save to the Database. It turns out that the form data is coming null. What can it be? Below my jQuery and my…
asp.net-mvc-5asked pnet 14,727 -
-3
votes2
answers8248
viewsA: Fill fields with json function return with jquery
Solved. BIOS error. There was a div with the same name as the address id and so I think jquery went a little crazy and didn’t know who to fill. Is working.
-
2
votes2
answers8248
viewsQ: Fill fields with json function return with jquery
I have this method in Controller [HttpPost] public JsonResult PreencheEndereco(string _cpf) { AgaxturCmsEntities db = new AgaxturCmsEntities(); try { var Result = (from a in db.TB_CLIENTES where…
-
2
votes2
answers2039
viewsQ: Validate fields with html 5 and mvc 5
As I validate fields in CSHTML itself, when I click the button, it validates the fields and if there are fields not filled it remains on the page, displaying a message. See the example fields and…
asp.net-mvc-5asked pnet 14,727 -
5
votes4
answers3446
viewsQ: Javascript function for zeros on the left with MVC 5
I have a loop inside my cshtml file. This loop has a variable i and I use it to compose a name according to her position in the loop, like txtNome1, txtNome2, txtNome3 and so on. I need to make the…
-
0
votes2
answers437
viewsQ: Associate a controller to an existing view
Usually when we create a Controller and associate a View to a Action, right click on Action and Add View. Then he creates the View, the folder and etc. Now, and when there already is one View, and I…
asp.net-mvc-5asked pnet 14,727 -
0
votes2
answers1465
viewsQ: ASP.NET MVC - Route does not pass values to the Controller
I created a new Controller with name Conteudo. Then I created an Action on it called conteudo and added a new View called Conteudo. Before it was PaginaBase and the Controller of Home. Well, I…
asp.net-mvc-5asked pnet 14,727 -
1
votes1
answer182
viewsQ: How to change running route?
Use MVC5 and Visual Studio 2013. I created this route: Home/PaginaBase. This route calls a new page, called PaginaBase, which has a header and footer similar to Index. This footer creates a Menu.…
asp.net-mvc-5asked pnet 14,727