We've been given a "stored procedure" from our RPG folks that returns six data tables. Attempting to call it from .NET (C#, 3.5) using the iSeries Provider for .NET (tried using both V5R4 and V6R1), we are seeing different results based on how we call the stored proc. Here's way that we'd prefer to do it:
using (var dbConnection = new...
Hi everyone. Im trying to integrate a toolwindow in a Winforms application, it will be a tiny floating window to display element details in a listbox. What I need is pop the window in a relative position to the control that triggers the action, so here is the thing: the Location property gives me the relative position of the control from...
I have this WCF service running as a window service.
I have in my code that everytime it faults it will restart the service.
Now I'm having the issue where the host faults, it tries to restarts, then faults again, but at some point it just stop the service.
Wondering why it stop the service? Is this something handled by the OS that...
Is there any way to defer the databinding until a field is changed for the first time? So basically, when the app first loads, I want the numberic textboxes to be blank instead of all being 0.
Total WPF n00b here so please change the title if there is a better way to describe the problem!
...
I am currently working on server application that has to deal with reasonable amount of clients over TCP in LAN. Tasks that server has to accomplish vary from trivial to mildly-complex, and most of them include some form of database interaction. I'd like to make database access asynchronous, since not all queries are equally complex.
Th...
Hi, I'm trying to build up a proper routing scheme for my products section in MVC 2. I've got the following criteria:
Links of the format
/Products/(MX[0-9]+) and /Products/(BDL[0-9A-Z_])
Need to route to ProductsController.Show(Id = $1)
Links of the format
/Products/([a-zA-Z0-9/]+)
Example: http://www.mysite.com/Products/Cameras/D...
I have a fairly involved LispWorks Common Lisp module that sits atop some .NET modules via RDNZL.
It has come up that I need to expose some of its functionality to some other .NET applications, and I'm not sure the best (shortest) way to approach this without re-writing the module in C#. I know there are a few CLR Lisp implementations b...
We are working with a large retail bank on training 40-50 .Net developers to use Java. They are familiar with C# and .Net framework and have built dozens of "run the business" style apps in .Net.
We need advice on how to provide basic Java familiarity, with a focus on back end logic, security and transaction management. Back end is Spri...
My organization previously used ASP.NET for web projects.
They are now migrating to WebLogic Portal/JEE for all future web projects.
My experience as a Lead Developer / Architect is totally with .NET projects. I want to get ramped up on WebLogic/JEE, so I can contribute to future projects.
Any training/certification suggestions for We...
As you may know Silverlight has support for local storage. We are looking at creating Sl application that will work in off line mode.
This application may require quite a bit of data to be cached on the client side.
Obvious solution - use local storage with some sort of XMl based structure won't work as our PoC showed due to performanc...
I have an application that uses the Process class, StandardInput, and StandardOutput to communicate with an external executable. I am using this to pass strings back and forth, and it works well in my Windows application.
On the mobile device, I do not see StandardInput or StandardOutput in the Process class. Is there an easy way to r...
I have a UserControl in which a FlowLayoutPanel (FlowDirection is as by default - LeftToRight).
This user control consist of a description and some controls:
[descr.] 123456789, it should be able to be reversed 987654321 [descr.]
So FlowLayoutPanel is used for this scope(RightToLeft - True/False).
Is this a way that the label1 fil...
i'd like to be able to query any number of databases with different table layouts, return a datatable then use that datatable to build a strongly typed object. Is there anything out there that does this or comes close without having to code for each different table layout?
Thank you in advance!
Zac
...
I'd like to save the creation time of a row, so I have created a datetime column and set it's Default Value to be Getdate(). But when I generate the dbml file from SQLMetal and re-create the database from it, the function is missing.
I've added the /functions parameter to the command line when running SQLMetal but this didn't fix the pr...
What is the best way to go about this in C#?
string propPath = "ShippingInfo.Address.Street";
I'll have a property path like the one above read from a mapping file.
I need to be able to ask the Order object what the value of the code below will be.
this.ShippingInfo.Address.Street
Balancing performance with elegance. All object gr...
We have several .net dlls that are being stripped of version information when they are copied to our production environment. The Servers in prod are windows 2008 and we are using robocopy to move the files. It does not always strip the info, but when it does, it errors out the entire site.
Any thoughts would be very helpful.
...
how to get a list of files / folders as an IEnumerable and not an array?
the reason I want to do this is a have many folders with 20,000+ files in them, and i need to loop through all of them but do not want to wait for them to be compiled into an array. but just want to go through one at a time.
also i'm using .net 3.5 not v4
...
We would like under some circumstances to block the action of the close button in the title bar. The problem is that it's a MDI applications and it seems that we will have to add code in each forms to cancel the operation in the Closingevent handler. It seems that the child forms are the first to receive the event. There is no way to add...
When querying for large ammount of data through WMI (say the windows events log Win32_NTLogEvent) it is very useful to know what kind of numbers you are getting yourself into before downloading all the content. Is there a way two do this?
From what i know there is no "Select Count(*) FROM Win32_NTLogEvent" in WQL.
From what i know the ...
Is this code wrong? It's just not returning anything:
public IEnumerable<string> GetMethodsOfReturnType(Type cls, Type ret)
{
var methods = cls.GetMethods(BindingFlags.NonPublic);
var retMethods = methods.Where(m => m.ReturnType.IsSubclassOf(ret))
.Select(m => m.Name);
return retMethods;
}
It's retu...