How can I get the project's name at runtime and the webform's name to ???
Printable View
How can I get the project's name at runtime and the webform's name to ???
Something like this should works fine .Quote:
Originally posted by BlahDoS
How can I get the project's name at runtime and the webform's name to ???
another way I think is through assemblyName.VB Code:
MsgBox(Application.ProductName)
This should probably be in the ASP.NET forum.
Oh ..Sorry . I thought that Windows Application . :DQuote:
Originally posted by Edneeis
This should probably be in the ASP.NET forum.
Yeah off course, it will be in ASP.NET (or winforms, maybe its the same way)
Just wondering if that worked for you ?:DQuote:
Originally posted by BlahDoS
Yeah off course, it will be in ASP.NET (or winforms, maybe its the same way)
Doesn't work cause the "Application" is the server variables that contains information about the webapp. Its like the "Session" variables ...
Any idea how(refering to the first quote) :S ....
I use Application.... - but again, it is for win apps.
show me your app (.NET) code for the app name. Maybe it will inspire me in finding something on the web ...
I don't know how to get the project name, but the way to get the page name is easy:
C#:
string pageName = this.Page.ToString();
VB.Net??(not 100% sure on this conversion):
Dim pageName As String = Me.Page.ToString()
Thanks for the page, already find it though.
Still the project name ... :S
This seems to work:
VB Code:
dim prjName as string=Reflection.Assembly.GetExecutingAssembly.GetName.Name
Thank you dude !!! Works great :D