I need to store a list of columns/datatype pairs as app settings.
The amount of column/datatype pairs will be around 50 - 100, but could be more.
I cannot store these in a table due to client requirements.
There will be UI for the user to add/edit/delete from the list.
I was initially thinking of a delimited string stored in app.config....
Sorry for being somewhat vague but so is the project I'm leading now. I inherited a large body of various in-house tools and am trying to put unified build system around each one.Some of the projects we have (few dozen) are .NET-based web-projects C# mostly, some of these are web-services and some webapps. The apps were build over past 6...
When I embed IronRuby what is the proper way to get a reference to either Ruby's DateTime/Date classes or .NET's System.DateTime. I'm running into errors when I try
require 'date'
I get the error - no such file to load -- date
when I try
require 'mscorlib.dll'
I get the error - no such file to load -- mscorlib.dll
What is the right w...
I'm trying to do something in C# that I do all the time in Ruby, and I wondered what the closest thing would be.
If the Enum does not contain a definition for my integer value, I want it to default to a certain value. Can I do this in one line?
Ruby-ish assignment (two examples):
namedStr = Enum.GetName(typeof(myEnum), enumedInt) || "...
If I call SelectNodes on an XmlElement, and pass XPath query such as this:
XmlNodeList nodes = xmlElement.SelectNodes("//OtherNode");
The nodes list will be for all the OtherNode elements in the document not just the ones from xmlElement.
I seem to recall that this is by design, and for a good reason, but I can't remember what that g...
I am having two date values, one already stored in the database and the other selected by the user using DatePicker. The use case is to search for a particular date from the database.
The value previously entered in the database always has time component of 12:00:00, where as the date entered from picker has different time component.
...
There is an enum of all supported processor architectures here: http://msdn.microsoft.com/en-us/library/system.reflection.processorarchitecture.aspx
Is there any way to determine which one corresponds to the running environment? System.Reflection.Assembly.GetExecutingAssembly().ProcessorArchitecture returns MSIL -- obviously wrong.
EDI...
I am using the standard datepicker control from silverlight. If i happen to type junk text into it and try to clear the data by setting the Text property to empty, it wouldn't clear the data.
There is a method called ClearValue but not sure what to give as input parameter.
What could i be missing here?
...
I read the DIY Intellisense article on code project, which was referenced from the Mimic Intellisense? question here on SO.
I wanna do something similar, DIY intellisense, but for XPath not C#.
The design approach used there makes sense to me: maintain a tree of terms, and when the "completion character" is pressed, in the case of C...
How would one go about keep an object in memory such that it won't be paged out by the OS in .Net?
i.e. Something similar to VirtualLock, but operating on an object, such that if compacting occurs and the object is moved it still would not be paged out, etc.. (I suppose one could pin the object's, determine what pages it belongs to, and...
How can you handle events thrown by .NET object using PowerShell v2? Can someone point me to a simple code sample?
...
I'm designing an application for a type of case management system that has a big requirement for customizable, flexible business rules. I'm planning on using the WF Rules Engine without workflow (see: here, among other examples and such).
One of the points my client brought up (justifiably so!) is whether there are extant examples of u...
Disclaimer: I have browsed http://stackoverflow.com/questions/tagged/asp.net+hosting and didn’t find anything quite similar in value to Dreamhost.
One of the biggest impediments IMHO for developing web applications on asp.net is the cost of deployment. I am not talking about building sites like Stackoverflow.com or plentyoffish.com....
I have a repeater. I can access individual properties of the element being repeated on - e.g. if my repeater is bound to a list of people, I can access 'FirstName' with
#Eval("FirstName").
However, I would like to actually store the current element in a variable
Person person = ... GetCurrentElement ...
Is there any way to do thi...
Is there some uniform way I can implement behavior that occurs around a set of WCF service calls? I'm looking for a simple way to handle cross-cutting behavior like logging, initialization, error handling, authorization etc. With ASP.NET a lot of this is easy to implement as an HTTPModule.
Any helpful suggestions?
...
I have a C# application that saves its state when it is closed and then reads in the saved state when it starts up. One item that is saved is the location of the main form. Normally this works great - in my code there is a line like this that saves the location to a file that is then read back in on startup:
streamWriter.WriteLine("lo...
How can I programmatically tell if a binary file on a website (e.g. image) has changed without downloading it? Is there a way using HTTP methods (in C# in this case) to check prior to fully downloading it?
...
If you are working with a large List (lets say 1GB in size), and it needs to be resized to make room for additional items. Is it possible to read/write to that list while it is being resized, or is the call going to be bocked until the operation is finished?
...
MyManagedFunc in managed.exe calls into MyUnmanagedFunc() in unmanaged.dll. I produce a minidump in unmanaged.dll using Win32. SetUnhandledExceptionFilter. I can see MyUnmanagedFunc in the callstack, but nothing usefull in the managed side.
I'm supposed to be able to use WinDbg and SOS.dll to see the managed calls, right? Below is ...
...or do I need Studio to view it?
...