Questions tagged as 'c#'

2
answers

Recover image in SQL SERVER and put in a REPEATER list

Today I retrieve information from a database and ready a REPEATER, so far everything blz. But I also need to get an image of the database and show in this REPEATER. Below is how I show the table. SoIwanttoputacolumnwiththeimage.Belowclass...
asked by 16.06.2017 / 04:27
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
0
answers

C # - Is it possible to put a Scrollbar inside a Menustrip through the code, without touching the design?

Hello I'm using Windows Forms and created a menu with many items: In order to view all items, I have to use these arrows at the ends of the menu. I would like to be able to add a Scrollbar or something to view the items more easily....
asked by 16.06.2017 / 13:28
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

Clear Modal with Button Without Writing Data

I have a modal where I use the same for inclusion and change of the data. I checked that the txtid field is populated. If you have is change, not inclusion. To fill in the fields the user needs to select the row of the grid, where t...
asked by 14.06.2017 / 20:35
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
0
answers

Problems with deserializing XML

I have the following code: public T LerXml<T>(string pArquivoXML) { byte[] xmlBytes = Encoding.UTF8.GetBytes(pArquivoXML); Stream xmlStream = new MemoryStream(xmlBytes); using (var stream = new System.IO.StreamReader(xmlStre...
asked by 13.06.2017 / 15:24
0
answers

Use values entered by the user in asp.net c # webforms

I've created a form for the user to update the registration data. The "old" user data is stored in session variables that populate the form as soon as the user clicks refresh registration. The problem is that writing the data to the database is...
asked by 13.06.2017 / 04:59
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