问题列表 - 第10434页

DevExpress CheckEdit Control - 将标签部分放在左侧

如何将DevExpress CheckEdit控件的标签部分放在复选框的左侧?

devexpress

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

Flex框架的替代方案

是否存在类似于Flex的替代ActionScript 3轻量级框架,但不是那么庞大.Flex是相当大的,SWF的重量不低于150Kb,我只是认为必须能够获得具有较小SWF文件的东西作为最终结果.

我来到AS Wing,很奇怪是否有更多.

感谢您提前回复!

apache-flex adobe actionscript flex4

11
推荐指数
4
解决办法
3146
查看次数

无法使用实例引用访问成员"<method>"

我正在进入C#,我遇到了这个问题:

namespace MyDataLayer
{
    namespace Section1
    {
        public class MyClass
        {
            public class MyItem
            {
                public static string Property1{ get; set; }
            }
            public static MyItem GetItem()
            {
                MyItem theItem = new MyItem();
                theItem.Property1 = "MyValue";
                return theItem;
            }
        }
     }
 }
Run Code Online (Sandbox Code Playgroud)

我在UserControl上有这个代码:

using MyDataLayer.Section1;

public class MyClass
{
    protected void MyMethod
    {
        MyClass.MyItem oItem = new MyClass.MyItem();
        oItem = MyClass.GetItem();
        someLiteral.Text = oItem.Property1;
    }
}
Run Code Online (Sandbox Code Playgroud)

一切正常,除非我去访问Property1.智能感知只给我" ,和"作为选项.当我将鼠标移到上面时,Visual Studio给出了这样的解释:EqualsGetHashCodeGetTypeToStringoItem.Property1

MemberMyDataLayer.Section1.MyClass.MyItem.Property1.getcannot be …

c# asp.net

175
推荐指数
5
解决办法
30万
查看次数

如何减少jQuery代码中的冗余?

我的JavaScript文件的大小已经失控,因为我有数百个链接,每个链接都有自己的jQuery函数,即使它们都执行基本相同的任务.

这是一个简短的摘录:

$("#link1").click(function ()
{
  $(".myDiv").hide();
  $("#myDiv1").toggle();
});

$("#link2").click(function ()
{
  $(".myDiv").hide();
  $("#myDiv2").toggle();
});

$("#link3").click(function ()
{
  $(".myDiv").hide();
  $("#myDiv3").toggle();
});
Run Code Online (Sandbox Code Playgroud)

有没有办法抽象出一些逻辑,这样我只有一个函数而不是数百个函数做同样的事情?

javascript jquery redundancy abstraction

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

如何自动化安装程序测试

我想知道是否有人有任何最佳实践可以在具有可能不同的硬件/软件配置文件的各种机器上自动测试安装程序,并为安装程序指定各种选项.我的想法是,我可以编写"单元测试"代码来设置机器,运行安装程序,然后测试某些事情是否属实.测试可能类似于:

Test:
    Boot Machine without IIS
    Run Installer
    Assert Installer Had Errors

Test:
    Boot Machine with IIS
    Run Installer
    Assert Installer Ran

Test_Fixture:
    SetUp:
        Boot Machine with IIS

    Test:
        Run Installer without IIS install
        Assert Website Not Installed

    Test:
        Run Installer with IIS install
        Assert Website Installed
Run Code Online (Sandbox Code Playgroud)

我知道我可以创建大量的虚拟机,但等待虚拟机为每个功能测试启动听起来比我想要的工作更多.我真正想要的是一种虚拟化安装程序环境的方法.有什么建议?

virtualization installer automated-tests unit-testing

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

如何在ASP.NET全球化中配置不变文化?

我需要将CurrentCulture修复为ASP.NET应用程序中的不变文化.我怎样才能做到这一点?

<configuration>
   <system.web>
      <globalization culture="???" />
   ...
Run Code Online (Sandbox Code Playgroud)

asp.net globalization web-config

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

T-SQL 2008中的Unpivot与Union查询

我正在从中检索数据的数据库具有这样的表结构

表:ClientSales

ClientSalesId                 int identity (1, 1) (PK)
ClientId                      int (FK)
TermId                        int (FK)
StudentType1Population        int
StudentType1Adjustment        int
StudentType1Sales             int
StudentType1SalesAdjustment   int
StudentType2Population        int
StudentType2Adjustment        int
StudentType2Sales             int
StudentType2SalesAdjustment   int
StudentType3Population        int
StudentType3Adjustment        int
StudentType3Sales             int
StudentType3SalesAdjustment   int
StudentType4Population        int
StudentType4Adjustment        int
StudentType4Sales             int
StudentType4SalesAdjustment   int
StudentType5Population        int
StudentType5Adjustment        int
StudentType5Sales             int
StudentType5SalesAdjustment   int
Run Code Online (Sandbox Code Playgroud)

我必须在报告中显示它如下所示

对于ClientId = 1和Term Id = 1

                人口人口调整销售额调整
StudentType1 313 18 123 22
StudentType2 233 14 156 33
StudentType3 234 12 112 41
StudentType4 233 13 …

sql t-sql sql-server unpivot

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

使用jQuery从<select>输入过滤表

我正在尝试<select>使用jQuery 从字母输入中过滤表格.

我在表的两列中有名字和姓氏,我想用其中任何一个过滤行.

我有一个选择输入设置如下:

<select>
    <option value="A">A</option>
    <option value="B">B</option>
    <option value="C">C</option>
    ...
</select>
Run Code Online (Sandbox Code Playgroud)

我想过滤这个表格:

<tr>
    <td>Joe</td>
    <td>Schmoe</td>
    <td>$2482.79</td>
    <td>172.78.200.124</td>
    <td>http://gmail.com</td>
</tr>
<tr>
    <td>John</td>
    <td>Doe</td>
    <td>$2776.09</td>
    <td>119.232.182.142</td>
    <td>http://www.example.com</td>
</tr>
Run Code Online (Sandbox Code Playgroud)

我如何使用jQuery过滤表?

jquery select html-table

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

Delphi中显示自定义消息对话框的最佳方式是什么?

我正在使用Delphi,我想在MessageDlg的按钮中显示自定义文本,如此处所述.最好的方法是什么?

delphi user-interface

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

寻找ARM Thumb2的有效整数平方根算法

我正在寻找一个快速,仅整数算法来找到无符号整数的平方根(整数部分).代码必须在ARM Thumb 2处理器上具有出色的性能.它可以是汇编语言或C代码.

任何提示欢迎.

embedded arm square-root

42
推荐指数
6
解决办法
5万
查看次数