如何在 ASP.NET 中使用带有母版页的图像映射控件
我有一个带有图片的母版页,我将图像映射控件与图片附加在一起..但是当我导航到子页面时..图片不会被触发。有没有办法将图像映射控件放在母版页上并通过子页面激活它?
<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~/header.png"
HotSpotMode="Navigate" onclick="ImageMap1_Click" Target="~/AllQuestions.aspx">
<asp:RectangleHotSpot Bottom="1000" HotSpotMode="Navigate" Left="1000"
NavigateUrl="~/AllQuestions.aspx" Right="500" Top="500" />
</asp:ImageMap>
子页面不可点击
I have got a masterpage with a picture on it, I attached the image map control with the picture.. but when i navigate to a child page.. the picture is not triggered. Is there a way to put an image map control on the masterpage and activate it through the child page?
<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~/header.png"
HotSpotMode="Navigate" onclick="ImageMap1_Click" Target="~/AllQuestions.aspx">
<asp:RectangleHotSpot Bottom="1000" HotSpotMode="Navigate" Left="1000"
NavigateUrl="~/AllQuestions.aspx" Right="500" Top="500" />
</asp:ImageMap>
It isnt clickable in the child page
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否正确设置热点?将圆的半径设置得足够大,以便用户能够找到它。将您的代码与以下代码进行比较,检查所有值是否设置正确:
Are you setting the hot spots correctly? set the redius of circle big enough so that user will be able to find it. compare your code with following code check if all the values are set properly: