Add your image control to your ASP Web page. The following code is an example of an image server control in ASP:
<img runat="server" id="TheImage" src="image1.jpg">
Replace "image1.jpg" with an image on your website.
Open your ASP code-behind file and locate the "Page_Load" event. This block of code is usually at the top of the code-behind. Within the event block, start the code using the following code:
This code changes the image for the Web page control with the user hovers the mouse over the element. This trigger happens using the "onmouseover" event, which is indicated in the above code.
- Photo Credit internet image by Soja Andrzej from Fotolia.com
How to Change Image Resolution
The image resolution of a digital image is the number of pixels it holds and is typically expressed as DPI (Dots Per...
How to Open a PDF File in a New Window in Aspnet
PDF files are read-only documents that websites publish for viewers and customers. PDF files can be opened through web application programming languages...
How to Change a Pointer Using Onmouseover
The "OnMouseOver" event triggers when a user hovers the mouse pointer over a webpage element. The event can be triggered on any...
How to Calculate Image Resolution
Image resolution is the ratio of pixels or dots in your image to output size. It tells you the number of dots...