页面刷新后是否可以保留表单(html)内容数据?(Is it possible to retain the form(html) content data after page refreshed?)

请给我一个很好的建议,但不使用Ajax。 我的意思是说可以在JavaScript / J查询或其他方面做。

我的问题:当我提交一个页面时,操作类再次返回到同一页面,按照我的要求,我必须保留一些单选按钮的状态和检查过的复选框。

任何帮助将不胜感激。


Please give me a good suggestion but without using Ajax. I mean to say is it possible to do in JavaScript/J query or else.

My Issue : When i am submitting one page, the action class again return to this same page now as per my requirement i have to retain the state of some radio button and checked boxes checked as it checked before.

Any help will be appreciated.


原文:https://stackoverflow.com/questions/17295793
2024-04-25 08:04

满意答案

我们遇到了这个确切的问题,发现msi构建过程在c:\ Documents and Settings \用户名\ Local Settings \ Temp文件夹中创建了vsi * .tmp文件,这些文件没有被清理,因此随着时间的推移逐渐积累起来。 存在的这些文件越多,创建msi的时间就越长。 我们通过使用计划任务来删除任何大于24小时的文件来解决我们的问题。

注意 - 对于我们的情况,服务器是Windows Server 2003 R2 - 因此是c:\ Documents and Settings前缀。 如果您使用的是Windows Vista或Windows 7,则可能会通过在c:\ Users \ username下搜索vsi * .tmp来找到这些文件。


After tinkering with things for awhile, I found that changing the Register setting to NOT REGISTER for COM in favor of having the DLL build perform the registration, the installer build became much more reliable (and faster). I'm not sure this constitutes a solution, since COM registration should simply work. But, I've at least been able to work around the issue.

相关问答

更多

在c#项目中使用XSD Build任务(Use XSD Build task in c# project)

忘记C ++位,这是对msdn页面标题的分心。 该工具被称为XML模式定义工具(Xsd.exe) ,并用于创建模式或代码。 要进一步调试,请将您的msbuild日志记录级别设置为/ versbosity:诊断并查看哪些头文件(引入的MSBUILD任务定义)。 Forget the C++ bit, it's a distraction from the msdn page title. The tool is called XML Schema Definition Tool (Xsd.exe),...

VS2010:创建生成后事件(C#)(VS2010: Creating Post-Build Events (C#))

我继续前进,并以批处理形式离开了构建后事件,但我将代码移到了批处理文件中,这样我就可以使用更好的文本编辑器和语法高亮显示。 您也可以使用像CS-Script这样的脚本语言,我可能会在稍后做。 它确实需要第三方软件,但是您可以用C#编写构建事件,并使用完整的语法高亮和代码完成功能。 I went ahead and left the post build event in batch form, but I moved the code into a batch file so I could us...

VS 2010:C#Project无法打开DLL(VS 2010: C# Project Cannot Open DLL)

您是否意外地在项目中包含了bin文件夹? 如果是,那可能会导致问题。 您不能在项目中包含bin文件夹,因为VS将创建bin文件夹。 如果您不小心在项目中包含bin文件夹,则bin项目将设置为Copy to output,在编译时,文件将被删除并由Visual Studio复制到输出,从而触发某些文件丢失的奇怪行为。 希望这有帮助 Well I'm not sure exactly what happened here, but here is what finally resolved the i...

使用Visual Studio 2010将VB项目代码更改为C#(Change VB project code to C# using Visual Studio 2010)

我不认为Visual Studio本身提供了任何功能,但还有其他各种选择。 有特定的转换器,例如来自Tangible的转换器。 或者,您可以构建VB代码,然后使用Reflector或dotPeek等反编译为C#。 (Reflector的最新版本不是免费的,但仍然有一个版本6版本没有定时炸弹 。) 请注意,代码的逐字翻译可能最终会调用Microsoft.VisualBasic程序集中的各种方法 - 您需要做更多的工作才能将其转换为惯用的C#。 I don't believe Visual Studi...

在ubuntu上编译VS2010 c#解决方案(项目)(Compile VS2010 c# solution (project) on ubuntu)

我要做的第一件事就是使用Moma检查你的程序是否会在Mono下运行。 您还可以使用可以使用Visual Studio项目的MonoDevelop 。 从他们的常见问题: 事实上,由于MonoDevelop 2.0的默认项目格式已经是VS2008风格的MSBuild项目,但VS2005和VS2010格式也都得到了处理。 The first thing I would do would be to use Moma to check to see if your program will run un...

VS 2010中意外的缓慢构建了C#项目(Unexpected slow build of C# project in VS 2010)

我们遇到了这个确切的问题,发现msi构建过程在c:\ Documents and Settings \用户名\ Local Settings \ Temp文件夹中创建了vsi * .tmp文件,这些文件没有被清理,因此随着时间的推移逐渐积累起来。 存在的这些文件越多,创建msi的时间就越长。 我们通过使用计划任务来删除任何大于24小时的文件来解决我们的问题。 注意 - 对于我们的情况,服务器是Windows Server 2003 R2 - 因此是c:\ Documents and Setting...

在Visual C#中,如何禁用WiX项目?(In Visual C#, how to disable WiX project? (makes build too slow))

是的,转到Build - > Configuration Manager 在这里,您可以取消选中您的WiX项目的Build 。 这样该项目不会建立。 您也可以选择不在Debug配置中构建它,而是在执行Release构建时构建它。 Yes, go to Build -> Configuration Manager Here you can uncheck Build for your WiX project. This way the project will not build. You can ...

无法在C#2010中引用moq.dll(Cannot reference moq.dll in C# 2010)

您的项目针对的是.NET 4客户端配置文件,将其更改为“常规”.NET 4,它将起作用。 Your project is targeting the .NET 4 Client Profile, change it to 'regular' .NET 4 and it'll work.

VS2010中有多个构建配置的项目?(one project with multiple build configurations in VS2010?)

创建32位构建和64位构建。 这将允许您将它们放在不同的文件夹中。 右键单击解决方案,选择“Configuration Manager”在Active Solution Configuration中选择“new”将其命名为32-Bit Build在CPU下拉列表中选择32位选项。 重复并命名为64位构建。 现在,当你进行构建时,它将转到C:\ Development \ ProjectName \ Bin \ 32-Bit Build \ programname.exe或类似的64位 Create...

VS2010 C ++ / CLI项目总是认为VS2012 C#项目已经过时了(VS2010 C++/CLI project always thinks VS2012 C# project is out of date)

项目'H:\ Workspaces \ xxxx \ ProjectA \ ProjectA.vcxproj'不是最新的 这就解释了为什么要重建C ++ / CLI项目。 与您的C#项目没有任何关系。 当然,它正在重建,其依赖性发生了变化。 您还没有找到重建C#项目的触发器。 回头看。 避免这些过时的C ++构建日志记录攻击。 无论如何,这不是你的C ++项目。 倾向于将MSBuild详细信息更改为Detailed。 工具+选项,项目和解决方案,构建和运行。 并专注于输出,向您展示C#项目需要重建...

相关文章

更多

Becoming a data scientist

Data Week: Becoming a data scientist Data Pointed, ...

Spring Data: a new perspective of data operations

Spring Data: a new perspective of data operations ...

HTML5 智能form表单新属性

内容摘要:HTML5 智能form表单新属性,主要包括智能表单介绍和智能表单使用与规范。但在不同支持H ...

data-config

Data-config为solr的data-import处理器配置数据来源。 依次按照如下树状结构: ...

《Big Data Glossary》笔记

清明假期翻以前的笔记发现有一些NoSQL相关的内容,比较零散,是之前读《Big Data Glossa ...

(二)solr data import

solr 的 data import 导入 mysql数据 (1)、编辑 example/solr/c ...

使用Solr Data Import的delta-import功能

使用Solr Data Import的delta-import功能 Solr提供了full-im ...

form load 的问题

baseinfoForm.form.load({ url: '/Url/Institution/In ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本