|
-
May 2nd, 2003, 11:17 AM
#1
Thread Starter
Lively Member
Project Name
How can I get the project's name at runtime and the webform's name to ???
-
May 2nd, 2003, 11:28 AM
#2
Sleep mode
Re: Project Name
Originally posted by BlahDoS
How can I get the project's name at runtime and the webform's name to ???
Something like this should works fine .
VB Code:
MsgBox(Application.ProductName)
another way I think is through assemblyName.
-
May 2nd, 2003, 11:32 AM
#3
This should probably be in the ASP.NET forum.
-
May 2nd, 2003, 11:36 AM
#4
Sleep mode
Originally posted by Edneeis
This should probably be in the ASP.NET forum.
Oh ..Sorry . I thought that Windows Application .
-
May 2nd, 2003, 12:01 PM
#5
Thread Starter
Lively Member
Yeah off course, it will be in ASP.NET (or winforms, maybe its the same way)
-
May 2nd, 2003, 12:02 PM
#6
Sleep mode
Originally posted by BlahDoS
Yeah off course, it will be in ASP.NET (or winforms, maybe its the same way)
Just wondering if that worked for you ?
-
May 5th, 2003, 08:36 AM
#7
Thread Starter
Lively Member
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 ....
-
May 5th, 2003, 09:23 AM
#8
Fanatic Member
I use Application.... - but again, it is for win apps.
-
May 5th, 2003, 09:49 AM
#9
Thread Starter
Lively Member
show me your app (.NET) code for the app name. Maybe it will inspire me in finding something on the web ...
-
May 5th, 2003, 10:05 AM
#10
PowerPoster
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()
-
May 5th, 2003, 01:06 PM
#11
Thread Starter
Lively Member
Thanks for the page, already find it though.
Still the project name ... :S
-
May 5th, 2003, 01:47 PM
#12
This seems to work:
VB Code:
dim prjName as string=Reflection.Assembly.GetExecutingAssembly.GetName.Name
-
May 6th, 2003, 10:36 AM
#13
Thread Starter
Lively Member
Thank you dude !!! Works great
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|