This documentation is archived and is not being maintained.

ScriptReferenceBase.ReplaceExtension Method

Replaces the file-name extension in the specified script path to designate a debug script.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected static string ReplaceExtension(
	string pathOrName
)

Parameters

pathOrName
Type: System.String

The full path of the script to rename. The path must end with ".js".

Return Value

Type: System.String

This method assumes that the script has a ".js" extension. It then replaces the extension with ".debug.js".

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1
Show: