Developers blog, .NET, C#, VB.NET, ATLAS, AJAX, WWF, ORM, LINQ, ARCHITECTURE and more by Frank Kroondijk |
|
ProfileFrank KroondijkSoftware developerSoftware architectBlog profile
Links
Archives
200 feeds |
zaterdag, april 29, 2006c# recursive controlsearch winform application
In ASP.Net you can find the control your looking 4 with the nice function findcontrol (which I initially found AFTER writing my own recursive search method :-)) Now I expected same kind of functionallity when writing a winapp. Strangly i couldnt find it. Here a quick sample for recursive search. Using it in my app which reads and writes dynamically to a XML file. (dunno what fields to expect so.. )
http://www.c-sharpcorner.com/UploadFile/zeppaman/objectinspector04112006031814AM/objectinspector.aspx woensdag, april 26, 2006cool AJAX demo siteLecture AJAX, Donderdag 21 september 2006, Leeuwarden
Meer weten over verschillende aspecten van AJAX technologie? Kom naar de lezing die ik 21 september geef in Leeuwarden.
Aanmelden: http://www.intern.nhl.nl/page.php?id=520&iwid=471&lezing_id=11&lezing_offset=0&PHPSESSID=7a8d447f76677d39292ab966c5807c66 Dutch session Atlas resources
Atlas Resource List
If you've been working with Atlas, you'll want to check out this list of Atlas resources that Rick Strahl has put together here. You check out more ATLAS stuff from Scott Guthrie (General Manager of .NET Platform), Nikhil Blogs (Key Architect), Brad Abrams (Group Project Manager), Bertrand (who is a key Atlas dev), Jonathan Hawkins (who is a key PM on the Atlas team), Shanku Niyogi (who runs the ASP.NET and Atlas teams). --- Personal addition: Check out Scott Guthrie his blog, he's atlas teamleader. I also joined his session on the devdays in Amsterdam, great speaker :-) singleton patternA singleton pattern is one that states that there would be only one instance of a class throughout the application domain. This article illustrates this pattern with lucid code examples. more patterns in my post: http://dotnetpret.blogspot.com/2006/04/design-patterns-list-edit.html Return new ID in SQL2005
SQL Server 2005 introduces the OUTPUT clause that allows us to find out the values (original or new) for columns manipulated by any INSERT, UPDATE or DELETE statement. With OUTPUT's help, the previous example can be rewritten like this:
DECLARE @InsertedRows AS TABLE (Id int) DECLARE @NewId AS INT INSERT INTO HumanResources.Employees ( /* column names */) OUTPUT Inserted.Id INTO @InsertedRows VALUES (/* column values */) SELECT @NewId = Id FROM @InsertedRows Note the @InsertedRows temporary table declaration and the use of the OUTPUT clause right before the VALUES clause inside the INSERT statement. This code is not only concurrency-safe, but it allows us to get the values of other columns that could have been generated (e.g. by DEFAULTs or TRIGGERs). Moreover, as I already mentioned, it can also be used with UPDATEs and DELETEs which makes it useful for those who like to have record-level logs (even though I prefer to use business level logs, but that's another story...) Read comments in article 2! dinsdag, april 25, 2006Doubler, code generator
Doubler is a code generator that makes unit testing easier. It is especially useful when working with legacy code. It is a Reflector add-in, a tool already woven into your workflow. It will help you cleave dependencies apart, create test doubles, and write unit tests with little effort and less coding.
Didnt test it jet, but features sound ok. http://jayflowers.com/doku/doku.php?id=doubler also added to large tools post: http://dotnetpret.blogspot.com/2006/04/tools-tools-and-more-tools.html msdn magazine may 2006coding4fun
strangely cant recall ever seen this part of msdn b4, but has some nice articles and starterkits. Another feed in my sharpreader :-)
NDepend - free beta versionHow does NDepend help me have a better understanding and control over my .NET code? NDepend analyses .NET assemblies of an application and generates reports containing design quality metrics, warnings and diagrams. More on reports in the Sample Reports section.The VisualNDepend tool allows analysing all these data thanks to an interactive view. Such view can be tuned according to numerous software metrics. Here are some screenshots of VisualNDepend. The sample analyzed application is the 15 main assemblies of the .NET Framework 2.0 (2.8M IL instructions) Beta version is free.. pair programming???%$#
This buzzword seems to get stronger and stronger, also listened to a podcast about this subject. Personally it sounds like hell to me (im 2 easy distracted) but some plp think its great
read article: http://weblogs.asp.net/JCogley/archive/2006/04/25/443913.aspx ASP.NET 2.0: XmlDataSource - Default Caching Feature
Watch it!
when you bind the XmlDataSource to a control, the data doesnt change. This is because, by default, the EnableCaching propery is set to "true" http://harishmvp.blogspot.com/2006/04/aspnet-20-xmldatasource-default.html Extra masterclass aproved
Well just a personal note. My master class MSF is approved! (unexpected, was no room anymore in the first place, but they arranged extra sessions)
So in the end of may, I’m in Amsterdam :-) maandag, april 24, 2006information schema sqlserverMore a personal reminder post. Once in a while you need to query the database information schema. Here the query's you can use http://www.sqlservercentral.com/columnists/bkelley/informationschemaviews.asp http://msdn2.microsoft.com/en-us/library/ms174123.aspx http://www.sqlteam.com/default.asp How to reset the identity field in mssql server: DBCC CHECKIDENT ( dinsdag, april 18, 2006Web Application Settings in ASP.NET 2.0
ASP.NET 2.0 brought about a number of improvements in the way configuration settings are stored and accessed. Several new configuration sections have been added to the web.config schema, settings can be updated via code, and can be more easily encrypted and decrypted than before. In this article, Richard examines these new features with the help of code samples.
by Richard Dudley getdate().tostring("MM/dd/yyyy") - MyCash.ToString("C")
Stop Using DatePart for Formatting Dates!
If you're still formatting dates as such: lblDate.text = datepart("d",Now) & "/" & datepartt("m",now) & "/" & datepart("yyyy",now) then stop this instant! Step away from the keyboard and no one gets hurt. There are better ways in ASP.NET to format dates. You could replace the above line of code with: lblDate.text = getdate().tostring("MM/dd/yyyy") and end up with exactly what you needed. ASP.NET is full of great format strings. Remmeber the old FormatCurrency(MyCash) command? You can replace that with MyCash.ToString("C"). Download the .NET 2.0 SDK and look up "formatting strings"; you'll find all these goodies in there. by Richard Dudley maandag, april 17, 2006create rss feed (c#)
It’s a simple class and there’s not much to it, but I thought that hopefully this will be of use to any other C# developers out there
url-rewrite opensourceproject
Personally I like to do all my rewriting in the global.asax file but here an opensource project if you dont like option 1
http://www.urlrewriting.net/en/Default.aspx Code Snippets - the whole enchilada
If you are using Visual Studio 2005, you sure have encountered a new nifty feature called Code Snippets.
There are a lot of articles and blog posts surrounding this topic, so why another post? Well I'll try to give give you a (hopefully) complete roundup on -what Code Snippets are -how you can use them -how to create your own -where to find some already done by others and how to install and manage them http://jens-schaller.de/nc/blog/blogsingle/archive/2006/february/article/code-snippets-the-whole-enchilada/index.htm Jeff Atwood - Code Snippets in VS.NET 2005 (www.codinghorror.com/blog/archives/000419.html) MSDN - Creating and Using IntelliSense Code Snippets (msdn2.microsoft.com/en-us/library/ms165392.aspx) MSDN - Code Snippets Schema Reference (msdn2.microsoft.com/en-us/library/ms171418(en-us,vs.80).aspx) Visual Studio Hacks - Snippy (visualstudiohacks.com/snippy) Roland Weigelt - Code Snippets (weblogs.asp.net/rweigelt/category/10077.aspx) GotCodeSnippets.NET (www.gotcodesnippets.com/default.aspx) MSDN - Visual Studio 2005 Code Snippets (msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx) Jeff Atwood - C# Snippet Parity (www.codinghorror.com/blog/archives/000522.html) Jeff Atwood - Download C# snippets and registry file (www.codinghorror.com/blog/files/ms-csharp-snippets.7z.zip) Jett Atwood - Snippet Enumeration Macro(www.codinghorror.com/blog/archives/000526.html) personal adds http://www.codekeep.net/ http://www.codekeep.net/addins.aspx (yes, with vs2005 version also!!!) Visual Studio 2005 Unit Testing Code Snippets http://exceptionz.blogspot.com/2006/02/visual-studio-2005-unit-testing-code.html In this article, Amal discusses how to create charts inside a DataGrid control using an XML file
In this article, Amal discusses how to create charts inside a DataGrid control using an XML file.
http://aspalliance.com/797 tools tools and more tools
pick ur tool:
http://www.econsultant.com/i-want-freeware-utilities/index.html http://www.hanselman.com/blog/ScottHanselmans2005UltimateDeveloperAndPowerUsersToolList.aspx http://members.ozemail.com.au/~nulifetv/freezip/freeware/ http://www.sellsbrothers.com/tools/ https://addons.mozilla.org/firefox/216/ (also take a look at all the other extentions) Tyred of the loading time of adobe pdfreader? Supersmall, superfast and free: foxitreader. Heard about it during a podcast but forgot about it until it showed up on the lists above. http://www.foxitsoftware.com/pdf/rd_intro.php GhostDoc is a free add-in for Visual Studio that automatically generates XMLdocumentation comments. Either by using existing documentation inheritedfrom base classes or implemented interfaces, or by deducing comments fromname and type of e.g. methods, properties or parameters. http://www.roland-weigelt.de/ghostdoc/ Tools for unit testing Tools for code and documentation management and generation Tools for modifying the development environment Tools for working with data http://msdn.microsoft.com/msdnmag/issues/05/12/VisualStudioAddins/default.aspx Snippy - Visual Studio Code Snippet Editor http://www.gotdotnet.com/codegallery/codegallery.aspx?id=b0813ae7-466a-43c2-b2ad-f87e4ee6bc39 snippets addin codekeep http://www.codekeep.net/addins.aspx (yes, with vs2005 version also!!!) Here are listed some of the existing companion tools for .NET development. We put the focus on the quality of the content. Boring marketing fluff is filtered out. http://sharptoolbox.com/ ASP.NET Development Helper is a utility for ASP.NET page and control developers that plugs into Internet Explorer. It allows viewing information about the current page such as view state and trace, perform some operations on the server in the context of the running application to aid testing, and also allows monitoring requests and responses for diagnostic scenarios. http://www.nikhilk.net/Project.WebDevHelper.aspx WSCF - Schema-Based Contract-First Web Services A Free Visual Studio Add-In and Command Line Tool for ImprovedSchema-Based Contract-First Web Services Design and Programming thinktecture WSCF TestDriven.NET makes it easy to run unit tests with a single click, anywhere in your Visual Studio solutions. It supports all versions of Microsoft Visual Studio .NET TestDriven.NET 2.0 Tools and source code for .NET, C#, Visual Basic and WinFX. Reflector is a popular class browser. Resourcer is a .NET resource editor. Lutz Roeder's .NET Reflector Doubler is a code generator that makes unit testing easier. It is especially useful when working with legacy code. It is a Reflector add-in, a tool already woven into your workflow. It will help you cleave dependencies apart, create test doubles, and write unit tests with little effort and less coding. http://jayflowers.com/doku/doku.php?id=doubler VS2005 tool to help simplifies the process of installing and uninstalling controls from VS2005 http://www.codeproject.com/useritems/VisualStudio2005Toolbox.asp Internet Explorer Developer Toolbar Beta 2 Preview Update Download Keep track of what u where doing. (Takes screenshots) http://www.timesnapper.com/ Fiddler is a HTTP Debugging Proxy which logs all HTTP traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP Traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler is designed to be much simpler than using NetMon or Achilles, and includes a simple but powerful JScript.NET event-based scripting subsystem. http://www.fiddlertool.com/fiddler/ Small tool which allows you to edit a resource file outside Visual Studio. Well, writing ur own would take about 40 min, but whatever, its free..Only drawback, when you give this tool to your client, he/she has to have the 2.0 framework installed. http://www.peoplewords.com/download/ResxEditor.aspx using sp's or not??
Every once in a while you get the discussion wheter or not to use stored procedures. Working with a fully dynamic (own written) ORM Its not an issue to me unless I really need that last vew percentage of performance (note! in SQL2005 this is only a vew %, in SQL2000 it can be over 10%)
Here an article: http://www.simple-talk.com/2005/04/11/to-sp-or-not-to-sp-in-sql-server/ Ref in this article (allready posted b4, but cant be repeated enough :-) ): http://www.unixwiz.net/techtips/sql-injection.html c# codesnippets
maybe repost, but nice resource..
Atlas autocomplete sampleC# refs
What's New in the C# 2.0 Language and Compiler
How Do I in C#? Using the Visual C# IDE C# Programming Guide C# Programmer's Reference C# Samples Also check out the Tools and Features available in VS 2005 Misc: .NET Framework Glossary by varad http://weblogs.asp.net/Varad/archive/2006/04/16/443055.aspx asp.net version checkregex books
Regex rule, confirmed by Bill. You don't use them 2day? use them 2morrow.
http://msmvps.com/blogs/williamryan/archive/2006/04/16/91262.aspx zaterdag, april 15, 2006Atlas toolkit
Check out:
Cascading DropDown Collapsible Panel Confirm Button Drag Panel Hover Menu Popup Control Reorder List Textbox Watermark Toggle Button http://atlas.asp.net/atlastoolkit/ vrijdag, april 14, 2006design patterns list (edit)
Design patterns are recurring solutions to software design problems you find again and again in real-world application development. Patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges.
http://www.dofactory.com/Patterns/Patterns.aspx codebetter.com: Template Method Strategy Factory Method Abstract Factory Facade Command ref: http://codebetter.com/blogs/jeremy.miller/archive/2006/04/11/142665.aspx A singleton pattern is one that states that there would be only one instance of a class throughout the application domain. This article illustrates this pattern with lucid code examples. http://aspalliance.com/810 http://www.dofactory.com/Patterns/PatternSingleton.aspx http://www.yoda.arachsys.com/csharp/singleton.html C# vs Java
Switching between languages?? here nice reference document
http://www.25hoursaday.com/CsharpVsJava.html XHTML Validation Module Checker for ASP.NET 2.0
They've recently published a very cool XHTML Validation module for ASP.NET 2.0 that allows you to easily identify and catch any non-XHTML markup with your application. You register it as an ASP.NET HttpModule within your app's web.config file, and then it watches and checks all page output for XHTML compliance:
ref: http://weblogs.asp.net/scottgu/archive/2006/04/09/442336.aspx download: http://www.thejoyofcode.com/default.aspx OO design basics
need to refresh ur oo desing guidelines, here an article to read
http://www.jamesshore.com/Articles/Quality-With-a-Name.html%20 Well thats all, I call it a day 4 now.. weekend project, ATLAS chat4 reason why u should not forget to set the debug mode to false in ur production environment
1) The compilation of ASP.NET pages takes longer (since some batch optimizations are disabled)
2) Code can execute slower (since some additional debug paths are enabled) 3) Much more memory is used within the application at runtime 4) Scripts and images downloaded from the WebResources.axd handler are not cached read all: http://weblogs.asp.net/scottgu/archive/2006/04/11/442448.aspx creditcard processing and paypall kitt
Another great posts Scott Guthrie pointed to,
Integrating Electronic Payment Processing intoASP.NET Web Applications http://www.west-wind.com/presentations/aspnetecommerce/aspnetecommerce.asp PayPal-enabled eCommerce Starter Kit http://www.asp.net/default.aspx?tabindex=5&tabid=41 Attach to Visual Studio's Development Web Server easily using a macro
Something I have to do frequently is attaching to a running web application for debugging purposes. I don't always start my web applications in debug mode, but I often need to attach at some point when doing some testing.Unfortunately, there is no easy way to do this from Visual Studio. We have to attach to the server process "by hand". After some time doing this, you'll find it a bit boring...Here is a quick-n-dirty solution. It's a simple macro that attaches to the first web server process it finds. Just copy the code below to your macros using the Macro IDE (Tools Macros Macro IDE...).
Attach to Visual Studio's Development Web Server easily using a macro All about masterpagesrepost? PowerToys for the Visual Studio 2005 Class Designer and Distributed System Designers: Workspace Home
During the VS2005 Beta period i found this classdesigner extention but after release i totally forgot about it, here you can download the RTM version
http://www.gotdotnet.com/workspaces/workspace.aspx?id=fe72608b-2b28-4cc1-9866-ea6f805f45f3 remarkable: Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download
Today we released the source code for the built-in ASP.NET 2.0 Membership, Role Management, Site Navigation, Session State, Profile, Web Events, and Web Part Personalization providers (basically all of the built-in providers that ship in the .NET 2.0 Framework Redist). You can download them here, and learn more about the ASP.NET 2.0 Provider Model from this site here.
http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx By Scott Guthrie Also released: http://weblogs.asp.net/scottgu/archive/2006/03/30/441465.aspx donderdag, april 13, 2006Provider Toolkit
The provider model is used throughout ASP.NET 2.0. It is a means of writing each of the technologies used so that new versions can easily be created and plugged in. For example, if you need to access a different database or authentication server, you can create a provider for it. ASP.NET 2.0 will then work with that provider just as it works with the existing features. This makes ASP.NET 2.0 much more flexible, expandable, and customizable than before.
http://msdn.microsoft.com/asp.net/downloads/providers/default.aspx zondag, april 09, 2006free elearnings from MS about vs2005BI Quickstart
11 webcasts focused on the tools available for business intelligence
http://blogs.benko.com/mike/archive/2006/04/06/2186.aspx session 1 available for download zaterdag, april 08, 2006Using Atlas with PHP
The Atlas framework has two distinct elements - a client script framework, and a set of server extensions that integrate Atlas with ASP.NET. The client script framework is 100% Javascript, and works with any modern browser. But it is also completely server-agnostic, and works with any web server.
http://www.shankun.com/AtlasPhp.aspx ref: http://weblogs.asp.net/scottgu/archive/2006/03/29/441357.aspx Architecture journal 7
Download the free magazine from MS:
https://www.msarchitecturejournal.com/pdf/Journal7.pdf older journals: https://www.msarchitecturejournal.com/pdf/Journal5.pdf https://www.msarchitecturejournal.com/pdf/Journal6.pdf You can also get them on paper/mail but somehow I never receive it (only US?) maandag, april 03, 2006oldskool scripting
once in a while you get surprises by weird client questions.. today they asked to write some scripts which are going 2b scheduled on a server. Normally working in C# and VS2005 this was a kinda shock :-), here some references
http://www.thevortex.nl/index.php?head=vbscript http://cis.stvincent.edu/wsh/wsh.html zondag, april 02, 2006vs2005 add-in time
number your codebookmarks, nice and handy:
http://vadikv.googlepages.com/numberedbookmarks from Gaston Milano's WebLog: New CoolCommands for Visual Studio 2005 2 times Rocky Lhotka
explaining CSLA.NET on DNRTV
http://dotnetrocks.com/default.aspx?showID=172 http://dnrtv.com/default.aspx?showID=12 |