Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET Assembly-Version

Reply
Thread Tools

ASP.NET Assembly-Version

 
 
Morten Nielsen
Guest
Posts: n/a
 
      10-22-2003
How can I request the Assembly Version that I set in "AssemblyInfo.cs" ?

In a Windows application, I can get the current version using
Application.ProductVersion, but this naturally won't work with ASP.NET.


--
/Morten Nielsen
Email: http://www.iter.dk/contact.aspx



 
Reply With Quote
 
 
 
 
Victor Garcia Aprea [MVP]
Guest
Posts: n/a
 
      10-23-2003
Hi Morten,

Take a look at the Assembly.GetName() method

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"Morten Nielsen" <> wrote in message
news:bn72el$ids$...
> How can I request the Assembly Version that I set in "AssemblyInfo.cs" ?
>
> In a Windows application, I can get the current version using
> Application.ProductVersion, but this naturally won't work with ASP.NET.
>
>
> --
> /Morten Nielsen
> Email: http://www.iter.dk/contact.aspx
>
>
>



 
Reply With Quote
 
 
 
 
Oliver
Guest
Posts: n/a
 
      10-23-2003
This is what I use (VB.NET)

lblVersion.Text =
System.Reflection.Assembly.GetExecutingAssembly(). GetName().Version.ToString


"Morten Nielsen" <> wrote in message
news:bn72el$ids$...
How can I request the Assembly Version that I set in "AssemblyInfo.cs" ?

In a Windows application, I can get the current version using
Application.ProductVersion, but this naturally won't work with ASP.NET.


--
/Morten Nielsen
Email: http://www.iter.dk/contact.aspx




 
Reply With Quote
 
Victor Garcia Aprea [MVP]
Guest
Posts: n/a
 
      10-23-2003
Just a small note: be sure you're coding that line in a codebehind class, it
won't work if you code it inline into an .aspx as the executing assembly
will be the temporal one generated by asp.net,

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"Oliver" <> wrote in message
news:uc$%...
> This is what I use (VB.NET)
>
> lblVersion.Text =
>

System.Reflection.Assembly.GetExecutingAssembly(). GetName().Version.ToString
>
>
> "Morten Nielsen" <> wrote in message
> news:bn72el$ids$...
> How can I request the Assembly Version that I set in "AssemblyInfo.cs" ?
>
> In a Windows application, I can get the current version using
> Application.ProductVersion, but this naturally won't work with ASP.NET.
>
>
> --
> /Morten Nielsen
> Email: http://www.iter.dk/contact.aspx
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



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