Results 1 to 13 of 13

Thread: Project Name

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89

    Project Name

    How can I get the project's name at runtime and the webform's name to ???
    BlahDoS . :P

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    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:
    1. MsgBox(Application.ProductName)
    another way I think is through assemblyName.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    This should probably be in the ASP.NET forum.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Edneeis
    This should probably be in the ASP.NET forum.
    Oh ..Sorry . I thought that Windows Application .

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89
    Yeah off course, it will be in ASP.NET (or winforms, maybe its the same way)
    BlahDoS . :P

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 ?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89
    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 ....
    BlahDoS . :P

  8. #8
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    I use Application.... - but again, it is for win apps.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89
    show me your app (.NET) code for the app name. Maybe it will inspire me in finding something on the web ...
    BlahDoS . :P

  10. #10
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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()

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89
    Thanks for the page, already find it though.

    Still the project name ... :S
    BlahDoS . :P

  12. #12
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    This seems to work:
    VB Code:
    1. dim prjName as string=Reflection.Assembly.GetExecutingAssembly.GetName.Name

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    89
    Thank you dude !!! Works great
    BlahDoS . :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width