Feb18

How to use JavaScript to close an IE7 browser window without seeing the confirmation dialog?

Categories: ASP.NET 2.0
<a href="javascript: window.open('','_parent','');window.close();">Close this window!</a><br />...
 
Jul20

Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances.

Categories: ASP.NET 2.0
Recently I noticed that many of my ASP.NET applications that work with a SQL Server Express database that resides in the App_Data directory stopped working. The culprit error was "Generating user instances in SQL Server is disabled. Use sp_co...
 
Jul18

How to change the connection string name in a .NET 3.5 LINQ to SQL class?

Categories: ASP.NET 2.0
Here's the scenario:   You developed an application that uses "LINQ to SQL" with a connection string name (say aa-db). In production you want the name to be different (say bb-db). What do you need to do to change the connection string...
 
May20

How to upgrade SharePoint 2007 web.config file from .NET Framework 3.0 to .NET Framework 3.5 support?

Categories: ASP.NET 2.0, SharePoint 2007
In order to take advantage of some of the great features of .NET Framework 3.5 in your SharePoint 2007, you will need to upgrade the web.config file. Some new features are LINQ, AJAX, and new controls like ListView. Here's a step-by-step task list...
 
Jan13

How can a web page go to the bottom end as soon as it is loaded?

Categories: ASP.NET 2.0
I needed to get a loaded web page to scroll down to the bottom of a long page. I was able to make that happen using some basic JavaScript. Here's my solution:   1) Place the following HTML at the page loaction where you want to go to automatical...