Professional Web Applications Themes

Display Build Version of Application at runtime - ASP.NET General

How can I display the current build version of my webapplication at runtime? i.e. the version I set in my web deployment project. regards and thanks karsten...

  1. #1

    Default Display Build Version of Application at runtime

    How can I display the current build version of my webapplication at runtime?
    i.e. the version I set in my web deployment project.

    regards and thanks
    karsten


    Karsten Grombach Guest

  2. #2

    Default Re: Display Build Version of Application at runtime

    Hi,

    this should work:

    string MyVersion = AppVersion.Major.ToString() + "." +
    AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();

    Best regards,

    Marc Höppner
    NeoGeo

    "Karsten Grombach" <karsten.grombachNOspamtria.de> wrote in message
    news:%23%23nBJRLXDHA.3924tk2msftngp13.phx.gbl...
    > How can I display the current build version of my webapplication at
    runtime?
    > i.e. the version I set in my web deployment project.
    >
    > regards and thanks
    > karsten
    >
    >

    Marc Hoeppner Guest

  3. #3

    Default Re: Display Build Version of Application at runtime

    hi marc,
    in which namespace does AppVersion belong to.
    I can't find it in the doentation
    regards
    karsten

    "Marc Hoeppner" <marchoeppnerhotmail.com> schrieb im Newsbeitrag
    news:OHWctfLXDHA.3444tk2msftngp13.phx.gbl...
    > Hi,
    >
    > this should work:
    >
    > string MyVersion = AppVersion.Major.ToString() + "." +
    > AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
    >
    > Best regards,
    >
    > Marc Höppner
    > NeoGeo
    >
    > "Karsten Grombach" <karsten.grombachNOspamtria.de> wrote in message
    > news:%23%23nBJRLXDHA.3924tk2msftngp13.phx.gbl...
    > > How can I display the current build version of my webapplication at
    > runtime?
    > > i.e. the version I set in my web deployment project.
    > >
    > > regards and thanks
    > > karsten
    > >
    > >
    >
    >

    Karsten Grombach Guest

  4. #4

    Default Re: Display Build Version of Application at runtime

    thanks :)
    "Marc Hoeppner" <marchoeppnerhotmail.com> schrieb im Newsbeitrag
    news:Ovi8fYNXDHA.1940TK2MSFTNGP10.phx.gbl...
    > Oops, sorry. Apparently I posted only 1 of the 3 lines I wanted to post.
    > here is the rest:
    >
    > System.Reflection.Assembly MyAssembly =
    > System.Reflection.Assembly.GetExecutingAssembly();
    >
    > System.Version AppVersion = MyAssembly.GetName().Version;
    >
    > string MyVersion = AppVersion.Major.ToString() + "." +
    > AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
    >
    > "Karsten Grombach" <karsten.grombachNOspamtria.de> wrote in message
    > news:eXplDeMXDHA.2352TK2MSFTNGP12.phx.gbl...
    > > hi marc,
    > > in which namespace does AppVersion belong to.
    > > I can't find it in the doentation
    > > regards
    > > karsten
    > >
    > > "Marc Hoeppner" <marchoeppnerhotmail.com> schrieb im Newsbeitrag
    > > news:OHWctfLXDHA.3444tk2msftngp13.phx.gbl...
    > > > Hi,
    > > >
    > > > this should work:
    > > >
    > > > string MyVersion = AppVersion.Major.ToString() + "." +
    > > > AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
    > > >
    > > > Best regards,
    > > >
    > > > Marc Höppner
    > > > NeoGeo
    > > >
    > > > "Karsten Grombach" <karsten.grombachNOspamtria.de> wrote in message
    > > > news:%23%23nBJRLXDHA.3924tk2msftngp13.phx.gbl...
    > > > > How can I display the current build version of my webapplication at
    > > > runtime?
    > > > > i.e. the version I set in my web deployment project.
    > > > >
    > > > > regards and thanks
    > > > > karsten
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Karsten Grombach Guest

Similar Threads

  1. Create display object at runtime
    By TristanColgate in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: May 5th, 10:19 AM
  2. Best Practice - Modules to build a web application
    By Joe Blower in forum PERL Modules
    Replies: 2
    Last Post: March 18th, 07:53 PM
  3. ASP.NET 2.0 - How to build a Monitoring Application
    By Auto in forum ASP.NET Building Controls
    Replies: 2
    Last Post: April 18th, 06:51 AM
  4. How to get the actual width of the application or othercontrols at runtime?
    By Jasper Lau in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: January 16th, 09:15 AM
  5. Replies: 1
    Last Post: September 6th, 12:37 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139