Sitecore 5.0 API

MainUtil.AppendMissingIDBrace Method 

Appends a mssing closing brace "}" if a path starts with a brace "{".

[Visual Basic]
Public Shared Function AppendMissingIDBrace( _
   ByVal sPath As String _
) As String
[C#]
public static string AppendMissingIDBrace(
   string sPath
);

Parameters

sPath
A path.

Return Value

The path ending with a closing brace "}".

Remarks

This function is usually called to ensure that a GUID ends with a closing brace "}". This can occur if a web page is opened from Outlook by a pasted link as Outlook does not automatically include the ending brace "}".

Example

  string path = StringUtil.GetString(Request.QueryString["path"]);
  string id = MainUtil.AppendMissingIDBrace(path);

See Also

MainUtil Class | Sitecore Namespace