.net

How to use AMFPHP functions from .NET WPF application?

How to use AMFPHP functions from .NET WPF application? ...

Best way to download data from Windows Azure Table

I need to download data from windows azure table storage back to a SQL Server database inside the office network every night. There could be up to 100,000 entries in the table. What’s the most efficient way to do this (i.e. the method that costs the least)? ...

Is it too early to start designing for Task Parallel Library?

I have been following the development of the .NET Task Parallel Library (TPL) with great interest since Microsoft first announced it. There is no doubt in my mind that we will eventually take advantage of TPL. What I am questioning is whether it makes sense to start taking advantage of TPL when Visual Studio 2010 and .NET 4.0 are relea...

Getting WIF to work with OpenSSO as STS

Hi gang, Using OpenSSO as an identity provider, what should I do (i.e. with FedUtil.exe) to configure my .NET relying party so that it will do the STS dance? I've gotten OpenSSO's WS-Trust client samples running, so I think OSSO's in a good state and ready for the next step. I'm at the FedUtil.exe's "Use an existing STS" wall. Where ...

Does WqlEventQuery contain a constructor with 1 argument?

Hi all, I am trying to create a simple service in C# using VS2008 that creates a text file when the computer goes into sleep mode. My current code throws out the following error: 'SleepNotifierService.WqlEventQuery' does not contain a constructor that takes '1' arguments Now I looked in the Object browser, and it looks like it doe...

How can I use Regex against a TextReader?

What's the best way to look for a pattern in a (potentially) very large text. I could use Regex but it accepts a string as an argument. Is there a way to use it with a TextReader or some kind of stream instead? ...

How do I add an assembly to a Visual Studio project and reference it?

I've compiled an assembly for MySql.Data.dll and would like to add it to a new Visual Studio Project. I'm lost on the correct terminology and how best to go about this, but the end goal is to distribute this dll so that it's included with the application when the application runs. This is to avoid having to GAC the dll on the end user'...

.NET solution for creating a Portal

What would be a good framework/package to create a portal like PageFlakes, or iGoogle? We are looking to create a employee/HR portal that offers HR services to employees but we also want a product that is flexible enough so that we can use it to create portals for other applications/purposes. I've looked at Liferay and Vyre Unify and t...

Which reporting framework or Reporting controls can be used with Mono.net ?List their names?

Like we have Crystal Report for MS.NET ,what are the different Cross platform reporting tool available for mono.net , please list out their names and URLs? ...

String Split & Search VB.NET

Need to take a string in vb and split it. Also need to look through the two returned values and return the value which contains "domain1.com". Pipelines are the delimiter. txtEmailFrom.Text = "[email protected]|[email protected]" Dim brokened() As String brokened = Split(txtEmailFrom.Text, "|") Dont know where to go from here... ...

Deep Copy a .NET Class Instance Without Serialization

I am using an instance class from a third-party DLL, and I need to do a deep copy on a particular instance. The class is not marked as Serializable, and therefore I can not use this suggested method using BinaryFormatter. How can I get a deep copy of this object without using serialization? ...

To Boolean or not to bool. Which one is better?

Is there a reason why there is an option for a Boolean and a bool? I dont seem to see the difference. ...

When I make a project reference in Visual Studio, do I then have to include the DLLs for those projects when I deploy?

I have a console application and two class library projects. The console application has to project references to the class library projects. When I build, it generates DLLs for these two projects. Do I have to include these with my console applications exe file? Is there a way I can make it so I don't have to include these 2 dlls? ...

Generic LINQ TO SQL Query

Lets say I have two L2S classes generated by the designer with one property as follows: public class A { public bool IsActive {get;set;} } public class B { public bool IsActive {get;set;} } I have a generic DataAccess class as follows: public class DataAccessBase<T> where T : class { NWDataContext dataContext = new ...

how to make my C# ComboBox display a value when it is running?

I just created a ComboBox in my VS2008. I put four items for it, One, Two, Three and Four. When I run it, nothing displayed by default. I need to select one to display. How can I make it displaying the second item by default at very beginning without my selection? I tried by put a number inside the DisplayMember and ValueMeme property bu...

GridView ASP.NET - passing a command and a ID to the code-behind

What is the correct way to pass a command and an identity Id (int) back to a code behind in ASP.NET. I'm looking at CommandName and CommandArgument. Am I reading it wrong but I think CommandArgument passes back the display index. How does this help? Can't figure out how I can set CommandArugment to the ID that I need. ...

Access a settings/preferences file on a server

My application has historically used an ini file on the same file server as the data it consumes is located to store per user settings so that they roam if the user logs on from multiple computers. To do this we had a file that looked like: [domain\username1] value1=foo value2=bar [domain\username2] value1=foo value2=baz For this re...

Specification pattern implementation help

Hi all, I've a question regarding enforcing a business rule via a specification pattern. Consider the following example: public class Parent { private ICollection<Child> children; public ReadOnlyCollection Children { get; } public void AddChild(Child child) { child.Parent = this; children.Add(child); ...

Create SqlXml object instead of string object

Hi, I have a method: public static string UnZipStr(byte[] input) { if (input == null){ return null; } using (MemoryStream inputStream = new MemoryStream(input)) using (DeflateStream gzip = new DeflateStream(inputStream, CompressionMode.Decompress)) using (StreamReader reader = new StreamReader(gzip, System....

Get height of rendered text and images in MS Word

Hi, I'm creating a newspaper authoring system. Today I'm using Aspose.Words library to generate newspaper using Docx format as output, based on a lot of other documents as input. The basic idea is to load a lot of articles documents into a List, then generate a final docx with newspaper. We need to get the total height of a text (with...