页面刷新后是否可以保留表单(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
最满意答案
我们遇到了这个确切的问题,发现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前缀。 ...
-
在Visual C#中,如何禁用WiX项目?(In Visual C#, how to disable WiX project? (makes build too slow))[2023-02-03]
是的,转到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#项目需要重建的原因,这 ...