有没有更有效的方法来编写这段代码?或者用更少的代码?
SELECT *
INTO #Temp
FROM testtemplate
Declare @id INT
Declare @name VARCHAR(127)
WHILE (SELECT Count(*) FROM #Temp) > 0
BEGIN
SELECT TOP 1 @id = testtemplateid FROM #Temp
SELECT TOP 1 @name = name FROM #Temp
UPDATE testtemplate
SET testtemplate.vendortestcode = (SELECT test_code FROM test_code_lookup WHERE test_name = @name)
WHERE testtemplateid = @id
--finish processing
DELETE #Temp Where testtemplateid = @id
END
DROP TABLE #Temp
Run Code Online (Sandbox Code Playgroud) 我想构建一个插件,它将在Ext.Grid上运行并允许对它进行一些操作(添加新行,在某些事件上更新它们等)我的插件应该扩展哪种类型的组件以获得最佳结果?
有谁知道用于开发类似工作流程图的任何JavaScript框架?我正在寻找方法来显示对象之间的关系,并能够在浏览器中拖动对象.我正在寻找类似于Microsoft Visio功能的东西.
有没有人用Ext JS框架做过类似的事情?到目前为止,这就是我所见过的.
http://kforner.github.com/extjs-dag-drawer/example.html
而且我希望能够像这样拖动组件.
http://raphaeljs.com/graffle.html
我想知道是否有任何可扩展的ASP.NET应用程序的web.config编辑器.我们在此应用程序中使用了各种体系结构:企业库,WCF服务 - 当您更新不必要的代码时,它会进行各种疯狂的更改,工作流库,强类型数据集,自定义Web控件,我们有自定义web.config部分(用于LDAP查询和SSRS订阅自定义设置,自定义.NET规则引擎配置部分),SMTP设置等...文件长度为37页!Enterprise Library有一个很好的web.config编辑器,但它只显示Enterprise Library中的信息.如果有一个很好的GUI来查看web.config并显示每个部分的用途,并且在文本编辑器中不进行编辑就很好.即使它不理解一个部分是什么,编写一个可扩展的控件来解释XML部分中的属性是很酷的.
是否可以在网页的页面加载时检查Scroll Lock,Num Lock和Caps Lock的状态?我已经找到了使用JavaScript在按键后检查的方法,但这不是我要问的.
Mozilla Firefox、Internet Explorer 和/或 Google Chrome 中是否有办法覆盖特定于站点的右侧上下文菜单(通过 JavaScript 启动),以便显示浏览器上下文菜单?我希望能够在上下文菜单中使用浏览器附加选项,但某些站点不允许这样做。如果您对任何这些浏览器有任何经验,请回复,我会给您投票。
一个例子:
打开 Gmail 并右键单击收件箱中的邮件。
javascript firefox internet-explorer google-chrome contextmenu
这可能是许多问题,但我试图在IIS设置或web.config配置中缩小问题的来源.这就是我需要你帮助的地方.我将在下面解释我的设置.通常我在IIS 7中创建网站,而不是虚拟目录,但我的根目录中有一堆共享的JavaScript框架(现在没有通知),我有一堆共享这些文件的应用程序.
我的理论是我没有为网站本身配置.网站的路径是虚拟目录路径上方的文件夹.有些东西告诉我,我需要这个,但我不记得它需要什么.
思考?
请注意,此设置在Windows XP虚拟目录设置中工作正常.但是我在Windows 7和Windows Server 2008上都遇到了这个错误.
这是网站错误:
文本错误(用于搜索):
Server Error in '/' Application.
Configuration Error
Descriptionn: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in …
Run Code Online (Sandbox Code Playgroud) asp.net iis-7 web-config virtual-directory windows-server-2008
参考:
https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/
我运行以下命令来安装conda并创建一个虚拟环境.在我的问题代码块之后继续阅读.
C:\Windows\System32>conda -V
conda 4.1.11
C:\Windows\System32>conda update conda
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment C:\Program Files\Miniconda2:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-env-2.6.0 | 0 498 B
enum34-1.1.6 | py27_0 53 KB
conda-4.2.9 | py27_0 421 KB
------------------------------------------------------------
Total: 475 KB
The following NEW packages will be INSTALLED:
enum34: 1.1.6-py27_0
The following packages will be UPDATED:
conda: 4.1.11-py27_0 --> 4.2.9-py27_0
conda-env: 2.5.2-py27_0 --> 2.6.0-0
Proceed ([y]/n)? …
Run Code Online (Sandbox Code Playgroud) 下面,您会注意到我尝试从 Microsoft SQL Server 2008 的 64 位 Program Files 文件夹中调用一些 Windows 命令提示符命令
C:\Program Files\Microsoft SQL Server\100\Tools\Binn>SQLCMD -S "SQLI2B2" -d
"I2B2_CRC-DEV" -i "C:\SVN\ONT\SQL SERVER\DX_SQLSERVER.sql" -E
Run Code Online (Sandbox Code Playgroud)
HResult 0x2746,级别 16,状态 1 TCP 提供程序:现有连接被远程主机强制关闭。
Sqlcmd:错误:Microsoft SQL Server Native Client 10.0:通信链接失败。
c:\Program Files\Microsoft SQL Server\100\Tools\Binn>
现在,我连接到的数据库(服务器)是 SQL Server 2008。“Microsoft SQL Server”文件夹下有几个目录。90、100、110 和 120。只有 100 和 110 拥有该.\Tools\Binn\SQLCMD.EXE
文件。我注意到 中的以下驱动程序\\Control Panel\All Control Panel Items\Administrative Tools\Data Sources (ODBC)\Drivers\
,所以我不知道客户端驱动程序是否适合我的服务器版本。
Name Version
SQL Server 6.01.7601.17514
SQL Server Native Client 10.0 2009.100.1600.01
SQL Server Native Client …
Run Code Online (Sandbox Code Playgroud) 如何修复常规JavaScript代码,使其不会显示"未定义"并显示输入字段的值?jQuery代码工作正常,并在同一页面上正确显示输入字段值.
常规JavaScript:
var obj = document.evaluate('//html/body/form/div[4]/label/input',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
alert(obj.value);
Run Code Online (Sandbox Code Playgroud)
JQuery 1.7.1代码:
var obj = $('html > body > form > div:nth-child(4) > label > input');
alert(obj.value);
Run Code Online (Sandbox Code Playgroud) javascript ×4
asp.net ×2
extjs ×2
web-config ×2
anaconda ×1
capslock ×1
conda ×1
contextmenu ×1
drawing ×1
editor ×1
extjs4 ×1
firefox ×1
iis-7 ×1
jquery ×1
loops ×1
num-lock ×1
pageload ×1
prefix ×1
relationship ×1
scroll-lock ×1
sql ×1
sql-server ×1
sqlcmd ×1
uml ×1
virtualenv ×1
xpath ×1