摘要: 利用SiteMapPath控件做论坛导航(也适合其它系统)首先,论坛非常简单,就三个网页,全部用的一个模板做成。第一个网页(default.aspx):用于显示论坛的类别,点击相应的类别,将categoryid传到下一页。第二个网页(list.aspx):用于显示某类别下面的文章列表。利用参数categoryid进行区分。如list.aspx?categoryid=1表示第一大类,list.aspx?categoryid=2表示第二大类。点击相应文章之后,将文章编号(tid)传到下一个网页。第三个网页(content.aspx):用于显示文章内容和回复内容。根据参数tid区别不同的文章。如co 阅读全文
posted @ 2011-08-04 11:33 左轮death029 阅读(556) 评论(1) 推荐(0) 编辑
摘要: 若当前地址为http://www.test.com/testweb/default.aspx ,则可以通过下列方法获得不同的地址Request.ApplicationPath: /testwebRequest.CurrentExecutionFilePath: /testweb/default.aspxRequest.FilePath: /testweb/default.aspxRequest.Path: /testweb/default.aspxRequest.PathInfo:Request.PhysicalApplicationPath: E:\WWW\testweb\Request.P 阅读全文
posted @ 2011-08-04 11:05 左轮death029 阅读(954) 评论(2) 推荐(0) 编辑