小编Aru*_*run的帖子

如何在sql命令中将数字转换为nvarchar

我需要在sql命令中将数值转换为nvarchar.

谁能帮帮我吗.

sql sql-server-2005

25
推荐指数
3
解决办法
11万
查看次数

强制浏览器下载PDF文档而不是打开它

我想让浏览器从服务器下载PDF文档,而不是在浏览器中打开文件.我正在使用C#.

下面是我使用的示例代码.它不工作..

string filename = "Sample server url";
response.redirect(filename);
Run Code Online (Sandbox Code Playgroud)

c# asp.net

23
推荐指数
1
解决办法
6万
查看次数

如何在HTML5中隐藏视频标记的全屏按钮

我需要在HTML5中隐藏视频标签的全屏按钮.有没有办法实现它?

全屏按钮

谢谢.

html5 fullscreen html5-video

19
推荐指数
4
解决办法
4万
查看次数

避免在执行计时器滴答功能时回发

我需要在我的网站中更新图像而不在页面中回发。所以,我在广告旋转器中加载了图像以在图像之间切换。

我还使用计时器滴答功能来刷新广告旋转器中的图像。

但是当定时器滴答函数刷新整个页面时,整个页面都会被刷新,以便我在页面中声明的所有函数都被重新加载。

我只需要广告旋转器图像中的图像应该刷新而不是整个页面。

我需要避免整个页面刷新。请帮助我。

$(document).ready(function() {
    setInterval(function() {
        $('#<% = addrotat.ClientID %>').load(location.href + ' #<% = addrotat.ClientID %> ', '' + Math.random() + '');
    }, 5000);
});
Run Code Online (Sandbox Code Playgroud)

asp.net timer adrotator

4
推荐指数
1
解决办法
1万
查看次数

从c#中的字符串中删除括号

我需要在后面的代码中从c#中的字符串中删除括号.例如,如果我有一个字符串[My [] Groups],我想把它变成My [] Groups.

谢谢.

c# brackets

4
推荐指数
4
解决办法
3万
查看次数

如何使用javascript触发鼠标单击事件

可能重复:
如何触发JavaScript事件点击

我正在开发一个网站,我想使用Java脚本将鼠标单击事件触发到按钮。请任何人帮我解决这个问题。

提前致谢

javascript

3
推荐指数
1
解决办法
1万
查看次数

JW Player没有播放ie9和ie10中的MP4视频格式视频

我在我的网页上实现了jw player 6 player.我能够在浏览器ie9和ie10中的jw播放器中播放mp3文件.但我无法在两种浏览器中播放MP4文件,但它在ie8中工作正常.下面是我使用的代码.

<head runat="server">
    <meta http-equiv="Content-Type" content="video/mp4" />
    <title>JW Player</title>   
    <script type="text/javascript" src="JwPlayer/jwplayer.js"></script>
    <script type="text/javascript">        jwplayer.key = "Key";</script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <div id="container">
            Loading the player ...</div>
        <script type="text/javascript">
            var fileurl = 'https://s3-us-west-1.amazonaws.com/lyynks-assets/experiment/video/sample.mp4';
            if (fileurl != '') {
                jwplayer("container").setup({
                    flashplayer: "JwPlayer/jwplayer.flash.swf",
                    file: fileurl,
                    autostart: "true",
                    height: 500,
                    width: 600
                });
            } else {
                jwplayer("container").setup({
                    flashplayer: "JwPlayer/jwplayer.flash.swf",
                    file: "JwPlayer/video.mp4",
                    autostart: "true",
                    height: 500,
                    width: 600
                });
            }
        </script>
    </div>
    </form>
</body>
Run Code Online (Sandbox Code Playgroud)

请帮我解决这个问题.

javascript jquery jwplayer

3
推荐指数
1
解决办法
7581
查看次数

使用jquery捕获iframe内的鼠标右键单击事件

我需要使用任何 javascript 或 jquery 代码捕获 asp.net 中 iframe 内的鼠标右键单击事件。

下面是我到目前为止尝试过的代码。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Detect IFrame Clicks</title>

<script type="text/javascript" language="javascript" src="JScript/jquery-1.7.1.js"></script>

<script type="text/javascript" language="javascript" src="JScript/jquery.ui.core.js"></script>

<script type="text/javascript" language="javascript" src="JScript/jquery.ui.widget.js"></script>

<script type="text/javascript" language="javascript" src="JScript/jquery.ui.mouse.js"></script>

<script type="text/javascript">        
    document.onmousedown = onMousebtClick
    var isOverIFrame = false;
    $(document).ready(function() {
        function processMouseOut() {
            isOverIFrame = false;
            top.focus();
        }

        function processMouseOver() {
            isOverIFrame = true;
        }

        function processIFrameClick() {
            if (isOverIFrame) {
                log("CLICK << detected. ");
                onMousebtClick();
            }
        }

        function log(message) {
            var console …
Run Code Online (Sandbox Code Playgroud)

javascript asp.net iframe jquery

2
推荐指数
1
解决办法
1万
查看次数

通过java脚本禁用按键事件

我需要使用javascript或任何其他方法禁用我的网站中的shift keypress事件.以下是我的代码:

        $(document).ready(function() {
        document.onkeydown = checkKeycode
        function checkKeycode(e) {
            var keycode;
            if (window.event) {
                keycode = window.event.keyCode;
            }
            else if (e) {
                keycode = e.which;
            }
            //alert(keycode);
            if (keycode == 16) {
                alert(keycode);
                return false;
            }
          }
       });
Run Code Online (Sandbox Code Playgroud)

javascript asp.net javascript-events

1
推荐指数
1
解决办法
3万
查看次数

日期和时间分离

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="inpHide" type="hidden" runat="server" />
        <input id="inpHide1" type="hidden" runat="server" />
        <asp:Label ID="Label1" runat="server"></asp:Label>
        <asp:Label ID="Label2" runat="server"></asp:Label>
        <asp:Label ID="Label3" runat="server"></asp:Label>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Width="100px" Height="30px" Text="Button" />
    </div>
    <script language="javascript" type="text/javascript">
        var current_date = new Date();
        var current_timezone = current_date.getTimezoneOffset();
        document.getElementById("inpHide").value = current_timezone * -1;
        document.getElementById("inpHide1").value = current_date;
        </script>
</body>
</html>

protected void Button1_Click(object sender, EventArgs e)
{
        Label1.Text = inpHide.Value.Trim();
            Label2.Text = inpHide1.Value.Trim();
            Label3.Text = Label2.Text;
}
Run Code Online (Sandbox Code Playgroud)

c# asp.net timezone

0
推荐指数
1
解决办法
6276
查看次数

在c#中添加两个拆分字符串值

我需要添加拆分字符串值以获得舍入值.

string Temp1="0.0154275894165039,1.11531066894531,0.294834136962891,";

string[] Temp2=Temp1.Split(',');
Run Code Online (Sandbox Code Playgroud)

如何将"temp2"中的值相加并将其分配给另一个参数.

c#

0
推荐指数
2
解决办法
250
查看次数

如何使用javascript在浏览器中关闭打印窗口

我需要使用java脚本或任何其他方法关闭浏览器的打印窗口,更优选java脚本.如果您可以关闭IE的打印窗口,Chrome和Safari将不胜感激.

请帮忙..

多谢你们.

javascript jquery

-2
推荐指数
1
解决办法
367
查看次数