Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » C#   (RSS)

Refactor Request

Not sure if it's already there, but the folks at DevExpress or JetBrains (or Microsoft, but I don't want to wait for another VS) should have a refactoring for CodeRush/Refactor! or Resharper that will convert verbose properties into C# 3.5 short properties,
Posted by ssmith | 8 Comments
Filed under: ,

Tweak web.config To Set Compilation Debug False

ASP.NET applications should never run with <compilation debug="true"> in production. It can have drastic performance implications (of the negative kind). Obviously, in a perfect world, developers would always remember to verify this setting whenever
Posted by ssmith | 1 Comments
Filed under: , ,

Trends in Programming Languages

Al Pascual wrote about some trends he noticed using Google Trend , with regard to different programming languages. It's an interesting tool, since it can be used to gauge general interest in particular keywords and search terms, as well as news, going
Posted by ssmith | 3 Comments
Filed under: , , ,

ASP.NET Provider Source Code Install Path

Some months ago, ScottGu announced the availability of source code for the ASP.NET providers . This was great news and a great many comments followed. In preparation for a talk I'm giving this week at DevConnections , I went out to grab the source again
Posted by ssmith | 2 Comments
Filed under: ,

Check if Unique Constraint will be violated before Insert with LLBLGen

I needed to determine if a unique constraint would be violated so that I could programmatically update the Name of a business object to make it unique today. I use LLBLGen for this project's database layer, and I have a unique constraint (actually a unique
Posted by ssmith | 2 Comments
Filed under: ,

Limit Rows In DataTable or DataSet

I wrote some quick and dirty ADO.NET code to go against an RSS feed instead of a flat XML file today. In the process I had to figure a way to limit the number of rows returned by the function, which returns a DataTable. The simplest method I found was
Posted by ssmith | 2 Comments
Filed under: , , ,

Render User Control as String Template

Scott Guthrie has a great example of how to use an ASP.NET user control as a template which one can dynamically bind to data and then pull the results out as a string . One place this is useful is in AJAX scenarios in which you want to replace the contents
Posted by ssmith | 6 Comments
Filed under: , ,

Nice Products for Developers

We have a new intern starting with us at Lake Quincy Media today, and in the course of getting him set up, I thought I would mention of a few products we're using that work quite well for us here. The first one relates to training new interns with limited
Posted by ssmith | 1 Comments
Filed under: , ,

Real World ASP.NET Performance Tuning Experience

I'm in the midst of wrapping up a multi-year long project to replace the advertising engine used to host sponsored ads on a few dozen .NET web sites . This system traces its "lineage" back to an old ASP application written in 2001 (it served

Fixed: CCNET + MSBUILD Logger Error

Ran into a snag this weekend with my build server - it started throwing errors related to the path to a folder, like this: .MSBUILD : error MSB4015: The build was aborted because the "MsBuildToCCNetLogger" logger failed unexpectedly during shutdown. System.ArgumentException:
Posted by ssmith | 4 Comments
Filed under: , , , ,

Sort Generic List of T

Plenty of others have written about this so I'll keep it brief. I needed to sort some objects based on a string property. Some quick searching led me to this post which got me close to what I wanted. My final code was this: myThings.Sort( delegate
Posted by ssmith | 5 Comments
Filed under:

Display Current Bin Folder Content Information

As part of my automated build and test process, I wanted to be able to confirm that my third party components were the proper version and, more importantly, that they were fully licensed. For some components, I can create a new instance of the control

Microsoft Robotics Studio Released

Officially this morning, Robotics Studio was released. With Microsoft Robotics Studio, robotic applications can be developed using Microsoft Visual Studio, Microsoft Visual Studio Express C# and VB as well as Microsoft IronPython. Read the Press Release
Posted by ssmith | 0 Comments
Filed under: , , ,

C# 3.0 Feature Notes

Anders Heljsberg has been giving us an overview of new C# 3.0 features this morning. I’ve made a few notes. Most of this info is available elsewhere, and I’m not re-typing the code from his demos, but there might be some useful tidbits here
Posted by ssmith | 4 Comments
Filed under: ,

CSharp C# Feeds Help Wanted

CSharpFeeds is a simple community site dedicated to keeping up with the latest goings-on in the C# world, while eliminating the noise and personal/social posts from the various C# blogs out there. This task involves individually touching each post to
Posted by ssmith | 1 Comments
Filed under:
More Posts Next page »