I've got a bunch of DLL projects that I'm pulling into my application, each contains their own Settings.settings/app.config. When I compile the app and run for debugging, everything works just fine, but come deployment time I can't get my DLLs to read their own settings files.
I've been doing some reading and it has become apparent tha...
I'm running a website on IIS 6 (Windows Server 2003) that hangs occasionally.
Timeline:
Released to the wild, website ran fine
for 3 days.
Website hangs on every request until
the website is stopped and started.
Website runs for 2 weeks with no
problem.
Website hangs on every request until
site is restarte...
I've inherited a Winforms application that does a lot of long running calls into the application server from the UI thread, so the UI stays unresponsive, unusable, unclosable for quite some time. (Which makes me really go AAAAAAAAARGH!)
I plan to move the server calls to a background thread and have the UI disabled - but movable & closa...
I am writing some C# 2.0 code which must do basic HTTP GETs and POSTs. I am using System.Net.HttpWebRequest to send both types of request and System.Net.HttpWebResponse to receive both. My code for GET looks like:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(String.Format("{0}?{1}",
URLToHit,
queryString));
request...
Let say I'm working on an Excel clone in C#.
My grid is represented as follows:
private struct CellValue
{
private int column;
private int row;
private string text;
}
private List<CellValue> cellValues = new List<CellValue>();
Each time user add a text, I just package it as CellValue and add it into cellValues. Given a Cel...
i have a System.Windows.Forms.Panel control in a windows application that has many labels and textboxes within the panel. When you call the Panel.Enabled = false command all of the textboxes and labels go gray and become un-editable which is the desired effect. Is there a way to overload the light gray colors when the panel is disabled? ...
Hi
how to copy all the tables from one mdb file to an other blank mdb file using C# code can anybody please help with the code?
Hi
Thanks for the file copy suggestion but after executing that query am getting this error"
Error 1 Invalid token '(' in class, struct, or interface member declaration
C:\Documents and Settings\E4578...
I have a DateTimePicker (nullable version) that I need to be read only. I'm not happy with the display if it is disabled, so wanted to know if anyone had a nifty example of how to stop updates on the field?
Thanks.
...
I have an XML file which is in the following format:
<root>
<category>
<doctype>
<name>Doc1</name>
<site>
<name>Site1</name>
<target>iframe</target>
<url>http://www.gmail.com</url>
</site>
</doctype>
<doctype>
<name>Doc2</name>
<site>
<name>Site2</name>
...
At present I am populating a standard .net 2.0 GridView & TreeView control using a physical XML document which uses an XSLT stylesheet. But i need to make the population of the grid more dynamic, while still using the XSLT style sheet
Does anyone know if it is possible to populate a standard .net 2.0 Gridview & TreeView control another ...
hello i need to place a tooltip above an htmlelemnt, i cant place the tooltip inside the parent of the element because of z-index possible problems,
i need a way to get the absolute position of the element,
i got him as a HTMLAnchorElementClass
...
Does anyone know how i can get the grid to select a row by clicking on any cell in the row?
The only way i can do this at the moment is by setting the AutoGenerateSelectButton property to True, but this adds a column to the grid with a crude "select" hyperlink and only selects the row if the word "Select" is cliked on.
Surely there ha...
I have a C# user control project which causes intermittent .NET run time error, a generic error, and wondering if there is any code analysis tool that I can point at my .sln file which would tell me what may be causing my error
...
I have a subclass of System.Windows.Forms.TreeView that's manually "bound" to a set of hierarchical data. I want the user to be able to edit the labels of the tree, and have the changes reflected back to the data. So I set LabelEdit to true and overrode OnAfterLabelEdit to the tune of:
protected override void OnAfterLabelEdit(NodeLabe...
Are there any libraries for .Net for building sql statements?
(BTW I know about ADO.NET SqlCommand, SqlParameter classes already)
I'm currently developing a library to do this but am now wondering if there is already something out there which might be better.
Edit:
At this point I'm only interested in returning a DataTable object as...
Hi,
I'm trying to copy a custom object from a RDC window into host (my local) machine. It fails.
Here's the code that i'm using to 1) copy and 2) paste:
1) Remote (client running on Windows XP accessed via RDC):
//copy entry
IDataObject ido = new DataObject();
XmlSerializer x = new XmlSerializer(typ...
I have a bunch of office 2003 documents (.ppt, .doc, .xls) in a folder, and need to extract the "author" property from each file. What would be the best way to do this, is there some sort of (free) office-api I could use to read this information?
I'm using .NET 2.0
...
I've been wrestling with Project Euler Problem #16 in C# 2.0. The crux of the question is that you have to calculate and then iterate through each digit in a number that is 604 digits long (or there-abouts). You then add up these digits to produce the answer.
This presents a problem: C# 2.0 doesn't have a built-in datatype that can ha...
We're evaluating some enterprise search servers and would like to have some developer feedback on the API's of Recommind, Autonomy and/or FAST (now owned by Microsoft). We're a .NET shop so we'd either be using web services (xml) or some kind of API wrappers to hook into the search application. Anyone use any of these products before -...
I have a Standard .net 2.0 data grid which uses a XMLDatasource. The datasource is set dynamically by passing in XML string to the "Data" property of the XMLdatasource on a button click event.
This workd fine the first time around but not on subsequent button clicks.
i.e. eventhough the xml passed in changes the grid only diplays the ...