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
>
>
>
>