小编JQu*_*ery的帖子

SSDT for visual studio 2015

这存在吗?我找不到视觉工作室2015的SSDT?任何人都知道这是否存在或是否/什么时候可用?

必须是Visual Studio 2015中SSIS/RS的开发方式吗?

编辑

发现这个,http://blogs.msdn.com/b/ssdt/可能是继续检查的最佳地点!

ssdt-bi visual-studio-2015

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

在调试中的加密操作期间发生错误

我收到以下错误.这似乎只是在我升级我的visual studio 2015以进行第一次更新后才开始.我在这里读过一些关于机器密钥问题的线程吗?我不知道如何解决它并防止它.目前,当我使用IIS express在调试中运行时,我在本地计算机上收到此错误.

Exception Details: System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation.

Cache = db.UserTokenCacheList.FirstOrDefault(c => c.webUserUniqueId == userId);

// place the entry in memory
this.Deserialize((Cache == null) ? null : MachineKey.Unprotect(Cache.cacheBits,"ADALCache"));


[CryptographicException: Error occurred during a cryptographic operation.]
   System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) +115
   System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData) +70
   System.Web.Security.MachineKey.Unprotect(ICryptoServiceProvider cryptoServiceProvider, Byte[] protectedData, String[] purposes) +62
   System.Web.Security.MachineKey.Unprotect(Byte[] protectedData, String[] purposes) +121
   LEDES.Models.ADALTokenCache..ctor(String signedInUserId) in C:\Users\RLewis\Source\Workspaces\Workspace\LEDES\LEDES\Models\AdalTokenCache.cs:28
   LEDES.Startup.<ConfigureAuth>b__7_0(AuthorizationCodeReceivedNotification context) in C:\Users\RLewis\Source\Workspaces\Workspace\LEDES\LEDES\App_Start\Startup.Auth.cs:54
   Microsoft.Owin.Security.OpenIdConnect.<AuthenticateCoreAsync>d__1a.MoveNext() +4388
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +26
   Microsoft.Owin.Security.OpenIdConnect.<AuthenticateCoreAsync>d__1a.MoveNext() +5776
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 …
Run Code Online (Sandbox Code Playgroud)

c#

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

在iframe中查找重点项目

我试图在iframe中找到焦点项但却失败了!

每当我插入iframe时,项目似乎都是聚焦的,例如,如果我插入一个表格,那么光标总是在最后一个单元格中.

作为我测试我试图改变单元格的背景颜色,看它是否工作但这总是改变iframe体而不是插入的项目

var d1 = $.Deferred();

$.when(d1).then(function () {                
    var $iframe = $("#ifr").contents();
    var focused = $iframe.find(':focus');
    focused.css("background", "red");
    console.log(focused);
})

d1.resolve(insertTable(html));
Run Code Online (Sandbox Code Playgroud)

d1 只是调用一个函数,它使用execCommand()插入iframe.

是否可以找到聚焦元素并将其存储在此方法中?

iframe jquery html5

5
推荐指数
1
解决办法
548
查看次数

Jquery boolean 在 if() 中不起作用

我可能遗漏了一些明显的东西,并且在很多方面都实现了这一点,但似乎无法让它发挥作用;

我有一个

@Html.HiddenFor(m => m.AddEdit.IsStartValue, new { id = "IsStartValueHidden" })

对于我的模型中的布尔值。

在页面上的脚本中,我有这个

var start = new Boolean();
                    start = $('#IsStartValueHidden').val();
                    console.log(start);
                    if (start == true) {
                        console.log("if start true");
                        $('#StartValue').attr("disabled", "disabled");
                    }
                    else {
                        console.log("If start false");
                    }
Run Code Online (Sandbox Code Playgroud)

第一个 console.log 写入一个真值,但是它没有命中 if() 语句而是转到 else 并写入 false!

我写了很多方法,比如 if($('#IsStartValueHidden').val() == true..

但是无论如何我已经做到了,它总是将值记录为true,但似乎在if部分将其视为false并跳到else。

真的很困惑如何做到这一点!

我也试过使用 If(.. === true) )

jquery

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

检查列表包含字符串

有一个将用于远程验证功能但无法使其工作的类

[HttpPost]
public JsonResult doesUserNameExist(string Forename)
{
    IEnumerable<SelectListItem> user = new List<SelectListItem>();
    using (EIPInternalEntities ctx = new EIPInternalEntities())
    {
        user = new SelectList(ctx.Database
                                 .SqlQuery<string>("EXEC dbo.uspGetLkUpJobTitle")
                                 .ToList());
    }

    var userlist = user.ToList();

    //return Json(user == null);
    return Json(!userlist.Contains(Forename));
}
Run Code Online (Sandbox Code Playgroud)

尝试了不同的方式,但目前 (Forename)) 被标记为错误

“参数 1 不能从 'string' 转换为 'System.Web.Mvc.SelectListItem'

如果我尝试

var userlist = (SelectList)user;

//return Json(user == null);
return Json(!userlist.Contains(Forename));
Run Code Online (Sandbox Code Playgroud)

然后!userList. 被标记说

SelectList 不包含对 Contains 的定义

c# linq json

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

标签 统计

c# ×2

jquery ×2

html5 ×1

iframe ×1

json ×1

linq ×1

ssdt-bi ×1

visual-studio-2015 ×1