我有一个datatemplate用于datagridtemplatecolumn
我试图在鼠标悬停在Image.
鼠标悬停时,光标在变化,但图像没有变化。
<DataTemplate x:Key="MyDataTemplate" DataType="DataRowView">
<StackPanel Orientation="Horizontal" Background="Transparent">
<Image Margin="0,0,0,0" Width="50" Height="50" Source="{Binding Converter={StaticResource SetImgToDG}}" ToolTip="{Binding}" >
<Image.Resources>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<!-- Hover image -->
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Source" Value="C:\Images\Coil3.png"/>
</Trigger>
</Style.Triggers>
</Style>
</Image.Resources>
</Image>
</StackPanel>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
那个绑定会产生问题吗?
怎么解决??
我有一个用户给出的字符串.在用户输入后,我希望角色' -'只出现一次,即使出现两次或更多次.
DF--JKIL-L 应该 DF-JKIL-L
`DF-----JK-L-` should be `DF-JK-L-`
Run Code Online (Sandbox Code Playgroud) 这是我的查询:
select * from
(select name,empID,salary,[deducted salary] = salary-7000 from tblEmpDetails
order by Joined_Date) TmpTbl where [decucted salary] > 50000
Run Code Online (Sandbox Code Playgroud)
这是错误的:
The ORDER BY clause is invalid in views, inline functions, derived tables,
subqueries, and common table expressions, unless TOP or FOR XML is also specified.
Run Code Online (Sandbox Code Playgroud)
然后我将查询更改为:
select * from
(select TOP 100 PERCENT name,empID,salary,[deducted salary] = salary-7000
from tblEmpDetails order by Joined_Date) TmpTbl where [decucted salary] > 50000
Run Code Online (Sandbox Code Playgroud)
现在它工作正常.
我的查询是使用TOP 100是正确的方法或任何其他工作有这个?
我在服务器上安装了oracle 11g,而.Net oracle客户端将访问数据库.
直到昨天我使用此连接字符串从客户端连接:
User ID=dbcplas;Password=pwd123;Data Source=(DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = 172.17.26.7)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl.cplas3.com)))
Run Code Online (Sandbox Code Playgroud)
直到昨天我才能在同一个客户端中使用Oracle SQL Developer.
今天早上我们重新启动服务器进行维护.重新启动服务器后,我无法从客户端.Net应用程序或sqldeveloper登录.
我能够通过sql plus服务器系统登录.
除此之外,我无法通过任何其他方式登录.
服务器端sql-developer也无法正常工作.
我从服务器上给出了以下详细信息:
lsnrctl服务:
C:\Users\Administrator>lsnrctl services
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2014 15:
:45
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.26.7)(PORT=1521
)
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER …Run Code Online (Sandbox Code Playgroud)