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

页面刷新后是否可以保留表单(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 ++位,这是对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), and ...
  • 我继续前进,并以批处理形式离开了构建后事件,但我将代码移到了批处理文件中,这样我就可以使用更好的文本编辑器和语法高亮显示。 您也可以使用像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 use a b ...
  • 您是否意外地在项目中包含了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 issue: ...
  • 我不认为Visual Studio本身提供了任何功能,但还有其他各种选择。 有特定的转换器,例如来自Tangible的转换器。 或者,您可以构建VB代码,然后使用Reflector或dotPeek等反编译为C#。 (Reflector的最新版本不是免费的,但仍然有一个版本6版本没有定时炸弹 。) 请注意,代码的逐字翻译可能最终会调用Microsoft.VisualBasic程序集中的各种方法 - 您需要做更多的工作才能将其转换为惯用的C#。 I don't believe Visual Studio its ...
  • 我要做的第一件事就是使用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 under M ...
  • 我们遇到了这个确切的问题,发现msi构建过程在c:\ Documents and Settings \用户名\ Local Settings \ Temp文件夹中创建了vsi * .tmp文件,这些文件没有被清理,因此随着时间的推移逐渐积累起来。 存在的这些文件越多,创建msi的时间就越长。 我们通过使用计划任务来删除任何大于24小时的文件来解决我们的问题。 注意 - 对于我们的情况,服务器是Windows Server 2003 R2 - 因此是c:\ Documents and Settings前缀。 ...
  • 是的,转到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 also ...
  • 您的项目针对的是.NET 4客户端配置文件,将其更改为“常规”.NET 4,它将起作用。 Your project is targeting the .NET 4 Client Profile, change it to 'regular' .NET 4 and it'll work.
  • 创建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 a 32 ...
  • 项目'H:\ Workspaces \ xxxx \ ProjectA \ ProjectA.vcxproj'不是最新的 这就解释了为什么要重建C ++ / CLI项目。 与您的C#项目没有任何关系。 当然,它正在重建,其依赖性发生了变化。 您还没有找到重建C#项目的触发器。 回头看。 避免这些过时的C ++构建日志记录攻击。 无论如何,这不是你的C ++项目。 倾向于将MSBuild详细信息更改为Detailed。 工具+选项,项目和解决方案,构建和运行。 并专注于输出,向您展示C#项目需要重建的原因,这 ...

相关文章

更多

最新问答

更多
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • Java中的不可变类(Immutable class in Java)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • EXCEL VBA 基础教程下载
  • RoR - 邮件中的动态主体(部分)(RoR - Dynamic body (part) in mailer)
  • 无法在Google Script中返回2D数组?(Can not return 2D Array in Google Script?)
  • JAVA环境变量的设置和对path , classpth ,java_home设置作用和目的?
  • mysql 关于分组查询、时间条件查询
  • 如何使用PowerShell匹配运算符(How to use the PowerShell match operator)
  • Effective C ++,第三版:重载const函数(Effective C++, Third edition: Overloading const function)
  • 如何用DELPHI动态建立MYSQL的数据库和表? 请示出源代码。谢谢!
  • 带有简单redis应用程序的Node.js抛出“未处理的错误”(Node.js with simple redis application throwing 'unhandled error')
  • 使用前端框架带来哪些好处,相对于使用jquery
  • Ruby将字符串($ 100.99)转换为float或BigDecimal(Ruby convert string ($100.99) to float or BigDecimal)
  • 高考完可以去做些什么?注意什么?
  • 如何声明放在main之后的类模板?(How do I declare a class template that is placed after the main?)
  • 如何使用XSLT基于兄弟姐妹对元素进行分组(How to group elements based on their siblings using XSLT)
  • 在wordpress中的所有页面的标志(Logo in all pages in wordpress)
  • R:使用rollapply对列组进行求和的问题(R: Problems using rollapply to sum groups of columns)
  • Allauth不会保存其他字段(Allauth will not save additional fields)
  • python中使用sys模块中sys.exit()好像不能退出?
  • 将Int拆分为3个字节并返回C语言(Splitting an Int to 3 bytes and back in C)
  • 在SD / MMC中启用DDR会导致问题吗?(Enabling DDR in SD/MMC causes problems? CMD 11 gives a response but the voltage switch wont complete)
  • sed没有按预期工作,从字符串中间删除特殊字符(sed not working as expected, removing special character from middle of string)
  • 如何将字符串转换为Elixir中的函数(how to convert a string to a function in Elixir)