摘要: GridView 若需要有滚动条,通常会将 GridView 置于 Panel 中,并设定 Panel 的 ScrollBars 属性为 "Auto" 时,这样 Panel 就会自动判断是否需要出现水平或垂直滚动条。 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlig... 阅读全文
posted @ 2008-01-17 07:50 jeff377 阅读(6403) 评论(7) 推荐(0) 编辑
摘要: ASP.NET 的页面执行 PostBack 动作时,页面由伺服端重新传给客户端,而页面的垂直滚动条会跳回最上方,水平滚动条会跳回最左方。 为了解决此情形,只要将 Page 的MaintainScrollPositionOnPostBack 属性设为True 时,页面就会自动维护滚动条位置,它是如何实现这个动作的呢? 当把 Page.MaintainScrollPositionOnPostBac... 阅读全文
posted @ 2008-01-17 07:23 jeff377 阅读(8325) 评论(1) 推荐(2) 编辑