Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2005, 08:24 AM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to cbrknight1
Default How to know aspx or .vb name

How do I dynamicly know from code behine. What is the file name or project name . Does anybody know display the phisical page or phisical project name in asp.net?

--Alex Z.
 
Old April 25th, 2005, 08:47 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You can use Request.PhysicalPath to retrieve the path of the file.It will include the filename also.Use some logic to extract the filename.

 
Old April 26th, 2005, 02:24 PM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to cbrknight1
Default

Hi, Thanks for reply.
Request.PhysicalPath works. But I need to use the same thing for the Class that is not aspx page. But just a someclass.vb file how could I find someclass.vb name in the class using coding.



--Alex Z.





Similar Threads
Thread Thread Starter Forum Replies Last Post
why cannot remove aspx.vb files in root? badboy1 ASP.NET 3.5 Basics 5 June 25th, 2008 08:23 AM
.aspx.vb file doesnt run arabuafef ASP.NET 2.0 Professional 7 March 18th, 2008 12:20 PM
Include Namespace in .aspx.vb?? mikedeepak Visual Studio 2005 6 June 1st, 2007 04:31 AM
Authentication in ASPX(VB .NET) CFerthorney ASP.NET 1.0 and 1.1 Professional 5 September 9th, 2003 10:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.