Version

ImageUrlToPath Method

Returns the specified image filename mapped to the image directory path defined by the SmartWebControl.
Syntax
'Declaration
 
Protected Function ImageUrlToPath( _
   ByVal imageFilename As String _
) As String
protected string ImageUrlToPath( 
   string imageFilename
)

Parameters

imageFilename
The filename and extension of the image file to be resolved.

Return Value

An image URL containing a qualified path that has been mapped based on whether it is relative, or based off of the default image directory path information specified from the web.config file.
Exceptions
ExceptionDescription
System.NullReferenceExceptionThrown when the View was not properly initialized by the subclass.
Remarks

UIElements may use this method when they need to render the

SRC
attribute of an HTML <img> tag.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also