我听说enum在C#中无法嵌套.那么如何将以下结构转换为类层次结构或其他内容.所以我希望班级充当一个enum

我使用以下内容限制用户只输入一些字符.当我按Tab键时,光标不指向下一个控件(在Mozilla中).但它在IE中运行良好.
// Restricts user to enter characters other than a to z, A to Z and white space( )
// Rauf K. 06.11.2010
$("input:text.characters_only").keypress(function(e) {
if (!((e.which >= 65 && e.which <= 90) || (e.which >= 97 && e.which <= 122) || e.which == 32 || e.which == 8 || e.which == 9)) {
return false;
}
});
Run Code Online (Sandbox Code Playgroud) 我有一个页面层次结构如下

如果我单击"保存"按钮,我想执行PageMethod,所以我编码如下
OnClientClick="return btnSaveAS_Clicked()"
Run Code Online (Sandbox Code Playgroud)
private void RegisterJavaScript()
{
StringBuilder jScript = new StringBuilder();
jScript.Append("<script type='text/javascript'>");
jScript.Append(@"function btnSaveAS_Clicked() {
var txtConditionName = document.getElementById('" + txtConditionName.ClientID + @"').value;
PageMethods.Combine('hello','world', OnSuccess);
function onSuccess(result)
{
alert(result);
}
}");
jScript.Append("</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "conditions_key", jScript.ToString());
}
Run Code Online (Sandbox Code Playgroud)
[WebMethod]
public static string Combine(string s1, string s2) {
return s1 + "," + s2;
}
Run Code Online (Sandbox Code Playgroud)
但是它给出了以下错误......

如何在gridview的RowDataBound事件中访问'BoundField'的值?
什么是Sql Server Management Studio中用于格式化代码的Ctrl + K + D(Visual Studio)?
你能不能让我清楚一点Modernizr.
如果我使用一个功能(比方说border-radius),我使用较旧的浏览器运行它.现代化程序是否会自动将css添加到页面中,或者我应该编写代码以使控件呈现为具有边框.如果第二种情况属实,那么我为什么要使用Modernizr呢?
XmlElement child = doc.CreateElement(element);
在哪里doc的对象XmlDocument.当代码执行上面的代码时element=Tom and Jerry,我收到以下错误:
The ' ' character, hexadecimal value 0x20, cannot be included in a name.
我该怎么做才能包含' '在XmlDocument中?我无法用其他任何东西取而代之.
XML元素不支持名称的其他字符是什么?
来自Oracle JDEdwards EnterpriseOne的安装手册
需要JDK 1.5.截至2008年11月,JDK 1.6及更高版本尚未通过EnterpriseOne验证
正如句子所说,我需要获得JDK 1.5.但下载页面Java SE 5后说Java SE 1.4.我强加的思考Java SE 5是JDK 1.5.我对吗 ?
我有一个 Windows 轮询服务每 10 分钟自动发送一封电子邮件。我曾经Thread.Sleep(new TimeSpan(0, 10, 0));让线程休眠 10 分钟,现在是硬编码的。
为了避免硬编码,我尝试过App.config没有成功。我想将硬编码移动到一些.ini文件中。如何.ini从 C# Windows 服务读取文件。
编辑:我尝试使用下面的代码从我的 Windows 服务中读取。
string pollingInterval = (string)new AppSettingsReader().GetValue("PollingInterval", typeof(string));
给出以下错误。Configuration system failed to initialize