Image Mapping In with C# and MSSQL ?

Posted by Abhi24h under ASP.NET on 8/12/2012 | Points: 10 | Views : 1881 | Status : [Member] | Replies : 1
I want use image mapping in with C# and MSSQL.
In image map when i use mouse over the value will come from database.
Please suggest me, How to do?

Abhishek Kumar
Redeemer Engisoft Pvt.Ltd


Posted by: Vikash on: 8/12/2012 [Member] Starter | Points: 25

Abhishek ji,

Keep your ImageMap inside data control and use databinding expression with AlternateText property

<asp:ImageMap ID="ImageMap1" Width="500px" ImageUrl="~/Images/diaries.jpg" runat="server">
<asp:RectangleHotSpot Bottom="20" Left="0" NavigateUrl="~/Default2.aspx" AlternateText='<#Eval("Name")' Right="100" Top="0" />
<asp:RectangleHotSpot Bottom="20" Left="151" AlternateText="sonu" Right="150" Top="0" />
<asp:RectangleHotSpot Bottom="20" Left="252" AlternateText="sonu" Right="100" Top="0" />

If need furthur help reply on this..........

Vikash Pathak

Abhi24h, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response