.net

What is meant by: "Client side asynchronous frameworks"

I was looking at a job posting requesting a desired knowledge of: "Client side asynchronous frameworks". What do they mean by this with respect to Microsoft technologies, specifically .NET framework? ...

How do i put 2 DataSet Table Results in one GridView Column?

I have two results from a data set. I want to add both results in one gridview column. I do not want to merge in the code behind. Is there another way to do that? <asp:TemplateField HeaderText="Entered Date" SortExpression="Date"> <ItemTemplate> <div style="text-align: center;"> ...

How do I inject a custom UITypeEditor for all properties of a closed-source type?

I want to avoid placing an EditorAttribute on every instance of a certain type that I've written a custom UITypeEditor for. I can't place an EditorAttribute on the type because I can't modify the source. I have a reference to the only PropertyGrid instance that will be used. Can I tell a PropertyGrid instance (or all instances) to u...

How to save a .net XML Document to a path with an & in it

I am saving an XMLDocument object to disk using the Save (string) function. When I do this I get a "Could not find a par of the path" error. I have tried passing the characters as "&", "&", "%26", "\26", and "\38". What am I missing? Note that I am not talking about the content of the file -- but the filename. Dim todocument As New ...

How do you hide a column in a datagrid using the .net compact framework 3.5

I have a DataGrid that is using a DataReader as its datasource. I want to hide the first column of the datagrid. I am using the .net compact framework 3.5. I can find examples for windows forms but the api is changed enough that they don't work. ...

Whats a great way to perfom integration testing!?

Hi All, We have written our own integration test harness where we can write a number of "operations" or tests, such as "GenerateOrders". We have a number of parameters we can use to configure the tests (such as the number of orders). We then write a second operation to confirm the test has passed/Failed (i.e. there are(nt) orders). T...

Persistent Layer Validations

While saving data using a stored procedure often we encounter foreign key constraints, unique key constraints, etc. All such errors can be corrected by passing in the right data. Validation can be done in the business logic layer and should be sent to the persistence layer only if it succeeds. But in some cases it is convenient to valid...

Find COM DLL path from Com Interop Assembly

I am trying to write a wrapper around a legacy COM object and install the wrapper into the GAC. The goal would be to automate the setup of specific configuration information the component requires, and make a common strongly typed interface for all of my applications to use. My solution thus far is to keep an XML configuration file in ...

How to define endpoint without web.config or httpModule?

I would like to make a RESTful app of HTTPhandlers without having to define every endpoint by making an entry in the web.config, i'd like the style of attaching attributes to a class constructor eg: public class obj : IHttpHandler { [WebGet(UriTemplate = "/accounts/{id}")] public obj(string id) { // this is just an eg, it wor...

Is there a Mercurial API that can be used to program against in .NET

I want to create a .NET client for mercurial. Nothing fancy, just the basic stuff. ...

Format Text from a Textbox as a Percent

I have a numeric value in a Textbox that I'd like to format as a percent. How can I do this in C# or VB.NET? ...

Is there a OWL reasoner for .NET

Hi, I'm looking for an OWL-DL reasoner that provides an .NET API. Alternatively I could use a DIG compliant reasoner written in any language, but i need a .NET library that is able to convert OWL ontologies into DIG XML language. Anyone heard about such tools/libraries? ...

Dynamic ASP.net Web Forms

I am creating an ASP.NET application in which the administrator of the program will be able to define custom fields for forms that the users will fill out and submit. The admin needs to define various types of fields like checkboxes, radio buttons, textboxes, and textareas for the user to fill out. The admin also can define whether thes...

Retrieve row order from DataGrid 1.0

I am working a legacy app which is .net 1.1 and I need to retrieve the rows in a datagrid post sort (by clicking on column header). This sounded like an easy task however, the answer seems to elude me. I can retrieve the rows from the dataset just fine but, they are not sorted again when the header is clicked. I appreciate any input. ...

WPF - Image Source - Not Fall Within Expected Range

In my XAML and when I build I get the following exception: Error 3 Value 'colorpick.png' cannot be assigned to property 'Source'. Value does not fall within the expected range. Here is the XAML: The "Source="colorpick.png" is underlined. One of the few things I could find regarding this was the below blog post: http://nickeand...

.net installation project registry problem

Hi, I'm making an installation project for my .net app (c#), and i want it to add some entries to the registry, but in some of them I need to write the installation folder, and in other I want to save the full path of the main result of the app (the .exe file) How can i do this? are there some special variables or something like that i...

Debugging C# to Intel C++ in different projects

Similar to this problem here: Old Question about C# debugging I'm trying to debug a library that's used in multiple projects and is compiled using Intel's C++ v 11 compiler (ie, not the standard compiler) in Visual Studio 2008. The current platform I'm using to debug is a C# program that calls the C++ method through a p/invoke. Is th...

Return DataReader from DataLayer in Using statement

We have a lot of data layer code that follows this very general pattern: public DataTable GetSomeData(string filter) { string sql = "SELECT * FROM [SomeTable] WHERE SomeColumn= @Filter"; DataTable result = new DataTable(); using (SqlConnection cn = new SqlConnection(GetConnectionString())) using (SqlCommand cmd = new Sq...

How do I control a Power Strip's power from C#?

Duplicate What's the most practical way to toggle several power items with a PC? I'm automating the build system for my company's development team and wanted to have a stoplight in our office window represent the outcome of the nightly build. Does anyone know of a device I can buy that has an API I can code against to turn power o...

How do I access the Properties namespace from within a console app?

Hey everyone.. I am trying to store/retrieve a value that is stored in the Application Settings. From within my console application I can not seem to access the Properties.Setting namespace. My web surfing has revealed that a little more work might be needed to do this from within a Console application. How does one do this? string tes...