Questions tagged as 'c#'

1
answer

Make select and move to the graphical interface

First the right model: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MetaData { public class Fornecedor { public int Codigo { get; set; }...
asked by 07.11.2014 / 23:37
1
answer

What is the difference between WCF project types?

What are the differences between the various WCF project types: WCF Service Library; WCF Service Application; WCF Workflow Service Application; Syndication Service Library;
asked by 07.11.2014 / 16:08
1
answer

Consultation for Electronic Invoice?

I'm trying to make a query for NFe RJ, but I'm getting an error. File that I generated for request 33141108887109000102550010000010141000010140.xml , with content: <consSitNFe versao="2.00" xmlns="http://www.portalfiscal.inf.br/nf...
asked by 25.11.2014 / 17:22
1
answer

When calling a page with Redirect is giving error

This is the error you are giving: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. And this is the complete call code in my master. protected void lkbConsultarProcessos_Click(objec...
asked by 24.11.2014 / 20:01
1
answer

Check if file is newer and then download

I created a windows service, which daily downloads some files. These files are about 2Gb (that's right, two gigabytes!). The problem is that these files are available every day on the site, but are updated randomly on a weekly basis, that is,...
asked by 26.11.2014 / 12:53
1
answer

Repeat div with foreach?

I have a list of registered users that displays the most important data such as name and email. I've created a div to display this data. However, I do not want to display everything in the same div, I would like to create a way to repeat this di...
asked by 10.11.2014 / 18:58
2
answers

How to avoid code redundancy in these two methods, where one has one IEnumerable parameter and one does not?

How can I simplify these two methods to prevent code repetition? Method 1, with the first expression having a generic property of type IEnumerable < >: public GenericDAO<TModel> LeftJoin<TProperty>( Expression<Func&...
asked by 11.11.2014 / 23:02
1
answer

Could not load file or assembly '..' or one of its dependencies.- Add a blank space in the web.config back to running for hours

I have an admin panel made in ASP.NET C # webform. From a few days to now, he began to give problems of the type Could not load file or assembly 'chat_megacorretor.dll' or one of its dependencies. The system cannot find the file specified....
asked by 06.11.2014 / 11:48
1
answer

Variable is always valuable, when it should be null at certain times

I have this code: This rptAprovaDocumento is a repeater public List<ENTSISRegistroPendencia> RegistrarPendencia() { CheckBox vchkTornarObrigatorio = null; for (int i = 0; i < rptAprovaDocumento.Items.Count; i++) {...
asked by 26.02.2015 / 16:31
1
answer

Remove SpellCheck

I need to remove the Check Spelling field from the Edit Bar, but I do not find any properties or how to remove the field, I already removed all the buttons I did not need but can not find the reference of this,     
asked by 27.11.2014 / 14:00