且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我的网站名称是什么

更新时间:2023-11-20 20:11:10

8月2日晚上11点12分,Arne< A ... @ discussion.microsoft.comwrote:

我在页面对象中寻找一个属性,它将返回类似

" http:// localhost:1530 / myapp"

我应该寻找什么属性?



Arne,你可以使用Request.ServerVariables()方法

http://www.4guysfromrolla.com/webtech/092298-3.shtml


&QUOT;·阿尔&QUOT; < Ar ** @ discussion.microsoft.com写信息

news:94 ************************** ******** @ microsof t.com ...

>我在页面对象中寻找一个会返回某些内容的属性/>喜欢

" http:// localhost:1530 / myapp"

我应该寻找什么属性?



Request.ServerVariables [" HTTP_HOST"]

-

Mark Rae

ASP.NET MVP
http://www.markrae.net


page.request.url效果更好

-

Arne Garvander

认证极客

专业数据家伙

" Mark Rae [MVP]"写道:

" Arne" < Ar ** @ discussion.microsoft.com写信息

news:94 ************************** ******** @ microsof t.com ...

我在页面对象中寻找一个可以返回内容的属性

喜欢

" http:// localhost:1530 / myapp"

我应该寻找什么属性?



Request.ServerVariables [" HTTP_HOST"]


-

Mark Rae

ASP.NET MVP
http://www.markrae.net


I am looking for a property in the page object that would return something like
"http://localhost:1530/myapp"
What property should I look for?

--
Arne Garvander
Certified Geek
Professional Data Dude

On Aug 2, 11:12 pm, Arne <A...@discussions.microsoft.comwrote:
I am looking for a property in the page object that would return something like
"http://localhost:1530/myapp"
What property should I look for?

Arne, you can use the Request.ServerVariables() method

http://www.4guysfromrolla.com/webtech/092298-3.shtml


"Arne" <Ar**@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
>I am looking for a property in the page object that would return something
like
"http://localhost:1530/myapp"
What property should I look for?

Request.ServerVariables["HTTP_HOST"]
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


page.request.url works better
--
Arne Garvander
Certified Geek
Professional Data Dude
"Mark Rae [MVP]" wrote:
"Arne" <Ar**@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
I am looking for a property in the page object that would return something
like
"http://localhost:1530/myapp"
What property should I look for?


Request.ServerVariables["HTTP_HOST"]
--
Mark Rae
ASP.NET MVP
http://www.markrae.net