Questions tagged as 'asp.net-mvc'

1
answer

Pass parameter to another page

Within people, I own the accounts receivable table, where I am calling the page accounts receivable create, and the edit. So far, it's working perfectly. However, within accounts receivable, I have a select , where I already wanted to have...
asked by 03.07.2018 / 14:41
1
answer

Web chart with C #

Does anyone know of an open source tool for generating graphics with C # (MVC)? They will be online graphics and bars.     
asked by 06.04.2018 / 20:15
1
answer

Save time to register in the database

I have a form and whenever someone registers, I need to save the time of the registration in my table Historico2 within the property DateTime? Quando . public partial class Historico2 { public int ID { get; set; } [Required]...
asked by 25.02.2018 / 21:50
2
answers

How to sort and list only 5 items in a list?

Well, I'm developing the dashboard of a web system, in one of the filters I should list the top 5 clients and sort them by the highest amount of totals of invoices issued. I'm already able to list quietly, the problem is that the filter is listi...
asked by 24.05.2018 / 20:37
1
answer

Error with View returning a txt file

I'm using the following code in my Controller : public ActionResult geraBpa() { var caminho = System.Web.HttpContext.Current.Server.MapPath("~/Content"); StreamWriter file = new StreamWriter($"{caminho}/BPA.txt"); List<bpa...
asked by 22.08.2017 / 19:32
2
answers

How do I leave my DropDownListFor equal to Select

How do I get my DropDownListFor, like this select where the first field can not be selected. <select> <option value="0" selected disabled>Selecionar</option> <option value="1">SEMANAL</option> <option val...
asked by 20.07.2017 / 15:30
3
answers

Go through inputs with jquery and check if there is a certain class in the input

I'm getting the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li'); and would like to go through them and go check if they have a certain class, how do I do this in a foreach? <ul class="nav nav-ta...
asked by 20.10.2017 / 19:24
1
answer

How do I get the contents of an HTML Table and convert it to a C # List?

I have a html table that is created dynamically by the user. I need to get all the data inserted by it into the table and generate a List so I can save it later to a database. Project data follows: public class Procedimento { str...
asked by 10.07.2017 / 20:31
2
answers

Pagseguro API Integration

I'm trying to integrate PagSeguro with my application, but I'm finding it very difficult because there are lots of non-detailed information that lies ahead of me, making me increasingly confused. I have only 1 product that is sold per package...
asked by 05.11.2016 / 13:05
2
answers

HTML within a StringBuilder

I have HTML where I am formatting it inside a StringBuilder , where there are "quotation marks" I am passing a slash, but it is not opening the correct HTML. public string CorpoPaginaHtml() { StringBuilder corpoemail...
asked by 21.03.2017 / 18:44