Click or drag to resize

WebImageViewerOpenUrl Method

Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Overload List
  NameDescription
Public methodCode exampleOpenUrl(String)
Opens an image into the WebImageViewer control from a URL or virtual path.
Public methodOpenUrl(String, Int32)
Opens an image into the WebImageViewer control from a URL or virtual path.
Top
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
Examples

This line of code will attempt to map to the server root.

C#
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("/TestImages/myTestImage.tif")

This line of code will attempt to get the image from the server located at the URL.

C#
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif");
Visual Basic
myWebImageViewer.OpenUrl("http://www.mydomain.com/TestImages/myTestImage.tif")
See Also