首页 \ 问答 \ 如何在ASP.NET MVC中制作更新面板(How to make update panel in ASP.NET MVC)

如何在ASP.NET MVC中制作更新面板(How to make update panel in ASP.NET MVC)

如何在ASP.NET Model-View-Contoller(MVC)框架中创建一个更新面板?


How do I make an update panel in the ASP.NET Model-View-Contoller (MVC) framework?


原文:https://stackoverflow.com/questions/961612
更新时间:2021-09-24 18:09

最满意答案

我遇到了同样的问题,但解决方案却相当简单。 只需选择其中一个库 - gson-1.6-sources或gson-1.6即可添加到您的路径中,并从那里勇敢地删除另一个库。

它给我带来了很多麻烦,不仅有错误,你已经提到过,而且我的Activity代码中的Gson类也有NoClassDefFoundError。

PS我会感激任何澄清,为什么这个重复错误实际发生:)。


I had the same problem, the solution found out to be rather simple though. Just choose one of the libraries - either gson-1.6-sources or gson-1.6 to be added to your path and bravely delete another one from there.

It caused me quite lot of trouble, not only with error, you've mentioned but also with NoClassDefFoundError for Gson class within my Activity code.

P.S. I would appreciate any clarification, why this duplication error actually happens:).

相关问答

更多
  • 在string.xml中尝试这个: {\"status\":\"success\",\"data\":{\"name\":\"Test\",\"mob_no\":\"8089647076\",\"country_prefix\":\"+91\",\"email\":\"\"}} Try this in your string.xml: {\"statu ...
  • 我遇到了同样的问题,但解决方案却相当简单。 只需选择其中一个库 - gson-1.6-sources或gson-1.6即可添加到您的路径中,并从那里勇敢地删除另一个库。 它给我带来了很多麻烦,不仅有错误,你已经提到过,而且我的Activity代码中的Gson类也有NoClassDefFoundError。 PS我会感激任何澄清,为什么这个重复错误实际发生:)。 I had the same problem, the solution found out to be rather simple though. ...
  • FoodFragment jsondata = gson.fromJson(SERVER_URL, FoodFragment.class); FoodFragment.class是当前类文件的名称,而不是JSON表示的Java对象。 第二个参数必须是POJO,第一个是JSON字符串,而不是URL。 看起来您需要先发出HTTP请求,然后才可以 MapData map = gson.fromJson(serverResponse, MapData.class); 当然,在创建MapData类之后。 Food ...
  • Gson是一个主流图书馆。 您的问题似乎与您的服务器设置有关:您在类路径中使用Gson库编译您的servlet(当您运行程序时,它也可以在类路径中,可能来自IDE)。 但是当你把你的战争放到服务器上(Gson错过了)时, doPost会遇到new Gson() 。 因此,在编译时和运行时都要确保在类路径中有Gson库jar 。 Gson is a mainstream library. It seems that your issue is related to your server setup: you ...
  • 来自Gson用户指南 : 如果字段标记为瞬态(默认情况下),则忽略该字段,并且不包括在JSON序列化或反序列化中。 ... 默认情况下,如果将字段标记为瞬态,则会将其排除。 同样,如果某个字段标记为“静态”,则默认情况下会将其排除。 因此,解决问题的方法只是将logger标记为瞬态或静态,例如: transient Logger logger = Logger.getRootLogger(); 这样,变量将从序列化和反序列化中排除,并且您不会得到该错误。 From the Gson User Guide: ...
  • 你在groupId中犯了一个错误,它是“com.google。code .gson”: "com.google.code.gson" % "gson" % "2.2" You made a mistake in the groupId, it is "com.google.code.gson": "com.google.code.gson" % "gson" % "2.2"
  • 向类添加一个空构造函数,因为这只会用于设置值,如果上下文未初始化,这不会导致任何问题 public UserValues() { } add an empty constructor to the class as this will only be used to set values this should not cause any issues if the context is not initialised public UserValues() { }
  • Gson不兼容GWT。 你应该使用像gwt-jackson这样的GWT兼容库。 或者,如果您的模型很简单,您可以使用一种名为JsInterop DTO的技术。 并直接使用浏览器本机JSON.parse函数。 这种技术基于JsInterop,并在此解释了一些限制。 例: @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") class SearchResult { public String display_n ...
  • 我相信你把javac和java参数顺序混淆了。 语法是: javac 和 java [-options] class [args...] 所以它应该是这样的 javac -cp gson.jar myProgram.java java命令也是如此。 I believe you have the javac and java argument order mixed up. The syntax is: javac
  • 您可以使用数组 String[] array = gson.fromJson(jsonString, String[].class); 或使用TypeToken Type listType = new TypeToken>() {}.getType(); List list = gson.fromJson(jsonString, listType); You can use an array String[] array = gson.fromJso ...

相关文章

更多

最新问答

更多
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的
  • SimplePie问题(SimplePie Problem)
  • 在不同的任务中,我们可以同时使用多少“上下文”?(How many 'context' we can use at a time simultaneously in different tasks?)
  • HTML / Javascript:从子目录启用文件夹访问(HTML/Javascript: Enabling folder access from a subdirectory)
  • 为什么我会收到链接错误?(Why do I get a linker error?)
  • 如何正确定义析构函数(How to properly define destructor)
  • 垂直切换菜单打开第3级父级。(Vertical toggle menu 3rd level parent stay opened. jQuery)
  • 类型不匹配 - JavaScript(Type mismatch - JavaScript)
  • 为什么当我将模型传递给我的.Net MVC 4控制器操作时,它坚持在部分更新中使用它?(Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?)
  • 在使用熊猫和statsmodels时拉取变量名称(Pulling variable names when using pandas and statsmodels)
  • 如何开启mysql计划事件
  • 检查数组的总和是否大于最大数,反之亦然javascript(checking if sum of array is greater than max number and vice versa javascript)
  • 使用OpenGL ES绘制轮廓(Drawing Outline with OpenGL ES)
  • java日历格式(java Calendar format)
  • Python PANDAS:将pandas / numpy转换为dask数据框/数组(Python PANDAS: Converting from pandas/numpy to dask dataframe/array)
  • 如何搜索附加在elasticsearch索引中的文档的内容(How to search a content of a document attached in elasticsearch index)
  • LinQ to Entities:做相反的查询(LinQ to Entities: Doing the opposite query)
  • 从ExtJs 4.1商店中删除记录时会触发哪些事件(Which events get fired when a record is removed from ExtJs 4.1 store)
  • 运行javascript后如何截取网页截图[关闭](How to take screenshot of a webpage after running javascript [closed])
  • 如何使用GlassFish打印完整的堆栈跟踪?(How can I print the full stack trace with GlassFish?)
  • 如何获取某个exe应用程序的出站HTTP请求?(how to get the outbound HTTP request of a certain exe application?)
  • 嗨,Android重叠背景片段和膨胀异常(Hi, Android overlapping background fragment and inflate exception)
  • Assimp详细说明typedef(Assimp elaborated type refers to typedef)
  • 初始化继承类中不同对象的列表(initialize list of different objects in inherited class)
  • 使用jquery ajax在gridview行中保存星级评分(Save star rating in a gridview row using jquery ajax)
  • Geoxml3 groundOverlay zIndex(Geoxml3 groundOverlay zIndex)