I'm using Windows WF right now for a simple way to state machines. In fact, I'm not even using a state machine, I'm using a sequential workflow. Eventually, I will ditch WF in favor of something else, but since I already have the code working, I need to get the Abort, Suspend, and Resume methods working.
My application spawns a thread...
I have a client and a server.
On the client side I have:
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("http://localhost/fa/Default.aspx");
request.Method = "POST";
byte[] data = Encoding.ASCII.GetBytes(GetSAMLRequestB64());
request.ContentType = "text/xml";
request.ContentLength = data.Length;
Strea...
Suppose I have the following class structure:
public class State
{
public int Id { get; set; }
public DateTime StatehoodDate { get; set; }
public IList<City> CityList { get; set; }
}
public class City
{
public int Id { get; set; }
public string CityName { get; set; }
}
Tied to the following tables in NHibernate:
CR...
What does the using statement do? Is it actually needed?
using (MyWebservice x = new MyWebservice())
{
//random code
}
...
Could you help to understand generally how the applying of patch or an update works for already compiled and live application at the level of code?
I mean, if we want to fix an error (or improve a functionality) in some piece of code, what is happening with that already compiled code, how it gets changed?
...
I've inherited this project from the previous guy, and I'm presently in the process of switching over a number of assembled-from-string SQL queries into LINQ to SQL, which I'm told is what makes life in .NET worth living. However, I'm running into problems filtering a Many-to-Many relationship.
The system is a Project Management intr...
.NET allows you to use .settings files to manage application settings. I would like to store Production, Development and Test settings separately in a way that I can do something like this:
EnvironmentSettings environmentSettings;
// get the current environment (Production, Development or Test)
ApplicationEnvironment Environment = (Ap...
I'm new to WPF for Windows application development, just wanted to put that out there first. I'm using Visual Studio 2010 and .NET Framework 4.0.
I'm working on a rather simple administration tool. For simplicity sake lets say I'm working with Employee data. I've created a little UserControl called UserDetail that has all the fields ...
Hi,
I'm using forms authentication to log in into windows sharepoint servevices 3.0 service.
I need to elevate during anonymous access, rights to add record to sharepoint portal list.
I found clue in msdn:
http://msdn.microsoft.com/en-us/library/bb466220%28classic%29.aspx
But it doesn't work for me. :( It's still calling for user logi...
I am using a DataGrid (.NET 1.1) to which data is being binded from data source which gets almost 3000 rows and 25 columns. Because of heavy data, it is taking around 3 minutes to laod data on to datagrid. I want to load first50 records, then next 50 , then next 50... so on...
How can I achieve this ?.. i tried using Paging option but ...
I'm trying to create a property that will allow the setting of a last name based on a variety of inputs. The code that calls this is parsing a name field. In some instances it will have a single last name, in others, a array of last names that need to be concatenated. I want to keep my concatenation code in a single place to make mainten...
I need to clone CF cards (with a certain amount of custom functionality that precludes using off-the-shelf cloning tools). I need a proper image for this to work - I can't just copy all the files. I would like to write a program for this in c#, but I have no idea where to start.
Could anyone point me to a basic sample or something to ge...
I have created a custom Profile Provider that is integrated with the API of a CMS. It works fine when pulling data for an authenticated user (Profile.FirstName), but errors when creating a new user's profile.
Here is the section from web.config
<profile enabled="true" defaultProvider="CustomProfileProvider" inherits="objProfile">
<p...
I have inherited both an existing WinForms app and an existing .CHM file, created using Dr. Explain. I need to reference different topics within the CHM from different parts of my WinForms app, but I don't know what topics, if any, are defined within the CHM. Is there a tool that lists all existing topics that I can reference using the S...
I have a Windows service and an MSI installer (setup project) for it. The setup project has custom actions for install and uninstall with args of /install and /uninstall respectively.
I would like the service to start immediately after the install. All my service does is starts a process. When the service is stopped, it does process.Clo...
I added a web reference to my project. The reference is clearly visible within my solution. I have been able to instantiate all classes within the Reference.cs file but one. When I opened the Reference.cs file the class was not there. There is documentation of the existence of that class, but the class does not exist within my Reference ...
Now that VS2010 is in RC it seems it's only matter of weeks until first new 'core' runtime release since 2.0. Whilst I do not have immediate needs to upgrade I'm wondering if anyone has done some performance testing/benchmarking between the two.
If there are any noticeable performance gains then it would be beneficial to recompile exis...
I am looking for a way like Social Networks site retrieve additional data when the last record is visible to user.
How I am able to do that for a ListView in Compact Framework (c# mobile app).
Still looking for answers 2
...
In C#, what is the purpose of marking a class static?
If I have a class that has only static methods, I can mark the class static or not. Why would I want to mark the class static? Would I ever NOT want to mark a class static, if all the methods are static, and if I plan to never add a non-static method?
I looked around and saw some...
I am using a .NET PropertyGrid control in my C# project.
When the form containing the grid loads, the horizontal splitter (which divides the Settings from the Description) is at a default position. How do I change the position of that splitter programmatically in C#?
...