问题列表 - 第19265页

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

"当前配置系统不支持用户范围设置"

当我们在登台服务器上导航到WCF服务时,我们得到一个"当前配置系统不支持用户范围设置"编译异常.

我们通过使用WCF服务的应用程序以及直接导航到.svc测试页面时获得此异常.

这在我们的测试服务器上运行良好 - 并且网站以相同的方式设置(在IIS,文件系统等中).

有人知道这会是什么吗?

asp.net wcf

23
推荐指数
3
解决办法
2万
查看次数

有没有办法显示/隐藏没有CSS的元素?

我正在制作一个符合Web UI 508的要求,其中一个要求是"禁用CSS时使用Web UI".我们有几个地方使用style=display:inline和显示/隐藏元素,style=display:none并使用JS函数调用相应地调用它们.当我禁用CSS(使用WAT2.0)时,隐藏的元素也会显示,这不会使用户界面很好.我们在几个地方都有这些东西,比如折叠/扩展描述,鼠标移动弹出等等,

除了使用样式标签之外,还有其他方式来显示/隐藏元素吗?请指教!

javascript css jsp section508

2
推荐指数
2
解决办法
2903
查看次数

c#从字符串中的键值对中提取值

我有一个像这样的字符串:

blablablamorecontentblablabla?name=michel&score=5&age=28&iliedabouttheage=true
Run Code Online (Sandbox Code Playgroud)

看起来像常规查询字符串是,但我不在任何Web上下文中

现在我想通过他们的键提取值(在=符号之后),例如,名称(michel),分数(5),年龄(28)等.

通常我解析字符串就像获取单词'name'的字符串中的位置,然后将5添加到它(长度'name =')并将此位置命名为'start'然后搜索&-sign并命名该位置'结束',然后在位置开始和结束之间获取字符串.

但必须有一个更好的解决方案,这是一个正则表达式的事情吗?

.net c# string query-string

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

Is it possible to check that a simple expression will always return true?

And I mean this in the easiest way. Say you have a function with the following signature:

public static Expression<Func<T, bool>> CreateExpression<T>(string value)
{
    // ...
}
Run Code Online (Sandbox Code Playgroud)

Usually it will create a more complex expression of some sort, but if the value is null the method should return a constant, always true expression. In other words:

public static Expression<Func<T, bool>> CreateExpression<T>(string value)
{
    if(value == null)
        return x => true;

    // ...
}
Run Code Online (Sandbox Code Playgroud)

Is this something I can create a …

c# lambda unit-testing expression-trees

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

Cocoa Programming on Windows

Is there a way to develop windows applications using cocoa and objective-c in general

windows cocoa objective-c

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

How do I import .sql files into SQLite 3?

I have .sql files which have the following content:

#cat db.sql
create table server(name varchar(50),ipaddress varchar(15),id init)
create table client(name varchar(50),ipaddress varchar(15),id init)
Run Code Online (Sandbox Code Playgroud)

How do I import this file into SQLite so that these are created automatically?

sql sqlite

88
推荐指数
4
解决办法
12万
查看次数

OpenFileDialog and Environment.CurrentDirectory

After using the OpenFileDialog for selecting a file the Environment.CurrentDirectory changes to the folder of the file. Is this normal?

From my understanding Environment.CurrentDirectory should always be the application folder.

c#

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

Should I commit cosmetic changes?

There are minor coding style changes that I often want to commit to the source control, but now the change log is full of those changes that do not affect code functionality.

What should I do next time I have to fix minor things like:

  • Remove and sort usings (in .NET, imports in python, includes in c++)
  • Correct indentation, spacing and line breaks

version-control coding-style commit

31
推荐指数
6
解决办法
6520
查看次数

如何在c#中添加代理

我在c#中创建了一个应用程序我想添加代理服务器我该怎么做.

c#

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