KB3102467和ASP.NET Gridview分页行为 [英] KB3102467 and ASP.NET Gridview paging behavior

查看:100
本文介绍了KB3102467和ASP.NET Gridview分页行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的登台服务器(Windows 2012服务器)上,我们注意到ASP.NET Web窗体应用程序的行为发生了变化。具体来说,我们在几个页面上有Gridviews,在以下情况下突然停止工作:

On our staging servers, which are Windows 2012 Servers, we noticed a behavior change with our ASP.NET Web Forms application. Specifically, we have Gridviews on several pages that suddenly stopped working in the following case:

Gridviews有AllowPaging = True

The Gridviews have AllowPaging=True

里面有文本框允许编辑的单元格和保存ImageButton,用于保存数据并在回发时重新绑定网格视图并刷新回屏幕。 在正常情况下,我们可以翻页到第2页或更多,然后更新
一个值。 在保存按钮回发中,我们可以看到GridViewRowCollection.Rows.Count是一个值> 0(我们在调试中观察var)。 这仅在您翻页时发生。 如果您留在第1页,则更新有效,因为Rows.Count> 0。

There are textboxes inside the cells which allow editing and a save ImageButton that saves the data and rebinds the gridview on a postback and refreshes back to the screen.  Under normal circumstances we can page to page 2 or more and then update a value.  On the save button postback, we can see that GridViewRowCollection.Rows.Count is a value > 0 ( we watch the var in debug).  This only happens when you page.  If you stay on page 1 the update works because Rows.Count > 0.

然而,当我们将KB3102467安装到我们的服务器上并重复这些步骤时,gridview在点击保存时会丢失其行数,因此没有要评估的行和迭代服务器端保存功能。

However, when we install KB3102467 onto our server, and repeat these steps the gridview loses its row count above at some point when the save is clicked so there are no rows to evaluate and iterate on the serverside save function.

这是一个visual studio 2013 asp.net Web表单应用程序。 我可以更深入地了解服务器端vb.net代码的内容,但我对更新中的内容更加好奇,我们通过卸载
并重新安装并重新创建问题而将其作为罪魁祸首。已安装并且无需安装即可正常工作。

This is a visual studio 2013 asp.net web forms application.  I can get much deeper in the weeds on what the serverside vb.net code does but I am more curious about what has changed in the update which we have isolated as the culprit through uninstalling and reinstalling and recreating the problem with it installed and it working without it being installed.

换句话说:如果我们卸载更新KB3102467
https://support.microsoft.com/en-us/kb/3102467
   Rows.Count评估为正数,功能正常。 重新安装更新并且Rows.Count = 0并且我们的保存失败。

In other words: if we uninstall the update KB3102467 https://support.microsoft.com/en-us/kb/3102467  the Rows.Count evaluates to a positive number and the feature works fine.  Reinstall the update and Rows.Count = 0 and our save fails.

推荐答案

您没有VB.NET问题。你有ASP.NET问题

You don't have a VB.NET issue. You have ASP.NET issues

http://forums.asp.net/

http://forums.asp.net/


这篇关于KB3102467和ASP.NET Gridview分页行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆