Posts by AL_Mauricio • 146 points
6 posts
-
1
votes1
answer65
viewsA: Add Action and Controller to Beginform’s Htmlhelper with T4
When you pass null to action and controller it will inherit the names from which acontroller and action that resulted it @using (Html.BeginForm(null, null, FormMethod.post, new {@class =…
-
0
votes2
answers64
viewsA: Is there anything in MVC that is equivalent to the <Asp:Repeater> of Web Forms?
Hello @Deividson, from what I understand you have a list of courses want to put your elements in html, good for that you can be using a foreach and building its structure @foreach(var curso in…
-
1
votes2
answers2464
viewsA: ASP . NET MVC and Javascript - Open modal with ID of the selected object in a list
You can put a data-val in your tr with the value of the object id, so by clicking on the button you will be able to take the element id and send it to your function that deletes or edits. Example…
-
0
votes1
answer61
viewsA: Returning to the main page when accessing an invalid url
In my case I pass a parameter to my action that returns the custom error screen, but based on your example code I believe that the path is not correct, if your controller calls "Error" and your…
-
0
votes4
answers627
viewsA: .append() an img tag?
As you are adding a tag by passing your respective src then it will load the image, it would be better if you apend using the p tag and the text being the path of the image as you want. <input…
-
2
votes2
answers1675
viewsA: Translating Identity in English
Hello, you need to go on Global.asax and add the method below. protected void Application_BeginRequest(object sender, EventArgs e) { CultureInfo ci = new CultureInfo("pt-BR");…