使用javascript/jquery在asp.net中的多个弹出窗口 [英] Multiple Popup windows in asp.net using javascript/jquery

查看:56
本文介绍了使用javascript/jquery在asp.net中的多个弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

我使用jquery/javascript
在asp.net中出现多个弹出窗口的问题

我可以创建一个弹出窗口,并且可以正常工作,但是我无法生成多个弹出窗口,我需要生成多个弹出窗口.
我的示例代码iam能够获得单个弹出窗口winodw

hi

I am getting the problem with multiple popup window in asp.net using jquery/javascript


Iam able to create the One Pop window and it working fine , but iam not able to generate the multiple popup window, i need to generate the multile popup windows.
its my sample code iam able to attain the single popup winodw

<div id="Div1" style="display: none;" title="Siva Kumar Reddy">
      <br />
     <table>
     <tr>
     <td colspan="3">
     <asp:TextBox ID="TextBox2"
          runat="server" Height="270px" Width="250px" TextMode="MultiLine"
             CssClass="textbox"></asp:TextBox>
          </td>
     </tr>

      <tr >
    <td colspan="2"><asp:TextBox
              ID="TextBox3" runat="server" Height="50" TextMode="MultiLine"
            CssClass="textbox"></asp:TextBox></td>
    <td>
          <asp:Button
              ID="Button2" runat="server" Text="Button" CssClass="button" /></td>
     </tr>
     </table>


      <br />
  </div>



这是函数




Here is the Function


    <script type="text/javascript">

    jQuery(document).ready(function () {
        jQuery("#Div1").dialog({
            bgiframe: true, autoOpen: false, height: 400, modal: false
        });
    }); 
</script>




我在这里打电话





And here Iam Calling


<a href="#" önclick="jQuery(''#Div1'').dialog(''open''); return false">Click here to see the popup</a>

br mode ="hold"/>请给我一个想法,以获取asp.net中的弹出窗口.

br mode="hold" /> Please Give Me the Idea to Get the Popup windows in asp.net

推荐答案

您将需要更多的<div></div>标记来显示为弹出窗口.您编写页面的方式表明您只会出现一个弹出窗口.您可以单击:

You''re going to need more <div></div> tags to show as popups. The way you have written your page dictates that you will only ever have one popup. You can click on:

<a href="#" önclick="jQuery('#Div1').dialog('open'); return false">Click here to see the popup</a>



在剩下的时间里,您只会看到一个弹出窗口.对于每个弹出窗口,您将需要:



for the rest of time, you''ll only ever see the one popup. For each popup you will need:

<div id="UNIQUEID" style="display: none;" title="Siva Kumar Reddy">
</div>



其中UNIQUEID是唯一标识<div></div>的字符串.然后,您可以通过以下方式打开弹出窗口:



Where UNIQUEID is a string uniquely identifying the <div></div>. You can then open the popups by:

<a href="#" önclick="jQuery('#UNIQUEID').dialog('open'); return false">Click here to see the popup</a>



同样,UNIQUEID是唯一标识要显示为弹出窗口的<div></div>的字符串.



again, where UNIQUEID is a string uniquely identifying the <div></div> you want to show as a popup.


这篇关于使用javascript/jquery在asp.net中的多个弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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