Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 4.0 花式盒子弹出窗口不工作_C# 4.0 - Fatal编程技术网

C# 4.0 花式盒子弹出窗口不工作

C# 4.0 花式盒子弹出窗口不工作,c#-4.0,C# 4.0,我创建了一个web应用程序,它需要从名为rippolls的奇特盒子中弹出图像和视频。在这里,我的Rippoll加载在弹出框中,用户可以为这些Rippoll投票。 我的问题是,在一个页面中,我列出了所有rippoll,当我点击带有图像或视频的rippoll时,它会加载我们的fancy box和fancy box css 我引用了 <script src="../../Content/Scripts/jquery.fancybox-1.3.4.pack.js" type="text/java

我创建了一个web应用程序,它需要从名为rippolls的奇特盒子中弹出图像和视频。在这里,我的Rippoll加载在弹出框中,用户可以为这些Rippoll投票。 我的问题是,在一个页面中,我列出了所有rippoll,当我点击带有图像或视频的rippoll时,它会加载我们的fancy box和fancy box css

我引用了

 <script src="../../Content/Scripts/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<link href="../../Content/Styles/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
Html:

脚本引用:

但我仍然得到一个没有fancybox及其样式的页面

我对此表示怀疑,因为我正在为rippoll添加一些文本值,例如:rippoll名称、rippoll问题等。。它可能也有一些特殊字符@%${},这就是为什么不在花式方框中打开rippolls的原因

帮我解决这个问题。如果有任何代码段成功,请发布

$("a.btnVotePop@(poll.Id)").fancybox({

        'onComplete' : function() {
                  alert('hello');
                 try {
                  FB.XFBML.parse();
                  twttr.widgets.load();
                  history.pushState({}, "@poll.Name.Trim()", "/polls/@poll.Id");
                  document.getElementsByTagName("title")[0].innerHTML = "@poll.Name.Trim()";
                  //history.replaceState({}, "title", "@poll.Name.Trim()");
                  //$("#rippoll_image_path").attr("content", $("#polltitle").val());
                  }
                  catch (ex) {
                        alert('Error parsing response.');
                  }

            },

            'onClosed' : function(){
                 alert("closed");
                try {
                history.pushState({}, "Rippoll", "/home/mypage");
                document.getElementsByTagName("title")[0].innerHTML = "My Page";
                 $('#divDetailCont').css('display', 'none');
                }
                catch (ex) {

                }
            },  

             ajax : {
                 type   : "GET"
             },

            'width': '560px'         

    });
<div id="videoDeftImgContainer" class="videoDefultImg">
<a class="btnVotePop@(poll.Id)" href="RippollCardPopup/@(poll.Id)">
<img class="inImgSize" src="@poll.ImagePath" />
</a>
<div id="plyBtnClk" class="playBtn" onclick="">
 <a class="btnVotePop@(poll.Id)" href="RippollCardPopup/@(poll.Id)">
<img src="../../Content/images/newImages/hoverPlay.png" />
</a></div></div>
 <script src="../../Content/Scripts/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<link href="../../Content/Styles/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />