Categories
- Active Directory
- Apache
- ASP.Net
- Attributes
- Batch Files
- C#
- FireFox
- Generics
- IIS
- Internet Explorer
- JavaScript
- jQuery
- LINQ
- Microsoft AJAX
- Microsoft Office
- Microsoft TechNet
- MS Build
- MS SQL Server
- MVC
- Regular Expressions
- SSIS
- Subversion
- T-SQL
- Team Foundation Server
- This and that
- Visual Studio
- WCF
- Web Services
- Windows 7
- Windows Server 2008 R2
- WinForms
- WordPress
Archives
- January 2012
- October 2011
- September 2011
- August 2011
- June 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- May 2006
- March 2006
- January 2006
Meta
Monthly Archives: September 2007
Force a named pipes connection
To force a named pipes connection to your database, prepend the name in your connection string with “np:”. E.g.
Posted in C#, MS SQL Server
Leave a comment
Override appSettings with the file attribute
To help make applications a bit more portable, it is nice to know you can override the appSettings group in your app.config or web.config file in the following manner: The, in the same directory, create a file userAppSettings.config, … Continue reading
Posted in C#
Leave a comment
Intellisense for MSBuild files
To “enable” Intellisense for MSBuild projects ending with the extension “msbuild”: 1) 1) Add this registry key (no line break in the key): [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Editors\ {412B8852-4F21-413B-9B47-0C9751D3EBFB}\Extensions]“msbuild”=dword:00000029 2) Create a file called “test.msbuild” and then try to open it. Choose “Select program … Continue reading
Posted in MS Build, Visual Studio
Leave a comment
Using the PageRequestManager in ASP.Net AJAX (ATLAS)
In your java script:: var postBackElem; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler); Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoadedHandler); function BeginRequestHandler(sender, args) { postBackElem = args.get_postBackElement(); } function PageLoadedHandler(sender, args) { var c = ‘panels created: ‘; var u = ‘panels updated: ‘; for(var i=0;i c += args.get_panelsCreated()[i].id + ‘, ‘; … Continue reading
Posted in JavaScript, Microsoft AJAX
Leave a comment
Using predicates for Find / FindAll methods on generic List<T> in C#
The call to FindAll: myDerivedClass.FindAll(MyBaseClass.AnyWordInNameStartsWith(partialName)); Within MyBaseClass.cs: public static Predicate AnyWordInNameStartsWith(string partialName) where T:MyBaseClass, new() { return delegate(T myClass) { partialName = partialName.ToLowerInvariant(); if (myClass.Name.ToLowerInvariant().StartsWith(partialName)) { return true; } List words = new List(); string[] splWords = myClass.Name.ToLowerInvariant().Split(’ ‘); for … Continue reading
Posted in C#
Leave a comment
FireFox caches JavaScript state
Firefox uses in memory caching for JavaScript and can cause strange errors in your MSFT ASP.NET Ajax applications. Try adding this to your load event to prevent those errors: if (Request.Browser.MSDomVersion.Major == 0) // Non IE Browser?) { Response.Cache.SetNoStore(); // … Continue reading
Posted in C#, FireFox, JavaScript
Leave a comment
Automatically close a window in FireFox
You may run into an issue trying to close a created window in FireFox, this javascript usually does the trick on your close link: window.open(’java script:window.close();’,’_self’,’’);
Posted in JavaScript
Leave a comment
September 2007 Issue of TechNet Magazine: IT Toolbox
The September 2007 issue of TechNet Magazine is out on the website. Check out my IT Toolbox column here: http://technet.microsoft.com/magazine/91c79f72-f88d-43d6-abb6-0e3cbc39b1e5 In this issue I covered: xSQL Bundle Professional Edition Move SQL Server Databases WinSSHD Enable More Secure Communication USB Monitor Professional Monitor USB … Continue reading
Posted in Microsoft TechNet
Leave a comment