Hi all,
I've got a little problem changing the ecoding of a string. Actually I read from a DB strings that are encoded using the codepage 850 and I have to prepare them in order to be suitable for an interoperable WCF service.
From the DB I read characters \x10 and \x11 (triangular shapes) and i want to convert them to the Unicode for...
I'm a bit confused over the .net "redistributables"...
Our C# code uses some API calls that require .net 2.0 sp2. We do not want to require the user to download anything at the time of installation (this is a Winforms app with and installer) for various reasons.
We currently include the 2.0 redistributable, and of course the functions r...
We need to implement role-based security across our solution which has asp.net, winforms and web service entry points. We will also need some front end to configure it. I really don't feel like rolling my own,s I have done it a few times before and it is tedious.
I have historically not been a fan of the MS ABs because I found them to b...
I have a web server located in Switzerland and it is intended to serve both the American region and the European region. When a date is being displayed from the Americas, the date is separated by a period rather than a slash.
In some cases I want to user the period if they are European, in others I want to use the slash. If I specify t...
Hi Guyz!
I have a problem concerning the Webbrowser Control in VS2005 (.NET 2.0).
I have a site containing this html code:
Button which I want to submit
Button that gets submitted
Okay, with SetAttribute (either in C# or Javascript) I'm changing the type attribute of button1 to "submit" and the type attribute of button2 to "but...
Suppose I have an IEnumerable such as a List(TValue) and I want to keep track of whether this list is being accessed (to prevent issues with, say, adding to the list while it is being iterated over on a different thread); I can always write code such as the following:
Dim List1 As New List(Of Integer)
Dim IteratingList1 As Boolean = Fal...
I know that it's a subject that can raise a lot of debate, but I'd like to know what people think the various pros and cons of using Object Datasources are. I'm doing a project right now with another programmer who's experience and comfort level are all rooted in classic ASP, and I'm unsure of which way is going to
a) get the job done qu...
There are various online docs about using IContainer and ISite (eg http://www.theserverside.net/tt/blogs/showblog.tss?id=pluginArchitectures), and there are vague examples around, but I haven't come across a real instance (other than winforms) where it is actually useful. It doesn't help that I don't really know what exactly it can be us...
I have a WinForms app built using Visual Studio 2005, including the crystal reports that comes with VS2005 to run and view reports. My installer uses the merge module CrystalDecisionsRedist2005_x86 to install Crystal. This all works well until I try installing on Vista, when I get errors registering the Crystal dlls. It seems this is a w...
I'm working on a project with different assemblies (imagine a printer-module, a imaging-module etc.). In this project, all interfaces are declared inside one Interfaces-assembly (imagine Interfaces.dll with interfaces IPrinterModule, IImagingModule etc.).
Since I'm a cowboy-coder ;) I have to ask the SO-community if this really is best ...
We are about to migrate an intranet web application from using a proprietary forms-based security to Active Directory. The application logs a variety of user actions, and there is a significant amount of data associated with user accounts. Our plan was to migrate all of these UserId columns in various tables: from a foreign key linking...
Is there a way I can know who holds a reference to an object?
I see that my object is not finalized by the d'tor after I call GC.Collect.
...
Since the support for BO and Crystal pretty much stinks when it comes to finding an answer I thought I'd try to post this here. We are having some issues with Crystal Reports on the server and I wanted to patch it up to SP5. I finally found a download (and even then I'm confused whether to use the SP5 or FP 5.2, so I guess I'll put SP5 o...
I am having a problem with LINQ and I was hoping someone could explain to me why. I have this code:
List<Spec> specs = GetSpecs(userObject, seasonID, partnershipID);
var query = from s in specs
where (DateTime)s.FinalApprovedDate != null
&& !((DateTime)s.FinalApprovedDate).Equals...
In this code (from the WCF REST starterkit - preview2):
protected override SampleItem OnAddItem(SampleItem initialValue, out string id)
{
// TODO: Change the sample implementation here
id = Guid.NewGuid().ToString();
this.items.Add(id, initialValue);
return initialValue;
}
...
i am running 12 threads .function which these threads are calling is not having any lock on some object.but still these threads are taking too much time.(16 minutes).each thread ially parsing a xml document which is running alright if run indiviually.is this problem because of some reason related max no threads provided by express editio...
Ok, so I have a base class which declares the event StatusTextChanged. My child class, of course cannot directly raise this event.
So I wind up with something like this (for simplicity sake):
Public MustInherit Class FooBase
Public Event StatusTextChanged(ByVal StatusText As String)
Protected Sub RaiseStatusTextChangedEvent(By...
I have an Asp.net application that is part of a match larger system, it reads most of it’s configuration from files that are above the root level of the web application.
As the application is already written and the format of the configuration files was chosen to ease editing by customers I can not make use of the solution in “Shared co...
On episode #162 of Hanselminutes they were talking about PowerShell, but more importantly around 04:50 they mentioned that PowerShell used something called The Common Engineering Criteria to have a standard on which words to use when developing new modules for it.
I cannot find any concrete dictionary on recommended words through this p...
My scenario:
A wpf form has a textbox and a wpf toolkig datagrid.
When a text is entered in the textbox, my service returns an IEnumerable<TranslationItem> items. I want my datagrid to show the result of this service.
I tried googling around, but I can't get heads or tails to it. I'm only starting to learn WPF and most of the used ter...