Geeks With Blogs

News My Blog has been moved to
Michael Freidgeim's Blog My Blog has been moved to December 2006 Entries
Control Order for XSLT in MARC21slim2English.xsl
I've tried to use MARC21slim2English.xsl to show USMARC in user-friendly form. I found that the xsl doesn't give a possibility to change order of items, but just copied the order of original MARC21 record. I had to add a lot of apply-templates to be able to set the order as I want, e.g. show title first, then Authors etc. The extra XSLT commands were added to modified MARC21slim2English.xsl , but it should be possible to use import command to keep existing MARC21slim2English.xsl and my code in separate ......

Posted On Friday, December 29, 2006 10:52 AM

No way to specify namespace for Typed-Dataset

I am using typed datasets in my C# library and I desided to re-structure files -move .xsd file to sub-folder.
Should it effect my code? I expected, that it shouldn't. But  namespace of the generated typed-dataset has been changed and broke my code.

It seems there is no way to set it in the way I like - namespace is derived from folder and filename.
This is not good.

Posted On Friday, December 29, 2006 9:57 AM

Visual Studio 2005 SP1: Unable to detach from one or more processes
I've just updated VS 2005 to SP1. I am using WAP project with DevServer and enabled "Edit and Continue". My common procedure is to start debugging session, do the changes in the code if required, and if the code is blocked by VS(very annoying, but MS doesn't want to fix it) ,I detaching the debugger from the project. In SP1 it started to show error:Unable to detach from one or more processes. Operation not supported. Unknown error: 0x80131c32.It is not always reproducible, but happened a few times ......

Posted On Thursday, December 28, 2006 7:45 AM

Code Generator for ASP.NET application
I had a requirement to find Code Generator that will help to port existing quite big fat client application to ASP.NET and to support multiple databases. The site provides quite a big list of applications that claims to do this. I also was pointed by Paul Wilson's posts (How do you decide what features to add or cut?, Debate: O/R Mapping or Code Generation and others) that Dynamic SQLs in O/R mappers allow to avoid hundreds of CRUD stored procedures and DAL classes.Unfortunately, ......

Posted On Wednesday, December 20, 2006 3:56 PM

Function to bind Generic Dictionary with dropdown list.
With the tip from the post How to bind Generic Dictionary with dropdown list I've created the static method: //' public static void ControlBinding(ListControl ctrl, Dictionary<string, string> dict) { ctrl.DataSource = dict; ctrl.DataValueField = "Key"; ctrl.DataTextField= "Value"; } //Overload for StringDictionary public static void ControlBinding(ListControl ctrl, StringDictionary dict) { ......

Posted On Tuesday, December 19, 2006 2:21 PM

Print UserAccountControl AD property programmatically.
Even there are a few standard AD Editors, including AD MMC, ADSIEdit, and LDM, I needed to read the UserAccountControl AD property from my application. UserAccountControl is a bit flags attribute, so I had to create C# enum similar to C++ ADS_USER_FLAG_ENUM enum from MSDN. Below is the code of functions GetUserAccountControl(Direc... anEntry) and UserAccountControlToString(... nUserAccountControl) : public static int? GetUserAccountControl(Direc... anEntry) { //MNF 10/8/2005 if Properties["userAccountCont... ......

Posted On Friday, December 8, 2006 9:01 AM

Copyright © Michael Freidgeim | Powered by: | Join free