Questions tagged as 'c#'

2
answers

Set schema in query with Repository

I have my Repository: public class RepositoryBase<T> where T : class { protected AppDbContext _context; protected IDbSet<T> _dbSet; public RepositoryBase() { _context = _context ?? new AppDbContext();...
asked by 19.11.2014 / 14:27
1
answer

List non-visual component

I've tried several ways to list all the non-visual components of a form, such as: OpenDialog , ImageList , TableAdapters , and so on. but without success. To find the controls on the screen, I got a Foreach in the Co...
asked by 19.11.2014 / 21:15
1
answer

Error: Registering? in place of special character only using the browser

I'm having a problem saving data in my ORACLE database. When using my application to fill in fields and register a string, special characters such as accents are replaced by a ? in the database The detail is that if I get the same query a...
asked by 18.03.2014 / 21:33
1
answer

I am not able to make the value of a property be selected using the Razor Helper DropDownListFor

In my ASP.NET MVC 5 application I'm using .Net 4.5 I'm not able to make the option selected for a given property. Example of my class: public class Funcionario { [Required(ErrorMessage = "O campo {0} é necessário")] [StringLength(15...
asked by 05.03.2014 / 18:39
1
answer

Problems to authenticate on the 2014 Report Service server via C # application MVC5

I'm having a problem connecting to the 2014 Report Service via C # from an MVC4 project: Scenery: A 2014 Report Service Server was installed that will have numerous reports, due to the client having numerous SQL Server databases spread ac...
asked by 06.05.2015 / 14:53
1
answer

Delay in the first WCF service call

I am developing an application using WCF to distribute, everything is working quietly, however it has a strange thing, whenever I use the service the first time it takes a lot, (almost a minute for a simple search in the database), however I mak...
asked by 25.03.2015 / 03:14
2
answers

Open sub directories with explorer in C #

I am making an application whose purpose is to search and open a sub directory within a folder that is on a server. But what I can do so far is just browse and open the folders that are in the root ... My code looks like this: using System;...
asked by 20.04.2015 / 00:35
1
answer

Encrypt XML with TJMG public key

I need to encrypt this XML <?xml version="1.0" encoding="utf-8"?><Selos> <CodigoServentia>0000000099</CodigoServentia><Selo><CodigoSequencialUnico>ABC00005</CodigoSequencialUnico><CodigoDeSeguran...
asked by 05.05.2015 / 00:30
1
answer

Update Controls in Custom Toolbox Control

I created a "Windows Forms Toolbox Control" project and customized some controls: I'vecreatedacustomgallerysothatallofthecompany'sprogrammerscaninstallthetoolboxandmakeuseofthecontrols: According to the figure below you can see the toolbox cr...
asked by 31.03.2015 / 19:01
1
answer

Search in populated DataGridView by typing on it

I have DataGridView already with recovered data where the user selects an item. But because the items are numerous, I would like to allow the user to type over the DataGrid as the system "goes" to the item entered. I do not know the co...
asked by 23.03.2015 / 14:20