Skip to main content
Filter by
Sorted by
Tagged with
5 votes
3 answers
3k views

I'm trying to generate a sitemap.xml on the fly for a particular asp.net website. I found a couple solutions: chinookwebs cervoproject newtonking Chinookwebs is working great but seems a bit ...
jdecuyper's user avatar
  • 3,963
158 votes
17 answers
51k views

Note: This was posted when I was starting out C#. With 2014 knowledge, I can truly say that auto-properties are among the best things that ever happened to the C# language. I am used to create my ...
Michael Stum's user avatar
8 votes
13 answers
6k views

My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in ...
Dogmang's user avatar
  • 717
32 votes
1 answer
20k views

Scalar-valued functions can be called from .NET as follows: SqlCommand cmd = new SqlCommand("testFunction", sqlConn); //testFunction is scalar cmd.CommandType = CommandType.StoredProcedure; cmd....
goric's user avatar
  • 12k
21 votes
11 answers
41k views

I'm trying to rebuild an old metronome application that was originally written using MFC in C++ to be written in .NET using C#. One of the issues I'm running into is playing the midi files that are ...
jerhinesmith's user avatar
  • 15.6k
868 votes
17 answers
295k views

Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity framework. My question is this. When trying to decide between using the Entity Framework and ...
Chris Roberts's user avatar
22 votes
5 answers
50k views

We are looking for a WYSIWYG editor control for our windows application (vb.net or c#) so that users can design HTML emails (to send using the SMTP objects in the dot net framework) before sending. ...
John's user avatar
  • 30.7k
8 votes
8 answers
1k views

Imagine an object you are working with has a collection of other objects associated with it, for example, the Controls collection on a WinForm. You want to check for a certain object in the ...
goric's user avatar
  • 12k
5 votes
2 answers
2k views

I just read up on a performance of LINQ, and there is a HUGE amount to be gained by using Compiled LINQ. Now, why won't I always use compiled LINQ?
Vaibhav's user avatar
  • 11.5k
0 votes
1 answer
832 views

Over the past few years I've changed from having a long flowing page of controls that I hid/showed to using a lot of user controls. I've always had a bit of a discussion between co-workers on best ...
Brian Childress's user avatar
2 votes
7 answers
5k views

I'm learning about binding in WPF. I'm having a lot of trouble debugging the parse errors in my xaml, though. What's wrong with this little piece? : <Border Name="TrackBackground" ...
MojoFilter's user avatar
  • 12.3k
8 votes
4 answers
4k views

I was trying to get my head around XAML and thought that I would try writing some code. Trying to add a grid with 6 by 6 column definitions then add a text block into one of the grid cells. I don't ...
user avatar
97 votes
12 answers
24k views

What I want to do is something like this: I have enums with combined flagged values. public static class EnumExtension { public static bool IsSet<T>( this T input, T matchTo ) ...
Keith's user avatar
  • 157k
6 votes
4 answers
1k views

What is a good way to perform animation using .NET? I would prefer not to use Flash if possible, so am looking for suggestions of ways which will work to implement different types of animation on a ...
Xetius's user avatar
  • 47.4k
10 votes
8 answers
2k views

I have come across the following type of code many a times, and I wonder if this is a good practice (from Performance perspective) or not: try { ... // some code } catch (Exception ex) { ... /...
Vaibhav's user avatar
  • 11.5k
34 votes
7 answers
12k views

I am working on a new project. Is there any benefit with going with a WCF web service over a regular old fashion web service? Visual Studio offers templates for both. What are the differences? Pros ...
jdiaz's user avatar
  • 7,512
19 votes
6 answers
12k views

I've been using a lot of new .NET 3.5 features in the work that I've been doing, lately. The application that I'm building is intended for distribution among consumers who will probably not have the ...
Jeremy Privett's user avatar
126 votes
4 answers
24k views

Why are unsigned integers not CLS compliant? I am starting to think the type specification is just for performance and not for correctness.
doekman's user avatar
  • 19.4k
8 votes
3 answers
873 views

I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project ...
Brian Childress's user avatar
16 votes
5 answers
5k views

Has anyone had any experience in building a 'real world' application with the Smart Client Software Factory, from Microsofts Patterns and Practices group? I'm looking for advice on how difficult it ...
Martin's user avatar
  • 40.5k
17 votes
9 answers
13k views

I'm looking for a .NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link. And a side ...
Chris Smith's user avatar
  • 18.8k
6 votes
4 answers
2k views

If I have .Net Form with a component/object such as a textbox that I need to access from a parent or other form I obviously need to "upgrade" the modifier to this component to an Internal or Public ...
Calanus's user avatar
  • 26.4k
19 votes
7 answers
4k views

I'm writing some data acquisition software and need a gui plotting library that is fast enough to do realtime updated graphs. I've been using Nplot which is pretty good for a free library, but I'm ...
Luke's user avatar
  • 19k
8 votes
3 answers
2k views

I have a self-referential Role table that represents a tree structure ID [INT] AUTO INCREMENT Name [VARCHAR] ParentID [INT] I am using an ADO.NET DataTable and DataAdapter to load and save values to ...
Justin Walgran's user avatar
20 votes
1 answer
5k views

I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification ...
Fajar's user avatar
  • 333