Questions tagged as 'c#'

1
answer

How to create a query with union using NHibernate

I need to implement a query in nhibernate to do a union between 2 tables. In sql , it would look something like this: SELECT T1.Id AS ID FROM TABELA1 AS T1 UNION SELECT T2.Id AS ID FROM TABELA2 AS T2 I did not find any...
asked by 03.04.2014 / 19:42
1
answer

ASP MVC 4 and WebService

I have a WebService with all the methods I need to make the system work, and I also have a ASP NET MVC 4 page. I have already made the reference in the services references of the WebService. I am trying to use a webservice method which re...
asked by 10.04.2014 / 02:22
1
answer

Insert sub-total per page into a Report (.NET) RDLC table

I need to insert cumulative sub-total on each page of my RDLC .NET report, I'm using a table to allocate all field values and their sums. The great difficulty is to insert the total into one of the cells of this table.     
asked by 03.12.2014 / 13:51
1
answer

Crystal Report with LEFT JOIN and WHERE

I have a problem making a LEFT JOIN in Crystal Reports. From what I've researched, it's a classic SQL problem when using WHERE criteria by crossing LEFT JOIN . I tried to solve it anyway, but I could not. There are 4 related tables: [Orc...
asked by 04.12.2014 / 18:43
3
answers

How do I dynamically add and remove a href

I have this href: <a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumentoDown")%></a> What I want is that I create a link only when I return from the procedure the DsPath...
asked by 28.11.2014 / 20:11
1
answer

Controlling to prevent the window from opening again in MDIForm

How do I check if a window has been opened? If it has been opened, bring it forward, otherwise open a new window. That is, I need to control the windows, checking them so that only one is open.     
asked by 07.09.2014 / 19:48
1
answer

Use Identity in an Asp.Net MVC 5 application with Web Api and vice versa

When I create a project Asp.Net MVC with Individual User Accounts I can enter the application in this way: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);...
asked by 10.09.2014 / 14:53
1
answer

EntityException when connecting to remote database

When connecting to the local bank, the application runs 100%. However, when I try to connect to the sql server remotely (on a nethost server), the application raises the following exception: Below is an error and a connectionstring.    add...
asked by 09.09.2014 / 02:02
2
answers

Execution calculation error

I have the following question. I have these following times obtained through Stopwatch , where it was placed inside a method to return the bank balance of the employee's hours. But it's showing me a totally contradictory time with what w...
asked by 14.02.2014 / 13:32
1
answer

Making Throttling a method

I was experimenting with the concept of throttling and some doubts arose 1st part: How to translate this concept into a single word? 2nd part: Is there a library that has a simple implementation of this? my attempt can be found at git...
asked by 08.02.2014 / 14:56