| david's profileDavid Yardy PE, MCSD.NET...PhotosBlogLists | Help |
|
January 25 .NET 3.5 SP1 : How to tell if it is installed?Ever want to know if you have 3.5 SP1 installed? Shown below are two ways to determine.
2.) An easy way to see if you have 3.5 SP1 installed is to navigate to http://www.hanselman.com/smallestdotnet/ Near the top of this page you will be given an indication if you have the latest installed. If you do not have it installed you can use the following link to navigate you to Microsoft Downloads for Microsoft .NET Framework 3.5 Service Pack 1. This link will installed a small installer that will need to be executed. A wizard will step you through the installation and additional downloads. If you prefer a complete download of this SP1 you can use this link. December 07 String Literals and C#I was looking for some utility that would take a very long string and convert it to vb.net or c# with line continuation(s) characters. String literals to the rescue. C# supports two forms of string literals: regular string literals and verbatim string literals. “FROM customers “ + “WHERE custId=10”;
The above sample can be replaced with the ‘literal’ designated by the @ symbol as follows: string sql = @“SELECT July 11 New Blog LocationI have moved my web log to the following location http://blog.davidyardy.com/ My RSS feed can be found at http://feeds.feedburner.com/davidyardy From this RSS feed you can view all log entries on my new and old blog location. It was time to move my blog back to my own domain. It was on that domain for quite a while then as it was short some features I moved to Spaces. Now once again I am back to my own territory/domain. Given a little time I hope to re-brand the blog and related web site. June 17 Coding Emails on VistaMicrosoft removed the SMTP server on Vista. As a result any email testing on your development box will need to address this change. Most developers will discover this through some exception after they try to run their application locally. Two options
Mail Settings Configuration – add the following to your web.config. After making the modifications to your web.config all emails sent will be in .eml file format. There are a number of benefits such as no more waiting for emails to be sent and also that you can monitor all emails generated from your application. <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory" from="no-reply@mydomain.com"> <specifiedPickupDirectory pickupDirectoryLocation="C:\temp\emailOutput\" /> </smtp> </mailSettings> </system.net> Check it out. June 16 Vista – Fix FoldersYou may have noticed that if you modify the view settings for a folder in Windows Vista and then for some reason some graphics files are dropped in the directory the view settings will be reset. I have struggled with this for a year. I would keep setting the view defaults (showing date modified etc.) and then a week or so later the columns would reset. Well, here is the fix for this. Save the following code in a file with the .bat extension and run this file. setlocal set BASE_KEY=HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell :: Delete cached folder views :: Set default folder template :: Restart Explorer Well worth the small effort. SQL Server Management Studio Tool PackA very cool tool pack is available for SSMS 2005 (and they are working on the one for SSMS 2008).
There are some very cool features within this pack. See the ones marked with *** marked above. Very nice! Consolas for you Command PromptUse the following reg add command to add the Consolas to your command prompt window reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont" /v 00 /d Consolas In the end after opening the defaults for the command window you end up with a very pleasant change. This tip looks like it has been around for a while but I recently stumbled upon it. May 14 Vista and Visual Studio: Error: Web site worker process has been terminated by IIS"The web server process that was being debugged has been terminated by Internet Information Services(IIS). This can be avoided by configuring Application Pool ping settings in IIS." Very easy fix by following these instructions....
May 12 MVC Resources - including links to UI MVC ValidationMVC is a framework methodology that divides an application's implementation into three component roles: models, views, and controllers. Interested...check out the following very excellent list of resource that can be found here May 10 Visual Studio AddIn RockScrollVery nice add-in which modifies the vertical scrollbar inside of Studio 2005/2008. The download is small and can be turned off very easily through the Tools-Add Ins menu.
No more toolbars and buttons! - Keyboard only!If you are a user that lives in an application day-in/out you must force yourself to learn the shortcut keys (at least until voice recognition becomes efficient). For developers, simply remove the toolbars which immediately forces you to the shortcuts. Very quickly you will notice clear clutter free IDE. If you need assistance use the following to help out Visual Studio 2005 Keyboard Shortcut Posters May 03 Windows Explorer (add to your tools menu) in Visual StudioI often need to open Windows Explorer and browse to the current file, folder, or project that I am working on in Visual Studio. This tip allows you to achieve this by clicking "Windows Explorer" in the Tools menu, and is one of the most simple-yet-useful tips I know of. To set it up, click Tools, then External Tools..., then click Add. Now enter the following data: Leave Initial directoy blank, and click OK. Now when you click Tools, Windows Explorer, Windows Explorer will open with the current file you are editing selected.
Adding Windows Explorer to the toolbar Right click on toolbar and select customize. Select 'Tools' and if you have not added other External tools then select "External Command 2". After you drag External Command 2 to the standard toolbar it will change to Windows Explorer. Label to a form input fieldIf you set a label to a form element set the AssociatedControlID property. This will force the label to render as <label> rather than <span>. A benefit of using the AssociatedControlID property is that clicking a label when this property is set automatically changes the form focus to the associated form input. May 01 Visual Studio 2008 Offline SupportWhen saving files from within Studio I was prompted to "Save As", "Overwrite", or "Cancel". I thought it was very odd. I then looked around and noticed that none of my files displayed the typical source control lock. It looked like my solution was not connected or related to source control. Nice...offline support for source control is now built into Studio 2008. In 2005 there was an add-on tool to review and reconnect disconnected files to source control. After selecting "Go Online" Studio 2008 will check the solution for changes while you were offline and will show a dialog window with the differences. Now, when checking in you will see those files that you modified while offline as files that need to be checked in. April 26 Windows Vista Shortcuts - Tips1.) Did you know that in Windows Vista you can launch all the shortcuts in you quick launch bar by clicking the “Win” button + a number (”WIN” + 1 will launch the first link from the left and so on…)? 2.) Create a shortcut to the application you want to run with the shortcut by right clicking the executable file and selecting “Create shortcut” from the menu. 3.) If you need to configure more keyboard shortcuts check out GoHeer.com - Keyboard ShortCuts application April 25 Using LINQ (Language Integrated Query) - got to have this tool!What is LINQ to SQL? - implementation of the IQueryable interface over the SQL Server Schema You can find this tool here and nice walk through of the tool on Mitsu's blog. April 23 DevConnections 2008 Orlando - (Day 3) SessionsMiscellaneous Tips/Tricks
DevConnections 2008 Orlando - (Day 2) SessionsASP.NET 3.5 New Things
ADO.NET Data Services
LINQ the defining feature in .NET 3.5
ASP.NET Custom Controls with AJAX
April 22 DevConnections 2008 Orlando - Day 2 (CLR in SQL Server 2005)CLR in SQL Server 2005 CLR Option (disabled by default, once enabled it is hard to turn off) CLR Code can be used in…
But Should it? - consider performance, security and development issues Where Does CLR Technology Fit?
Challenges
CLR Assemblies designate security level
Development of more complex CLR assemblies requires build scripts to tear down dependencies and recreation. Comparisons of performance must be done through SQL Enterprise Manager (as opposed to VS.NET). VS.NET adds a lot of overhead to performance information and thereby skewing the end results. User Defined Types (defined with VS.NET in managed language)
DevConnections 2008 Orlando - Day 2 (Getting Started with Entity Framework - EF)A common design pattern for data modeling is to divide the data model into three components
The ADO.NET Entity Framework expands the power of the conceptual model by enabling developers to write code that operates against objects generated from an Entity Data Model (EDM) instead of directly against the logical (relational) model. The Entity Framework then maps those operations to storage-specific relational commands. Benefits
Getting Started with Entity Model Key Aspects
Entity Framework Compared to LINQ to SQL
Entity Framework Highlights
Querying the Entity Framework
Editorial: This technology is the one that has been missing from Microsoft in the last x years. In lieu of this framework there have been a number of other technologies (i.e. NHiberate, Subsonic, CSLA.net etc.). In short this is Microsoft's Enterprise level object relational/mapping product. It is currently in beta but is to be released this summer. In short EF provides wizards that aid in the mapping of database tables (currently only SQL Server but other vendors Oracle/MySQL are already building providers to hook up) and maps them to database objects. It differs from LINQ to SQL in the fact that it builds a model that is now available for additional manipulation such as merging tables, filtering tables and creating additional tables build from query/view or stored procedure. Modifications to the underlying database require updates to the model but with custom code in partial classes this can be done with very little effort. Currently, only the primary entity is serialized through WCF but in the following release child objects will be serialized through WCF without any data loss. At the current time, this can be managed through passing the primary object in list object with child objects in related list object. This can be accomplished with wrapper for transmission of the entity through serialization process. |
|
|