Jul 13 2011

Getting the ID of an Image Library Album in Sitefinity 4

Category: Sitefinity CMSrkirk92 @ 7:48 AM

The name of the field that contains the Album ID is content_id.  Here's some sql that will allow you to get the id by entering the title (name) of the album:

 

SELECT     url_name_, title_, publication_date, content_id, description_, date_created, app_name
FROM         sf_libraries
WHERE     (title_ = @AlbumName)

 

Tags: ,

Dec 13 2010

Isapi & CGI Error when installing Sitefinity 3.7 sp4 on local machine

Category: ASP.NET | Sitefinity CMSrkirk92 @ 9:40 PM

Had this error also:

HTTP Error 500.21 - Internal Server Error

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

following found here - http://www.gotknowhow.com/articles/fix-bad-module-managedpipelinehandler-in-iis7

  1. Run program command line:
run %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i

If you want to open it using the Run program, just type in "Run" in the Windows 7 search box, then use the following line below in the Open box, then click OK:

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i

 Note if your computer is 64 bit, then I would change the line to:

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –i

Hopefully, these solutions help get you up and running and fix the IIS7 error...  Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.

 

more help:

http://forums.asp.net/t/1480233.aspx

This is most likely because your framework did not install correctly.

Run

%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i

Note that the version of the framework must be correct. You may want manually browse to you Famework folder, typically

c:\Windows\Microsoft.NET\

Tags: , ,

Dec 8 2010

sp_who SQL Server System Stored Procedure

Category: SQL Serverrkirk92 @ 8:30 AM

This stored procedure provides information about current users, sessions, and processes in an instance of the Microsoft SQL Server Database Engine.

The following example uses sp_who without parameters to report all current users:

 

USE master;
GO
EXEC sp_who;
GO

This information comes from this MSDN article: sp_who (Transact-SQL)

Tags: ,

Nov 30 2010

Redirect a user with back button disabled

Category: Javascriptrkirk92 @ 9:35 AM

 

<script type="text/javascript">
        window.location.replace("url of page");
</script>

Tags:

Nov 30 2010

Switching a pages protocol from HTTP to HTTPS using Javascript

Category: Javascriptrkirk92 @ 9:31 AM

 

<script type="text/javascript">
    if (window.location.protocol == "http:") {
        var UrlWithoutProtocol = window.location.href.substr(5);
        window.location = "https:" + UrlWithoutProtocol;
    }
</script>

Tags: ,