Is there a way to determine a column's defaultvalue from the Sql Database using ado.net?
I tried using the SqlDataAdapter's FillSchema method:
using (SqlDataAdapter adapter = new SqlDataAdapter()) {
adapter.SelectCommand = myConnection.CreateCommand();
adapter.SelectCommand.CommandType = CommandType.Text;
adapter.SelectCom...
I discovered that even numbers of overlapping shapes added to canvas like that:
GeometryGroup gg = new GeometryGroup();
EllipseGeometry e1 = new EllipseGeometry(new Point(10, 10), 20, 20);
EllipseGeometry e2 = new EllipseGeometry(new Point(10, 10), 20, 20);
//EllipseGeometry e3 = new EllipseGeometry(new Point(10, 10), 20, 20);
gg.Chi...
I am using VS2008 Team System.
I am unable to find MVC Web Application template to start a MVC app. Do I need to install it separately?
...
What is the idiomatic way to delete old documents from a Lucene Index?
I have a date field (YYYYMMddhhmmss) on all of the documents, and I'd like to remove anything more than a day old (for example).
Should I perform a filtered search or enumerate through the IndexReader's documents?
I'm sure the question is the same regardless of whi...
So what I am trying to do is to have a set UI with certain controls, and I want to have some class instance to fill in the values.
For instance:
Classes that can populate the UI:
Sharpen, Blur, Smear, ... : FilterBase
So whenever the user creates an instances of the above classes, I want to automatically fetch the values based on th...
Hello,
Quick background: I develop C# in VS2008 under .net 3.5 on a Vista-x64 machine
I recently switched to Vista-x64 and after some searching, I still feel that I do not completely understand interplay between OS and the .net framework. I would like some correction/clarification regarding this.
The following is my understanding of t...
Is there a way to have a partial class' constructor call another method that my or may not be defined?
Basically my partial class constructor is defined:
public partial class Test
{
public Test()
{
//do stuff
}
}
I would like to be able to somehow insert extra code to be run after the class constructor is cal...
We are about to embark on migrating our CRM 3.0 installation to CRM 4.0. We have a lot of custom entities, and have written a lot of code using the web service SDK, Stored Procs hitting the views in SQL for the entities, and even some Workflow and Callout DLLs. While I'm certainly not going to miss the .Net 1.1 development environment o...
All: Are there any free solutions out there for sending text messages (SMS) via .net? (maybe a web service or something?).
EDIT
What I'm really looking for is a reference for a reputable online service that I can use for sending SMS messages. Has anyone out there used such a service, and if so, can you give me a recommendation/warn...
I have a few datapoints that include the offset from gmt (in seconds). I would like to send a message via a socket at midnight. Sending the message is no problem, im just having trouble determining the time based on the offset.
Anyone have any suggestions for this?
...
Not all pages do this, but a good example would be youtube.com. Mostly if you are resizing the window larger, opposed to smaller. Lots of content flickers horribly in this case. I've seen some posts on the net attempt to claim sorts of double buffering will stop this, but I've yet to see any example of the proper implementation. Thank yo...
Say I have the following class hierarchy defined in a class library:
public interface IFoo
{
string GetMsg();
}
public abstract class FooBase
{
public virtual string GetMsg()
{
return "Foobase msg";
}
}
public class Foo : FooBase, IFoo
{
#region IFoo Memb...
I have a C#.Net Web Service and php client to invoke the web service.
Web Service Methods takes C# objects as parameters and returns C# objects as follows
Site getSite(siteID){ return Site.load(siteID) }
or
void newSite(Site site){ site.save(); }
I know that WSDL tool generates c# classes and java has code generator for web servi...
by script or programmatically ? I have a bunch of files that need to be converted
wondering if there's a better way than go through the prompts one at a time
OS windows Vista/XP
...
Hi,
I'm looking for a WinForm.Net chart control that has more feature on user interactivity. A few specific thing that I have in mind:
Multiple selection of the bars/bubble
Drag-drop support of the bars/bubble out of the chart control
Auto highlight on mouse-hover
Any suggestion.
Thanks
~ Eric
...
Are there any reference patterns for .Net server applications relating to storing and retrieving sensitive per user information such as 3rd party credentials?
My preliminary design thoughts are along the lines of:
Generate a self signed X509 certificate with appropriately strong private key,
Export the certificate and key and store th...
Inspired by Javascripts variable Arguments in Max()/Min() and list comprehension in functional languages I tried to get the same in VB.NET using Generic Extension methods given IEnumerable(of T) as resulttype. This works well excepts for strings. Why?
These kind of extension methods may be considered a bad idea. Any strong reason Why t...
Hello,
I am trying to make a product key registrar for my program. I want the product keys in a database or a dictionary type thing where I can make new keys everyday without putting them into the program, and redistrubate them everytime. I'm not sure where to get started, so if anyone has any ideas please post them
thanks,
kevin
...
Hi,
msdn give's us this example to retrieve the post data.
public static void ShowRequestData (HttpListenerRequest request)
{
if (!request.HasEntityBody)
{
Console.WriteLine("No client data was sent with the request.");
return;
}
System.IO.Stream body = request.InputStream;
System.Text.Encod...