Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Page name & title

0 views
Skip to first unread message

Vik

unread,
Apr 1, 2003, 10:40:42 AM4/1/03
to
How can I get in code behind a page the page's name (appears in Solution
Explorer) and title (appears in Internet browser)?

Thanks.


Steve C. Orr, MCSD

unread,
Apr 1, 2003, 12:01:29 PM4/1/03
to
You can get/set the page title through code by adding the runat="server"
attribute to your title tag.
Here's a good example of how to do it:
http://www.aspalliance.com/kenc/faq5.aspx

As far as the page's file name you should be able to get that from the URL.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttprequestclassphysicalpathtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


"Vik" <viktorum@==yahoo.com==> wrote in message
news:#Yl86SG#CHA....@TK2MSFTNGP11.phx.gbl...

0 new messages