在ASP.NET 2.0中,对于跨页提交已经有了非常合理的解决方案
下面是一个示例:
BeginPage.aspx: 请注意Button1的PostBackUrl属性设置
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
EndPage.aspx:请注意PreviousPageType的属性设置
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/b854634c0904529d4018c4c3336be836.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
![](http://ghd258.cnblogs.com/Images/OutliningIndicators/None.gif)
OK,就通过这么简单的两个属性设置,就可以非常方便的得到跨页提交的特性
原文地址:http://www.cnblogs.com/lijunming/articles/285097.html
在ASP.NET 2.0中,对于跨页提交已经有了非常合理的解决方案
下面是一个示例:
BeginPage.aspx: 请注意Button1的PostBackUrl属性设置
EndPage.aspx:请注意PreviousPageType的属性设置