Skip to content

Bernd's Blog

Just another .NET and SharePoint developer blog

  • Home
  • About
  • Contact

Month: October 2007

Device filter error

2007-10-31 Bernd

Testing device filters on a mobile form I encountered the following error:   Can find neither a device capability named ‘IsNotMobile’ nor a public non-static method on the page named ‘IsNotMobile’ that returns a System.Boolean and takes System.Web.Mobile.MobileCapabilities and System.String… Read moreDevice filter error

.NET  Leave a comment

Webparts do not work

2007-10-31 Bernd

Trying to use my first webpart I got this unfriendly error message from the run-time: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact… Read moreWebparts do not work

.NET  Leave a comment

Favourite database scripts

2007-10-31 Bernd

Here are the T-SQL database scripts I most frequently use when trouble-shooting. — Clear transaction log for SQL Server 2008 and after (log file) USE [DatabaseName] DBCC SHRINKFILE(‘TransactionLogLogicalName’, 1) BACKUP LOG [DatabaseName] TO DISK=’NUL’ DBCC SHRINKFILE(‘TransactionLogLogicalName’, 1)   — Clear… Read moreFavourite database scripts

Database  Leave a comment

.NET Refactoring tools

2007-10-31 Bernd

Refactoring Jeg har fundet følgende kommercielle værktøjer, som har et Visual Studio PlugIn. Prisen i parentes er for fem licenser. Derudover er Martin Folwer refactoring hjemmeside http://www.refactoring.com/ en god resource. ReSharper, 199 USD (995 USD), http://www.jetbrains.com/resharper/ C# Refactory, 99 USD… Read more.NET Refactoring tools

.NET  Leave a comment

To be null or not to be null

2007-10-31 Bernd

Når du indlæser data fra en database bliver du som regel nødt til at forholde dig til null problematikken, fordi alle kolonner i en database kan potentielt tillade værdien DBNull. Udfordringer ligger i: Værdityper kan ikke være null. Objekter kan… Read moreTo be null or not to be null

.NET  Leave a comment

Generic collections i .NET 2.0

2007-10-31 Bernd

Ved .NET 2.0 introducerede Microsoft generics, som er kendt som templates fra C++. Ved lejligheden fik collections klasserne et nytårskur. Der findes en række nye collections i 2.0 frameworket. Jeg vil prøve at give beslutningshjælp til hvilken collection man bedst… Read moreGeneric collections i .NET 2.0

.NET  Leave a comment

Slet al data i SQL Server database

2007-10-31 Bernd

Hvis det er nødvendigt at slette al data i alle tabeller i en SQL Server database kan følgende T-SQL script hjælpe: — Source: http://vadivel.blogspot.com/2006/07/easiest-fastest-way-to-delete-all.html Set nocount on Exec sp_MSForEachTable ‘Alter Table ? NoCheck Constraint All’ Exec sp_MSForEachTable ‘ If ObjectProperty(Object_ID(”?”),… Read moreSlet al data i SQL Server database

Database  Leave a comment

Debugging custom controls design time

2007-10-31 Bernd

Når du udvikler dine egne webcontrol’s og windows forms control’s, vil du som regel bygge en designer klasse per control. Designer klassen anvendes af Visual Studio for at bestemme control’s udseende i designer view i Visual Studio. For at debugge… Read moreDebugging custom controls design time

.NET  Leave a comment

Property binding

2007-10-31 Bernd

Ofte når du laver en Windows Forms applikation har du brug for at gendanne brugerens indstillinger. Dette kan i .NET 2.0 meget nemt implementeres med property binding. Dvs. at en controls property bindes til en user setting. Det kan fx… Read moreProperty binding

.NET  Leave a comment

Filtrering af data med DataView.RowFilter

2007-10-31 Bernd

RowFilter property’en benytter DataColumn.Expression syntaks, som er fint beskrevet i MSDN. Det er dog ikke beskrevet, hvordan datoer håndteres. I MSDN står der at man skal bruge #[dato]# for at skrive dato og ‘[dato]’ for string værdier. Du kan godt… Read moreFiltrering af data med DataView.RowFilter

.NET  Leave a comment

Posts navigation

Older posts

Categories

  • .NET
  • Database
  • Home LAN
  • Javascript
  • Mountaineering
  • Public Speaking
  • SharePoint
  • SharePoint 2010
  • Windows

Recent Posts

  • Playing with PnP Partner Pack v2.0
  • Hyper-V Integration Services Update fails
  • Flexible SharePoint Deployment
  • SharePoint Saturday Stockholm 2014
  • Enterprise Solutions Part 1: Content Type Syndication

Archives

  • December 2016
  • October 2014
  • January 2014
  • August 2012
  • March 2012
  • October 2011
  • June 2011
  • May 2011
  • February 2011
  • September 2010
  • July 2010
  • September 2009
  • August 2009
  • June 2009
  • May 2009
  • March 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2008
  • July 2008
  • April 2008
  • March 2008
  • January 2008
  • December 2007
  • October 2007
  • April 2007

Recent Comments

  • tninja on Playing with PnP Partner Pack v2.0
  • Bernd on Make SharePoint fly, Part 1
  • Kenneth Sorensen on Make SharePoint fly, Part 1
  • Sven on Computed Field XML Definition
  • Pooja on Computed Field XML Definition
© 2021 All rights reserved
Proudly powered by WordPress | Theme: Simple Life by Nilambar.
Go to top