System.Web.UI.HtmlControls Namespace HtmlInputImage Class
Sets or retrieves the source of the image file to display.
Inline |
<input type=image src = strUrl ... > |
Script |
HtmlInputImage.Src [ = strUrl ] |
strUrl |
String that specifies the path to an image file to display. |
The property is read/write with no default value.
Use this property to specify the path to the image file to display. If the image file is in the same directory as the Web page that uses it, simply specify the file name. Otherwise, include the path to the file.
This property is similar in function to HtmlImage.Src.
The below code shows how to declaratively set the Src property of an HtmlInputImage control at design time.
<input type=image src="myPix.jpg" border=0 runat="server" ... >
HtmlInputImage Members