Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
2 views
Crystal Report : Database logon failed
In my Project I am trying to open a Crystal report after writing the Dataset values to the XML file, but after loading the Report when I try to open it throws the Exception Database Logon Failed
I ...
0
votes
0answers
3 views
Telerik RadPageView in BackStage mode: howto change selected item color without whole new theme?
I'm looking for a way to set the color of an item in a RadPageView (in backstage mode) at runtime. There are a lot of properties that you can reach via the designer and the "Edit UI elements" section, ...
0
votes
1answer
14 views
Remove duplicates while merging lists using Union in LINQ
I am trying to merge two lists using list.Union in LinqPad but I can't get it to work and wanted to check my understanding is correct.
Given this simple class:
public class Test
{
public int Id ...
0
votes
0answers
12 views
Joining Multiple DataTable to One DataTable
I have 3 datatable dt,dt1,dt2....I am performing a join operations..
var query = from p in dt.AsEnumerable()
join a in dt1.AsEnumerable()
on ...
1
vote
0answers
6 views
How to define an async f# interface that can be implemented in c#?
I have defined an interface in F#
type IConnect =
abstract Update: seq<DataType> -> Async<bool>
I would like other apps in the same appdomain to implement it so that I can call ...
0
votes
1answer
19 views
How to support Co Variance generics here
Although I have seen the examples, but still I am confused how to make it working. I need to support some variance in generics.
public interface I1 { }
public class BaseClass<U> : ...
0
votes
0answers
32 views
Calculate average with linq without grouping
I have a datatable, wich contains a several columns.
I want to calculate the average of these with linq, without grouping:
I tried this:
dtPointCollFb.GroupBy(r => 1).Select(r => new
{
...
1
vote
0answers
13 views
Retrieving e-mails from virtual server using c#
I am trying to create an appication, that collects the emails, which are sent to my virtual server, using c#. I created a virtual domain using IIS 6 , though in the long run my application should be ...
0
votes
0answers
7 views
Return response before execute an method C# WEB.API MVC 4
I don't now if its possible, but I want to do this :
I want to return something, but before I want execute an function, bu I want return an response without waiting for an method response ...
int ...
0
votes
0answers
15 views
.Net Threading synchronization is mixing up
I want to get the data from database to send to a webservice. But also i need to send more than one request to web service. When i want to get 100 requests
according to the code below but i get ...
0
votes
1answer
26 views
How to call WPF project in windows forms using c#?
Hi everyone I am creating a c# windows application and I want to call WPF project in C# windows form.
Any one suggest proper solution for this problem please ?
0
votes
1answer
12 views
How to access session variable in APP_CODE class file?
We have ASP.Net application.
On Normal aspx.cs page I can access session like this,
Convert.ToString(Session[Resources.AMS.SESSION_USERID]);
But in APP_CODE folder, When i try, I can't get session ...
1
vote
4answers
56 views
More elegant way to increase an int-array?
I got an int-array with multiple values. I have to add an element to that array. I would solve it that way:
int[] myIntArray=SomeMagicThere();
List<int> intList= myIntArray.ToList();
...
0
votes
3answers
19 views
Suspending worker-thread and wait for user interaction on main-thread
I have a main UI thread that starts a SQL batch on a working thread.
The batch may generate some errors (blocking) or warnings (non-blocking).
In the first case, I finally rollback the transaction ...
0
votes
0answers
5 views
Ext.Net: calling the direct method inside the ImageCommandColumn
Is there a way to call SetTimeStamp directly inside the ImageCommandColumn? I tried App.direct.SetTimeStamp(); inside the <Listeners><Command handler but it didn't work .
Plus, is it ...