今天看见有位老兄提到了在VS2005里,控制滚动条的方法,突然想起在VS2003里曾经也这样用过。分享跟大家。
其实很简单只要在HTML中
<%@ Page language="c#" SmartNavigation="True" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebApplication8.WebForm2" %>
VS2003中刷新之后使滚动条保持不变<%@ Page language="c#" SmartNavigation="True"   Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebApplication8.WebForm2" %>
加入
VS2003中刷新之后使滚动条保持不变SmartNavigation="True"
代码就OK了。
<%@ Page language="c#" SmartNavigation="True" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebApplication8.WebForm2" %><%@ Page language="c#" SmartNavigation="True" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebApplication8.WebForm2" %>

相关文章: