I have abstract class for each Business Object in my app (BO)
Also have parent (generic) collection to store all BOs (named BOC - Business Object Collection)
What I would like to archive is created universal method iniside BOC similar to:
public T GetBusinessObject (lambda_criteria)
So I could call this method similar to:
Employe...
We need to run ADO.NET Data services without using III. I see cassini is the right option but how to host a ADO.NET Data service in Cassini.. I couldn't find any example.
...
Hi community,
I am building a Winforms C# 2.0 application.
I have successfully been able to connect to my SLQ Server database using the following:
m_connexion = new SqlConnection("server=192.168.xxx.xxx;uid=...;pwd=...;database=...");
Because my company wanted to be able to use any database, I went on to use the Odbc driver and my com...
Items in a list have context menus. The context menu items are bound to routed commands.
The context menu items work correctly if the list control is a ListBox, but as soon as I downgrade it to an ItemsControl it no longer works. Specifically the menu items are always greyed out. The CanExecute callback in my CommandBinding is not be...
In large apps I find myself really wishing I had built-in AOP facilities. As it stands in C# the best you can do is factories and RealProxys, PostSharp, ICorDebug, ICorProfiler or injection frameworks. There is no clean built-in way of doing AOP.
Is there any indication anywhere (blog post / internal discussion) that indicates that AOP...
I am using combobox which contains three value-NSW,TIC,VIA. in page load i m setting selectedindex = 1 for the combobx , the value shown as TIC which is correct but it is not getting highlighted. I can see that when user selects different value (i mean the index gets change for combobox from UI) then the particular text gets highlighted,...
I have created a duplex service using the WSDualHttpBinding and am trying to set to set the clientBaseAddress so that I can avoid using port 80 which is blocked by IIS. The service works fine when I have IIS stopped and no clientBaseAddress set but as soon as I set it after some time (Seems to be timing out) I get the following exception...
I have a web service that when invoked, returns a Result object that contains a List polymorphically. However, when I add a reference in my client application, the public field becomes an array of Country in the client application. How do I change the field in the client application to List?
public Result GetCountryList()
{
List<Cou...
Just been asked this question as a true / false in a telephone job interview and was a little stumped. Any ideas?
...
I'd like to save the first page of a Word document as a picture. What methods are there for doing this with C#?
...
Good afternoon,
i am currently wrestling with an old .dll which functionality I have to re-use in a .Net application & I came so far to import the basic/easy functions/methods that return bool etc, but some do in fact also expect (or return) an type that is declared within the .dll.
How would I handle this? How would I map/create that ...
Hi
I am stuck while making a programming decision,
I am a .Net developer, I am currently building an application for my client that receives data from a third party application, it has to then perform operations on the values and send it to a webservice/servlet which then displays data to a webpage, The catch here is that the data bein...
Is it possible to set a minimal size of a generation 0 heap in .NET?
I have a folowing sistuation. I have a function that allocates around 20-30 MB of 1KB objects, does something with them, and terminates, leaving all the allocated objects to be GC-ed. Now, in Performance Monitor, I can see that generation 0 heap size is 5-6 MB, which i...
Hello all,
Let's say I have a DataGridView Control that displays about 100 records of a specified table. Every time a user scrolls down to the lowest point, I want to add another 100 records to the DataSet that stands behind my DataGridView.
I knwo that a DataGridView Control has a Scroll Event like private void DataGridView_Scroll(ob...
Hi,
I want to know which padding modes for AES encryption are common in both java and C#.NET
Thanks
Bapi
...
Hy,
I have a validator set on the text property of a textblock. For a correct validation I would need the parent usercontrol of the textblock, but the only things I have in the validator are the value object (a string) and the culture (doesn't help either).
Does anyone know a way to get certain usercontrols in a class/a method where I ...
I'm looking for smallest CLI subset implementation possible.
For now, even an interpreter will do, but I am really looking for a
JITted runtime. I do not even need anything from the standard runtime
apart from core classes like System.Object and Enum etc. It also needs
to be portable and least dependent on underlying system.
I hav...
Ok this is a really annoying bug that I have been having issues with all morning!.
I have a custom control that we have used on many project that has properties that are set and stored in Viewstate by the calling pages onload. the control sets up childcontrols with propertes on the CreateChildControls() method of the custom control.
N...
I need some help. I am creating a SelectItem class like this:
public class SelectItem<T> where T : class
{
public bool IsChecked { get; set; }
public T Item { get; set; }
}
I would like the following code to be valid
SelectItem<String> obj = new SelectItem<String> { Item = "Value" };
obj.IsChecked = true;
String objValue = ...
I'm running into a strange problem. I have a simple C# console app that calls an external web service referenced within my VS 2008 .NET solution. The web service is defined as a service reference, per the vendor specs. The service requires login credentials to be sent as part of the SOAP header.
Under Vista x64/XP it runs without error....