Click to See Complete Forum and Search --> : user defined/custom buttons


atuvy
February 1st, 2008, 03:30 PM
How can I define a specific area in a web page to act as a button? i.e. I have a graphic design for a page which includes certain areas drawn as buttons, I need to somehow tie these areas to a function

Yeorwned
February 4th, 2008, 10:05 AM
I would probably just use JavaScript to define an HTML Image Map but there is an Image Map control for ASP.NET 2.0
<asp:ImageMap ID="atuvysmap" runat="server"
Height="100px" ImageUrl="~/atuvysmap.gif"
Width="100px">
<asp:RectangleHotSpot Bottom="100
HotSpotMode="Navigate"
NavigateUrl="~/Atuvy1.aspx"
Right="50" AlternateText="Link 1" />
<asp:RectangleHotSpot Bottom="100"
HotSpotMode="Navigate" Left="50"
NavigateUrl="~/Atuvy2.aspx"
Right="100" AlternateText="Link 2" />
</asp:ImageMap>