I have a WPF/ASP.NET project which I haven't worked on for a while (ResourceBlender.NET - http://resourceblender.codeplex.com/). The project contains a DataLayer and a Core layer, these are both used by the WPF application and ASP.NET project in the solution.
If the WPF project is set as the startup project and I try to build the applic...
I'm looking to build a solution similar to this one:
http://esqinc.com/section/products/4/idocid.html
What the system makes is insertion of a document file name into the document footer. How's that possible programmatically (preferably in .NET)?
...
I have been given a task to write a program to automatically create a 2010 exchange mailbox. My research tells me to use powershell but I can't seem to find the namespace to reference and would like some sample code. I found some code on the web but I don't know what the namespace is for PowerShell. I think it might be System.Manageme...
Hi,
I have a strange problem that I don't understand about DataPager. After changing the page set (pages 6 - 10 for example), and clicking on a page (6, 7, 8, 9 or 10), it will displa to the first set of pages counting from 1 again.
Let me explain. I have a ASP.Net page with Listview and DataPager.
<asp:ListView ... DataSourceId="Ent...
I need to write a .NET web service which will be consumed exclusively by an iPad app.
We are leaning towards using REST but could someone let me know whether this is the easier way (from the iPhone side).
...
I have a stored procedure, which writes a backup of a specific database. I call this SP in a C# / Windows Forms application asynchrounously. Here is the code snipped:
IAsyncResult result = command.BeginExecuteNonQuery();
while (!result.IsCompleted)
{
System.Threading.Thread.Sleep(1000);
...
}
command.EndExecuteNonQuery(result)...
I have a Visual Studio 2008 solution that has the following projects:
a C++/ATL COM library
a C# library that uses the COM library
a C# unit test library (using MSTest) that references the other two libraries
The C++ COM library project has a Custom Build Step that builds a .NET interop library, which looks like this:
tlbimp /asmver...
I have a ListView control in .NET Winforms containing filenames from a directory. When first displaying the control, I populate the listview, then programmatically select the first item in the list thusly:
if (lvwFiles.Items.Count > 0)
{
ListViewItem firstItem = lvwFiles.Items[0];
firstItem.Selected = true;
}...
I am trying to find 64 bit version of Pegasus ImagExpress. The one they have for download is v10 and they have changed the library signatures and the usage. We are compelled to change the code base now.
Any ideas?
...
Whenever I create a new Web Form on Visual Studio 2010, the default name is always "Default.aspx". This is a slight pain as I'm having to change it to "Index.aspx" each time.
How can I change this so that "Index.aspx" is the default name?
Thanks.
...
Is it preferable to return a Dictionary<int, int> or an int[][] on a WCF response? Or does it not matter?
...
I understand how to use the BitArray class, but am looking for an instance where one could put it to use in a real world program.
...
I needed to test the performance of my site on a remote server (do not have IIS access). I am also using Visula Web Developer / Studio Professional 2008 (But not team system version).
I wanted to test the performance of my login page for multiple concourant logins. I have found 2 tools - WCAT & Apache Bench for this.
Can you tell me h...
Explain the use of ISynchronizeInvoke in cross thread invocation in .NET?
...
I have several web sequential pages which will modify a record and its child records in the database, called a "project". Such a project is currently passed between pages using its database ID in the URL parameters.
A project has some information specific to itself, and also consists of one or more Tasks, which each have information sp...
Here's my code:
[Serializable()]
public class Project
{
private List<string> _Kinds = new List<string>();
public DataTable ExtractedElementsTable;
public Project()
{
ExtractedElementsTable = new DataTable();
ExtractedElementsTable.TableName = "Output";
}
public List<string> Kinds
{
g...
The following code was grabbed from MSDN: http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.stringlengthattribute.aspx
[MetadataType(typeof(ProductMetadata))]
public partial class Product
{
}
public class ProductMetadata
{
[ScaffoldColumn(true)]
[StringLength(4, ErrorMessage = "The ThumbnailPhotoFi...
I'm creating a base class for a button that inherits from Control as opposed to ButtonBase.
I'm using reflector to look at ButtonBase to make sure I don't overlook anything important and I'm puzzled with the contents of the WndProc method.
There's checks in there for things like button up, click and capture changed, which as far as I can...
I have master-detail relationship. Basically I have a list of states and a list of towns per state.
I want for it to display something like
Oklahoma
> Tulsa
> Oklahoma City
Arizona
> Phoenix
> etc etc
and etc.
The city names and the state names are stored in different tables with each city containing a state_id
I am using SubSo...
I'm looking to provide users with ability to drag&drop files from grids and other controls in my application into Explorer.
Any good samples/articles for that?
...