带模态弹出窗口的图像图 [英] Image map with Modal popup

查看:93
本文介绍了带模态弹出窗口的图像图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是asp.net的新手,
我的网页上有6个热点的图像地图,我想在我单击任何热点时打开模式"弹出窗口,并且该弹出窗口会自动显示一些文件流数据(来自本地系统中的某些文档),即基于在热点名称上.

Hi, i am new to asp.net,
my web page having image map with 6 Hot spots,i want when i click on any hot spot a Modal popup window is to be open and that to popup window automatically displays some file stream data(from Some document in my local system) i.e based on hot spot Name.

推荐答案

在渲染图像地图控件后添加它,请检查创建的相应html,然后在控制.捕获javascript中的click事件,并在代码隐藏页面中使用网络方法从文件中读取内容,然后使用javascript自身在模式弹出窗口中显示该事件.不要为小事创建回发...在JavaScript中使用它来显示模式弹出窗口
After you added your image map control when it is rendered check the corresponding html created, There will be links to which you have provided in the control. Trap the click event in the javascript and use a webmethod in your codebehind page to read from the file and then display it in the modal popup using javascript itself . dont create a postback for small things... got it for displaying modal popup in javascript use


find(popup).show();
find(popup).show();


你好,我尝试过的每个人都这样,但是没有打开弹出窗口.谁能纠正我.


hello every one i tried like this but the popup is not opened. can any one correct me.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="main.aspx.cs" Inherits="main" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript">
function showMpe1(index)
{
var modal =


这篇关于带模态弹出窗口的图像图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆