Questions tagged as 'asp.net-mvc'

2
answers

Passing parameter through URL

How do you pass a parameter to another view screen without the user seeing it in the URL? For example: I have a query screen that the user clicks on the table and is redirected to another screen, which is the screen that opens the information...
asked by 28.07.2017 / 20:27
1
answer

Kendo TextBoxFor allow only numbers in .NET

I do not want to allow the user to enter characters in my TextBoxFor field, and if he does, I want to display a message stating that the field should contain only numbers. My code is below. @(Html.Kendo().TextBoxFor(model => model.MinVo...
asked by 11.07.2017 / 15:14
1
answer

Xml handling with ASPNET MVC Core?

I'm working with Xml upload using ASPNET MVC Core , I get in controller the file this way: public async Task<IActionResult> Upload(IFormFile param) { } But I need to check it out before finishing the code and uploa...
asked by 20.07.2017 / 22:41
1
answer

Open PDF in browser automatically after download

The PDF downalod is executed correctly (minimized in the bottom corner of the browser). How do you open automatically on a new tab ?: <a href="#" class="download" name="downloaditem" id="downloaditem3" target="_blank"><span st...
asked by 05.06.2017 / 16:43
1
answer

Get a specific file in an FTP directory

I have two methods, one sends a file via FTP and the other one consumes a file via FTP. The files have the dynamic name DateTime.Now each day a new file. example: coletas-04-04-2017 16_00_19.xlsx In the Send method I get the current...
asked by 06.04.2017 / 21:52
1
answer

How to add data using BeginCollection and PartialViews

I was able to do the system with data insertion with BeginCollection and PartialViews as seen in this question . By continuing the same, how would you edit the data entered in the database? Example: I signed a collection point with two types...
asked by 08.05.2017 / 17:32
1
answer

Remove multiple authentication per protocol

Hello, I'm implementing MVC with Asp.Net Identity , however, I'm having some problems ... Scenario: I'm logging in from the HTTP protocol, everything goes in normally. When I try to access any page with HTTPS protocol, it does not s...
asked by 09.05.2017 / 01:54
2
answers

How do I put the usermanager property to be started in my Model

I would like the form Name to be filled in automatically by the username of the logged in user. How do I include this property in my Model ? public class Condominio { public int CondominioId { get; set; }...
asked by 16.05.2017 / 23:38
2
answers

Limit character entry in EditFor in MVC

I have a character limiter for just TEXT. Now I need the characters to be limited to only 2 (I want to make the user type the state, for example: PR, SP, RJ ...). How do I do it? $(document).ready(function () { $(".apenastexto").ke...
asked by 18.05.2017 / 02:23
2
answers

Make one method wait for the other to finish

Good morning everyone, I have the following doubt, when clicking on a button my program does with if you run 2 methods simultaneously, method of sending email, and method of generating the pdf, it happens that the method of sending email always...
asked by 14.03.2017 / 15:29