我选一个中间节点,则他的子和父亲节点都被选中,但是记录下来的值只有该节点和他的子节点,父亲节点值没有被记录。
如果希望父亲节点也被记录到this.ID里,怎么办?
re: 敏捷OA,免费的OAv1.1 Spring.Cheung 2008-06-27 10:43
是的,不过不影响使用,原因是jquery与vml不兼容引起的
re: 敏捷OA,免费的OAv1.1 h-lei 2008-06-27 09:56
不知怎么搞的,楼主上次发的和这次发的程序,我在IIS 7 和IIS 6上都没配置成功过
re: 敏捷OA,免费的OA Spring.Cheung 2008-06-09 19:41
Sorry,我暂时没有IIS 7的环境,在IIS 5和IIS 6上是可以运行的。
re: 敏捷OA,免费的OA tager 2008-06-09 19:35
我是装在IIS 7上--引用--------------------------------------------------
Spring.Cheung: 楼上是按照安装说明中的步骤安装的吗?
1 安装IIS 5.0以上版本
2 安装.Net Framework 3.5
3 将AgileOA.2008目录放到C:\Inetpub\wwwroot下,右键单击"属性",然后单击"Web 共享",选择"共享文件夹",在弹出对话框中将"别名"设为AgileOA,访问权限选择"读取"和"写入",应用程序权限选择"脚本"
4 运行"控制面板\管理工具\Internet 信息服务",在"网站\默认网站\AgileOA"下右键单击"属性",首先单击"目录安全性",单击"匿名访问和身份验证控制"下的"编辑",选择"匿名访问"和"集成 Windows 身份验证",单击"确定";然后单击"ASP.NET",将"ASP.NET 版本"设为2.0.50727
--------------------------------------------------------
我装在IIS 7上
re: 敏捷OA,免费的OA Spring.Cheung 2008-06-09 19:27
楼上是按照安装说明中的步骤安装的吗?
1 安装IIS 5.0以上版本
2 安装.Net Framework 3.5
3 将AgileOA.2008目录放到C:\Inetpub\wwwroot下,右键单击"属性",然后单击"Web 共享",选择"共享文件夹",在弹出对话框中将"别名"设为AgileOA,访问权限选择"读取"和"写入",应用程序权限选择"脚本"
4 运行"控制面板\管理工具\Internet 信息服务",在"网站\默认网站\AgileOA"下右键单击"属性",首先单击"目录安全性",单击"匿名访问和身份验证控制"下的"编辑",选择"匿名访问"和"集成 Windows 身份验证",单击"确定";然后单击"ASP.NET",将"ASP.NET 版本"设为2.0.50727
re: 敏捷OA,免费的OA tager 2008-06-09 19:10
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
WebSupportModule not initialized. Did you forget to add <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> to your web.config's <httpModules>-section?
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Configuration.ConfigurationErrorsException: WebSupportModule not initialized. Did you forget to add <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> to your web.config's <httpModules>-section?
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[ConfigurationErrorsException: WebSupportModule not initialized. Did you forget to add <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> to your web.config's <httpModules>-section?]
Spring.Util.VirtualEnvironment.AssertInitialized() +41
Spring.Util.VirtualEnvironment.add_EndRequest(RequestEventHandler value) +26
Spring.Objects.Factory.Support.WebObjectFactory.EnsureEventHandlersRegistered() +97
Spring.Objects.Factory.Support.WebObjectFactory..cctor() +33
[TypeInitializationException: “Spring.Objects.Factory.Support.WebObjectFactory”的类型初始值设定项引发异常。]
Spring.Context.Support.WebApplicationContext.CreateObjectFactory() +105
Spring.Context.Support.AbstractXmlApplicationContext.RefreshObjectFactory() +60
Spring.Context.Support.AbstractApplicationContext.Refresh() +62
Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +54
Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations) +17
[TargetInvocationException: 调用的目标发生了异常。]
System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +13
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +366
Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +157
[FatalReflectionException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : '调用的目标发生了异常。']
Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +324
Spring.Context.Support.RootContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) +99
Spring.Context.Support.ContextInstantiator.InstantiateContext() +31
Spring.Context.Support.ContextHandler.InstantiateContext(IApplicationContext parentContext, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +137
Spring.Context.Support.WebContextHandler.InstantiateContext(IApplicationContext parent, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +307
Spring.Context.Support.ContextHandler.Create(Object parent, Object configContext, XmlNode section) +285
[ConfigurationErrorsException: Error creating context 'spring.root': WebSupportModule not initialized. Did you forget to add <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> to your web.config's <httpModules>-section?]
System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) +178
System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) +896
System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1200
System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) +56
System.Configuration.BaseConfigurationRecord.GetSection(String configKey) +8
System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey) +65
System.Configuration.ConfigurationManager.GetSection(String sectionName) +107
Spring.Context.Support.ContextRegistry.InitializeContextIfNeeded() +97
Spring.Context.Support.ContextRegistry.GetContext() +42
Agile.Framework.Service.ServiceContainer..cctor() +5
[TypeInitializationException: “Agile.Framework.Service.ServiceContainer”的类型初始值设定项引发异常。]
Agile.Framework.Service.ServiceContainer.GetService() +0
Agile.OA.Web.Login.Password_ServerValidate(Object source, ServerValidateEventArgs args) +15
System.Web.UI.WebControls.CustomValidator.OnServerValidate(String value) +132
System.Web.UI.WebControls.CustomValidator.EvaluateIsValid() +111
System.Web.UI.WebControls.BaseValidator.Validate() +86
System.Web.UI.Page.Validate() +133
System.Web.UI.Page.Validate(String validationGroup) +2049995
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +81
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1434; ASP.NET 版本:2.0.50727.1434
好东西.以前也发现了这个问题,会以前几行的格式定义整个列的格式,包括长度,我的前几行都是短字符串,后面有超过255的字符串就读不出来.LZ的方法应该可以解决这个问题.
楼主您好,您可能还没有明白我说的现象,是这么个现象 ,比如我有十行数据,我选择了5行,当我操作完成提交后肯定PostBack,这时如果按照您说的加上this.ID.Value = ""; 就会一个都不会选中,也就没有记住我刚才选择了那几条,但是如果去掉this.ID.Value = ""; 就会出现把我的十条全部选中的现象,而不是选中我的那个5行了
@高海东
提交后,
去掉this.ID.Value = ""; 这一句
楼主您好,按照您说的可以做到不全选了,但是还存在一个问题就是没有状态保存了,也就是没有记住我上次选择过的是那个,最好可以把我上次选择的那些可以记住,不知道可以做到吗 谢谢
@高海东
提交后,this.ID.Value = "";
客户端提及的ID均为Hidden的ID,如果使用母版页请用<%= this.ID.ClientID %>
楼主 ,这个功能非常不错,我的js很烂,我用您的这个现在出现一个问题就是,我在girdview中选择了几个复选框后,点击服务器的按钮提交后,页面肯定回刷了,这样的话就把页面中grdiview的复选框全都选择了上了
re: Asp.Net 2.0使用总结 Spring.Cheung 2007-07-14 12:56
谁能说得清呢,Mono暂且不提。等SilverLight,WPF普及后,客户关心的大概只有界面而已。
差的只是不能跨平台而已 , MS的东西的确易用性够强
这年头还PostBack呢?还服务器控件呢?都ajax了
PostBack后可以选择保持现有的checkbox状态(包括三态),也可以清除checkbox的状态。保持或清除checkbox的状态依赖于HiddenField的值。
@布尔
你的那个不能和楼主的比啊 还是楼主的功能强大,不过感觉速度有点慢
看来楼主
是多年程序员了啊
经验很丰富啊
我们这些小弟学习了啊
哈哈!!!
我还写了一篇GridView,DataList,Repeater多选的文章,把两个功能都放到CheckBox.js中了。