Groups | Blog | Home
all groups > asp.net > september 2005 >

asp.net : Application Info


Fernando
9/5/2005 10:28:52 PM
Hi,

is it possible to know (by code, of course) the names of each page (type
ASPX) of my solution project ?

is there a collection for this ?

I need to implement a sistem of privileges to access each page, and controls
inside

I already know how to get IDs from all controls in a given page

thank you

Karl Seguin
9/6/2005 8:17:25 AM
You have 2 solutions, since the page is just a class, you get get it's type
via GetType or typeof or you can use Request.Url.AbsolutePath to get the
actual path/file

Of course,if you are creating an authorization mechanism, why not look into
FormsAuthentication?
http://www.4guysfromrolla.com/webtech/110701-1.shtml

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)


[quoted text, click to view]

AddThis Social Bookmark Button