第一次跟踪,新随笔

Blog,New

postEditor.aspx?App=kzi&BPT=Post

App=kzi,表示我的blog,我用kzi作为注册用户

BPT=Post,未知。

csContext.PostID=-1(新建时为-1,修改的时候,应该就是具体PostID,因为代码中根据此ID进行获取currentPost的操作(WeblogPosts.GetPost))

currentPost=null(根据PostID获取的Post)

                this.BlogPostType = (BlogPostType)Enum.Parse(typeof(BlogPostType),Context.Request.QueryString["BPT"],true);

将url中的BPT的参数(字符串类型)转换为内部的枚举类型。

posted on 2005-10-11 18:14  Konimeter  阅读(322)  评论(0)    收藏  举报