Questions tagged as 'asp.net-mvc'

1
answer

View a wait message while downloading file

How to display the wait message while generating and compressing files for dowload? I'm doing the generation, compacting, and Generate more than one PDF in memory and export it to a compressed file answered by George Wurthmann     
asked by 18.06.2017 / 18:29
1
answer

Improve performance by generating excel spreadsheet

I'm using this generated NPOI to create the excel worksheets and I'm facing the following problem: The generated worksheet has 300 lines and takes 1 minute to generate and sometimes the Exception of type 'System.OutOfMemoryException' was...
asked by 16.06.2017 / 16:24
1
answer

Dynamically hiding a column from a WebGrid

How can I hide a WebGrid column at run time ? For example, I want to hide the Parametro column, it would look like this: grid.Column("Empresa", "Empresa"), if(item.valor1 == X){ grid.Column("Parametro", "Parametro"), } gri...
asked by 14.06.2017 / 20:23
1
answer

Named parameters in url - asp.net

I'm having a problem with automatic url generation next to Asp.NET I have the following code: [RoutePrefix("c")] [Route("{action=Index}")] public class ConteudoController : BaseController { [Route("{urlConteudo}")] public ActionResu...
asked by 29.06.2017 / 16:35
1
answer

Required fields

I have two text fields, where one is a ZIP code and the other is Address. In the CEP field I use the CEP's API, when I type a CEP it completes the other fields with the results. I need the following validation: Validate in 2 fields IF T...
asked by 26.06.2017 / 19:34
1
answer

Error when paging using PagedList with ListDinamyc

I'm trying to paginate a WebGrid using PagedList but a conversion error occurs:    Additional information: Can not implicitly convert type   'PagedList.PagedList' in   'System.Collections.Generic.List' I do not know if it occurs becau...
asked by 12.06.2017 / 21:13
1
answer

ASP.NET Checkbox Problem "The parameter conversion from type 'System.String' to type 'System.Boolean' failed."

I'm having the following problem with a checkbox I have a checkbox list that loads dynamically (depending on the items that exist in the database a checkbox is generated). Currently I have only three items being ids 1, 2 and 3. Inside the sys...
asked by 09.06.2017 / 13:52
0
answers

Capture ASP.NET MVC email attachments

Alright? I am starting the ASP.NET MVC (C #) studies and would like them to help me with a problem that I am well lost. I need to connect to a mailbox and capture all the attachments it has available in it.    I'm looking for study materia...
asked by 09.06.2017 / 20:26
1
answer

FluentNHibernate.Cfg.FluentConfigurationException.GetObjectData how to solve?

I have a website that uses FluentNhibernate and now I have uploaded this site to the provider but when I try to open the site it shows me some FluentNhibernate Exceptions. This site, on my computer, works very well without any problem, but the p...
asked by 07.06.2017 / 01:56
0
answers

Problems with PDF file

I'm showing a PDF file directly in the browser. In Google Chrome, it works perfectly, however, if you use FireFox, the PDF is as shown below. Did you have to put some extra config for Firefox? The PDF file is ok if it opens directly in the fo...
asked by 06.06.2017 / 21:17