海豚宝宝的代码生活

专注于.Net系统开发

导航

2009年4月21日 #

(备忘)如何用Request方法取得当前请求页面地址中的各个部分

摘要: 用下面的方法自动获取如果测试的url地址是http://www.test.com/testweb/default.aspx?name=abc, 结果如下:Request.ApplicationPath: /testwebRequest.CurrentExecutionFilePath: /testweb/default.aspxRequest.FilePath: /testweb/default.... 阅读全文

posted @ 2009-04-21 16:15 Bruse 阅读(751) 评论(0) 推荐(0)

如何控制Asp.net Login控件的重定向地址

摘要: 要控制Asp.net中Login控件的ReturnURL地址,即控制重定向地址,需要在Loggedin这个事件中处理,在其他地方,该控件都会直接引用ReturnURL参数后面的地址,代码本身很简单,但很多时候我们没有注意到这个事件: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHigh... 阅读全文

posted @ 2009-04-21 16:11 Bruse 阅读(404) 评论(0) 推荐(0)