使用IIS 7.5
在绑定类型下,这些是我看到的选项......但是没有可用的http选项.绑定类型: - net.tcp - net.pipe - net.msmq - msmq.formatname
我怎样才能获得HTTP?我试过卸载IIS并重新安装它,没有帮助..
我想删除一个div
并div
在包装器重排中包含所有其他的(之后)并将它们(滑动)很好地放入它们的新位置.在它四处翻动的时候,事情并不总是出现在正确的地方,而且一般都是失败的.
JsFiddle:http://jsfiddle.net/CUzNx/30/
HTML
<div class="container">
<div id="item1" class="item">Test1</div>
<div id="item2" class="item">Test2</div>
<div id="item3" class="item">Test3</div>
<div id="item4" class="item">Test4</div>
<div id="item5" class="item">Test5</div>
<div id="item6" class="item">Test6</div>
</div>
Run Code Online (Sandbox Code Playgroud)
使用Javascript
var items = document.getElementsByClassName('item');
for(var i = 0; i < items.length; i ++)
{
items[i].onclick = function() {
this.classList.toggle('hide');
}
};
Run Code Online (Sandbox Code Playgroud)
CSS
.container {
width: 500px;
}
.item {
float: left;
width: 48%;
min-height: 187px;
border: 1px solid black;
margin: 0 1% 1em 0;
position: relative;
background: white; …
Run Code Online (Sandbox Code Playgroud) 我的代码中出现了间歇性错误.当我使用Visual Studio调试它时,中断所有异常(捕获和未捕获)它不会中断,所以我不知道该怎么做.
看起来它是堆栈跟踪中的会话状态提供程序,这里是配置:
<sessionState mode="Custom" customProvider="RedisSessionProvider">
<providers>
<add name="RedisSessionProvider" type="Microsoft.Web.Redis.RedisSessionStateProvider" port="6380" host="2asdasdasdasd.redis.cache.windows.net" accessKey="2asdasdasdasd=" ssl="true" />
</providers>
</sessionState>
Run Code Online (Sandbox Code Playgroud)
我从NuGet安装了StackExchange.Redis,我正在运行1.0.297.我无法定期重现这一点,我尝试过各种各样的浏览器和操作系统,它只是"偶尔"发生.
这是堆栈跟踪:
Object reference not set to an instance of an object.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during …
Run Code Online (Sandbox Code Playgroud) 我有一个大的数据表(500k-1m行),没有详细说明这是一个要求,因为最终用户需要/希望能够看到所有数据.这是在本地服务器上,所以带宽等对我来说不是问题.
我在DataTable中有一个DateTime字段,我需要对其进行分组,让我通过分组来解释我的意思......这可能不是你的想法(通过查看这里的其他问题!).
var table = new DataTable();
table.Columns.Add("EventTime", typeof(DateTime));
table.Columns.Add("Result", typeof(String));
table.Columns.Add("ValueOne", typeof(Int32));
table.Columns.Add("ValueTwo", typeof(Int32));
table.Rows.Add("2012-02-06 12:41:45.190", "A", "7", "0");
table.Rows.Add("2012-02-06 12:45:41.190", "B", "3", "89");
table.Rows.Add("2012-02-06 12:59:41.190", "C", "1", "0");
table.Rows.Add("2012-02-06 13:41:41.190", "D", "0", "28");
table.Rows.Add("2012-02-06 17:41:41.190", "E", "0", "37");
table.Rows.Add("2012-02-07 12:41:45.190", "F", "48", "23");
Run Code Online (Sandbox Code Playgroud)
我希望将上面的表分组,以便得到"ValueOne"列的总和,以及"ValueTwo"列的平均值.我需要分组有点灵活,以便我可以指定我想要按分钟分组(只有第一行和最后一行会被分组,其余行只提供它们的值),或者按天(除了最后一行之外的所有行)将被分组为单行)等.
我已经尝试了几次,但我没有在哪里.我的LINQ知识不是很好,但我想我能做到这一点!
注意:DataTable已经在机器上用于无法更改的计算/视图,因此说"停止成为白痴,在SQL中过滤!!!" 是一个有效的答案,对我来说没用!:-D
另外,如果你在标题中错过了它,我需要在C#中使用它 - 我正在使用.NET 4.0 ...
提前谢谢,假设您决定提供帮助!:-)
我在SQL Server 2008数据库中有一个表.我需要更新特定列的值,但同时增加它的值.解释:
如果表是:
CREATE TABLE [dbo].[Player]
(
[PlayerID] [uniqueidentifier] NOT NULL,
[UnitID] [uniqueidentifier] NULL,
[ExerciseID] [uniqueidentifier] NOT NULL,
[Designation] [nvarchar](256) NOT NULL
)
Run Code Online (Sandbox Code Playgroud)
我想通过它有一个每一行ExerciseID
的42C45D73-3FE6-4AFA-8E2F-09BDFC6CBDF7
和更新的Designation
是Player - X
,但X应该从1开始,并通过每次一个增量本身.
所以第一个被更新的玩家将是Player - 1
第二个将会是Player - 2
等等.
我不知道从哪里开始这样的事情!
谢谢
我正在尝试找出一种比较SQL Server 2008中两行的有效方法.我需要编写一个查询,查找Movement
表中Speed < 10
连续N次的所有行.
表的结构是:
EventTime速度
如果数据是:
2012-02-05 13:56:36.980, 2
2012-02-05 13:57:36.980, 11
2012-02-05 13:57:46.980, 2
2012-02-05 13:59:36.980, 2
2012-02-05 14:06:36.980, 22
2012-02-05 15:56:36.980, 2
Run Code Online (Sandbox Code Playgroud)
如果我查找连续2行,它将返回3/4行(13:57:46.980/13:59:36.980),如果我查找连续三行,则不会返回任何内容.数据的顺序仅为EventTime/DateTime.
你能给我的任何帮助都会很棒.我正在考虑使用游标,但它们通常效率很低.此外,这张表的大小约为10米,因此效率越高越好!:)
谢谢!
我有一个查询,我需要在连接中使用相关子查询。我说需要,我的意思是我认为我需要它......我该怎么做?我的查询如下,我收到“无法绑定多部分标识符“FIELDNAME GOES HERE”错误...如何更改此查询以使其正常工作?
SELECT FireEvent.ExerciseID,
FireEvent.FireEventID,
tempHitEvent.HitEventID,
FireEvent.AssociatedPlayerID,
tempHitEvent.AssociatedPlayerID,
FireEvent.EventTime,
tempHitEvent.EventTime,
FireEvent.Longitude,
FireEvent.Latitude,
tempHitEvent.Longitude,
tempHitEvent.Latitude,
tempHitEvent.HitResult,
FireEvent.AmmunitionCode,
FireEvent.AmmunitionSource,
FireEvent.FireEventID,
0 AS 'IsArtillery'
FROM FireEvent
LEFT JOIN (SELECT HitEvent.*,
FireEvent.FireEventID,
Rank()
OVER (
ORDER BY HitEvent.EventTime) AS RankValue
FROM HitEvent
WHERE FireEvent.EventTime BETWEEN
Dateadd(millisecond, -5000,
HitEvent.EventTime) AND
Dateadd(millisecond,
5000, HitEvent.EventTime) AND HitEvent.FiringPlayerID = FireEvent.PlayerID
AND HitEvent.AmmunitionCode =
FireEvent.AmmunitionCode
AND HitEvent.ExerciseID =
'D289D508-1479-4C17-988C-5F6A847AE51E'
AND FireEvent.ExerciseID =
'D289D508-1479-4C17-988C-5F6A847AE51E'
AND HitEvent.HitResult NOT IN ( 0, 1 ) ) AS
tempHitEvent
ON (
RankValue = …
Run Code Online (Sandbox Code Playgroud)