Get Page Class Name from the URL/Application

S

Snig

Hi

Is there any method to extract the Code-behind class name given the URL
of the request? Or from the Application object ?

When you do a Server.Transfer to another page, you can get the class
name by the Page.Context object. Is there something like this in the
Application object so that I can get the class name of the current
page?

Actually, I want to read some property (written in individual page
class) from the web.config file.

Please help.

Snig.
 
S

Snig

Thanks Marina.
But I want the class name not from inside the page itself, but in the
global.asax file, may be by the Page URL or from the application
object.

Sorry, in my original post, I've wrongly written
"Actually, I want to read some property (written in individual page
class) from the web.config file."
instead of
"Actually, I want to read some property (written in individual page
class) from the global.asax file."
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top