logo       

Getting a control's filename and location: msg#00074

windows.devel.dotnet.web

Subject: Getting a control's filename and location

I'm trying to figure out how to get a user control's filename from
within the user control itself. The best I could do was:

this.GetType().Assembly.Location

The above only give the location of the currently loaded dll file that's
in a test directory. I want the original path/name like mycontrol.ascx

Any ideas?

Brian

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise