使用jquery在asp.net中打开dialouge框 [英] open dialouge box in asp.net using jquery

查看:45
本文介绍了使用jquery在asp.net中打开dialouge框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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">
    <title></title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script type="text/javascript">
        $(function () {
            $("#dialog").dialog({
                autoOpen: false,
                show: {
                    effect: "blind",
                    duration: 1000
                },
                hide: {
                    effect: "explode",
                    duration: 1000
                }
            });
            $("#btn").click(function () {
                $("#dialog").dialog("open");
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dialog" title="Basic dialog">
        <p>
            This is an animated dialog which is useful for displaying information. The dialog
            window can be moved, resized and closed with the 'x' icon.</p>
    </div>
    <asp:LinkButton runat="server" ID="btn" Text="Clickme">
       <a id="btn">Cick</a>
    </form>
</body>
</html>



这里这是我的页面,当我使用一个html链接按钮弹出窗口打开...但是当我使用asp.net链接按钮时它没有打开..告诉我是什么问题


here this is my page here when iam using a html link button the pop up is opened... but when iam using asp.net link button its not opening.. tell me what is the problem

推荐答案

function (){


#dialog)。对话框({
autoOpen: false
show:{
effect: blind
持续时间: 1000
},
hide:{
效果: explode
持续时间: 1000
}
});
("#dialog").dialog({ autoOpen: false, show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } });


#btn)。click( function (){
("#btn").click(function () {


这篇关于使用jquery在asp.net中打开dialouge框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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