用户操作
[即时聊天] [发私信] [加为好友]
zhou JamesID:jameszhou
92216次访问,排名1011好友3人,关注者36
PMP & MCAD
jameszhou的文章
原创 92 篇
翻译 0 篇
转载 0 篇
评论 72 篇
James Zhou的公告
Locations of visitors to this page

最近评论
Microsoft_China_Vip:



www.soAsp.net 编程学习网 技术+ 实例应用 讲解不错。 推荐大家!

有很多 技术资料也很好!


chjttony:说多了,没什么意思啊,时间才能证明一切,等到看就有答案了
kenpusney:总感觉微软没前途...
控制帐户:很好。
找了半天什么是控制帐户,终于看到这里有说明。
不过英文看起来恼火。
aladdin:這沒有帶來什麼思想解放阿...

1. HttpContext.RewriteUrl,從2003年就開始用了。

2. M$沒事把這些並不是常常需要用到的把戲,弄得好像和藹可親,但卻常常忘記了: 1) Layering,2) Lightweight,再加上M$常常給出不正確的practice,以致於新的小朋友進公司,還得要花上很多時間把這些錯誤從他們的……
文章分类
收藏
    相册
    链接
    Old Blog - Runner on .NET
    存档
    订阅我的博客
    XML聚合  FeedSky

    原创 ASP.NET 2.0 - Validation Groups and Cross-Page Posting收藏

    新一篇: 微软认证- 升级之路 | 旧一篇: ADO.NET 2.0 - New things

     1. Validation Groups

    In ASP.NET 2.0, there is a new property called the ValidationGroup that can be assigned a string to specify a section. This property exists on the validation controls and on the controls that cause PostBacks to occur. When a control performs a PostBack, the validator controls that have a matching ValidationGroup property are validated.

    On PostBack, the IsValid property on the Page object only reflects the validity of the validation
    controls that have been validated. By default, these are the validation controls that are in the same ValidationGroup, but you can call a validation control’s Validate method to add that control to the set of controls that the IsValid reports on.

    2. Cross-Page Posting

    Cross-page posting is frequently desired in a scenario where data is collected on one Web page and processed on another Web page that displays the results. In this scenario,
    a Button control has its PostBackUrl property set to the Web page to post back to. In the processing page, which is the Web page that you post back to, the data from the first Web page is available.

    The processing page typically needs to access the data from the first page, which is possible by using the PreviousPage property of the Page object. The PreviousPage property
    is set if you are cross-page posting, and if the PreviousPage is set to Nothing (C# null), no cross-page posting occurs.

    You can access any of the controls in the previous page by using the FindControl method on the NamingContainer of the control that you are trying to locate.

    Another way to access the previous page data is to create public properties that expose the data that you need to access. After creating public properties, you need to set the PreviousPageType directive on the result page.

    发表于 @ 2008年03月16日 17:16:00|评论(loading...)|编辑

    新一篇: 微软认证- 升级之路 | 旧一篇: ADO.NET 2.0 - New things

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © James Zhou