Modify page title on every page in application

M

MattB

I'd like to preface every page in my application's title with some text.
I have what I think is a good idea on how to do this, but I'm not sure
how to refer to the current page from global.asax.vb.

My plan is to put some code in the Application_BeginRequest event in
global.asax.vb or in a user control that will be present on every page
that will add this text to the page title if it's not a postback.

My main problem now is finding out how (and if) I can access the title
of the page programatically.

Can someone point me to the right direction? I saw some reference to
javascript code to do this but if possible I'd really like to do in the
vb codebehind. Thanks!

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top