Questions tagged as 'c#'

1
answer

How to group my Data Grid by modules?

How can I group data in my DataGrid? For example Would you like to group these values and sum them in a DataGrid more or less as I described above?     
asked by 15.05.2014 / 20:14
1
answer

Handle webcontrol element dynamically

Is there a way to manipulate webcontrols name dynamically? ex: I have 90 TextBox textBox_01_name textBox_02_name textBox_03_name textBox_04_name ... Today I have the following code if (textBox_01_name.Text != Topo_DAra...
asked by 01.04.2014 / 18:13
1
answer

WCF Restful Https for a single method

I have a RESTful WCF that I'm using for a mobile application, I need a single method, the payment method, to use HTTPS, I do not want to enable HTTPS for the whole service because some methods return a large amount of data and it would be too he...
asked by 04.04.2014 / 15:55
3
answers

How to get values from a session and download to variables?

I made this class: public class ConexaoParametrosTFV { public ConexaoParametrosTFV() { if ((SessaoUtil.Recuperar("ConexaoTFV") == null)) { AgaxturCmsEntities db = new AgaxturCmsEntities(); var r...
asked by 04.04.2014 / 17:58
2
answers

Loading a report in Web Forms

I want to generate some reports in my application and I'm using Crystal Reports. The Report itself is correct but I can not load it on my page (.aspx). Here is my application's Load event code: protected void Page_Load(object sender, EventA...
asked by 08.04.2014 / 22:18
1
answer

Get day of week through a date LINQ

I need to get a record set of a weekday (Second Example), where for this I have a field in the table of type datetime. In Sql it would look something like this: SELECT AVG(P.Quant) AS Expr1 FROM P WHERE (Pro.Tipo = 'B') AND (V.ID= 1) A...
asked by 02.04.2014 / 19:22
1
answer

Process.Start (variable) to open an application without knowing the installation location

I have a Console Application that needs to call an application. As I'm not sure where it was installed, I need to assign the value to the path variable as below to get the app install location. string path = System.AppDomain.CurrentDomain.B...
asked by 10.04.2014 / 20:31
2
answers

Best way to add multiple items from an order to a table

When I add a request to the TB_PEDIDOS table, TB_PEDIDOS: ID_PEDIDO, DATA_PEDIDO, ID_CLIENTE I also need to add the order details in another table: TB_DETALHES_PEDIDOS: ID_PEDIDO, ID_PRODUTO, QUANTIDADE, PRECO Example: Produto...
asked by 15.04.2014 / 03:36
1
answer

How do I leave specific items in my dynamic listbox disabled?

I have a ListBox that loads dynamically using EF. One of the filters used is that the product exists in the stock. var query = (from p in db.Products join s in db.Stocks on new { p.SchoolID, p.P...
asked by 15.04.2014 / 15:02
1
answer

Where do I find DLL microsoft.expression.encoder.devices?

I'm trying to develop a string instrument tuner in C #. I found a project called FFT Guitar Tunner , but I've been having some issues with his references. In the end, the only reference that continues to give problem is: microsoft.expressio...
asked by 17.04.2014 / 03:25