Version: VB 2005
Compatibility: VB 2005
Category: ASP.NET
This article describes an easy approach to the construction of a custom ASP.NET 2.0 image button control that contains both a mouse-over effect and calls a JavaScript function when clicked. Whilst the article is pretty simple and the code fairly trivial, the concepts illustrated by means of this example are relatively important and are key to integrating client side functionality into an ASP.NET 2.0 project.
The two important items to pull from this article are: 1) That you can add attributes to a custom control, and 2) that you can embed and evoke JavaScript functions from a custom control.
One possible use for this control may be to drop several of them into a panel and use the panel and collection as a toolbar. Naturally the control would work just fine as a standalone control as well.
CLICKHERE TO DOWNLOAD SOURCE CODE AND ARTICLE
0 comments:
Post a Comment