Posts by Diego Silva • 61 points
7 posts
-
0
votes1
answer525
viewsQ: ASP.NET MVC - How to upload a file with more than 5mb using ajax?
I am using the following code to perform file upload: HTML: <form action="/Employee/FileUpload?UnityId=1&ObjectId=1" data-ajax="true" data-ajax-failure="OnFailure" data-ajax-method="Post"…
-
0
votes3
answers666
viewsA: ASP.NET - How to use multiple post methods in the same controller?
I managed to solve. The problem is that the default route was missing, which should be placed below custom routes: routes.MapRoute( name: "UserInfo", url: "profile/", defaults: new { controller =…
-
3
votes3
answers666
viewsQ: ASP.NET - How to use multiple post methods in the same controller?
I have the following problem: On a given HTML page I have two buttons that call different POST methods in the same controller. @using (Html.BeginForm("UserInfo1", "UserInfo", FormMethod.Post)) {…
-
0
votes0
answers17
viewsQ: How to escape HTML code within a data-text attribute?
I wrote the following code: <label class="form-input"> <i class="material-icons"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></i> <input…
-
2
votes1
answer2102
viewsQ: To disable the suggestion of saved passwords in the browser via HTML
I have here the following situation: I created an HTML form to change the user’s password in case he forgets it. The problem is that when trying to enter the password the browser exposes the options…
-
0
votes1
answer376
viewsQ: C# how to send an email containing a hyperlink using System.Net.Mail?
I created a class for sending emails using the System.Net.Mail library. To send the message format in HTML. The message I am sending is as follows:: <div style="display: block; margin-left: auto;…
-
0
votes1
answer524
viewsQ: How to close a modal by pressing the "ENTER" key
How can I close a modal in bootstrap using the enter key: the code I’m using is as follows:: <div class="modal fade" id="succes-action" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"…