471,310 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

stamping a page

Is there any way to stamp a page with a version nu, perferably from
Subversion or a date stamp by MS Dev Studio?
I want to know what version of a web page I have posted to my server, so I
can figure out if a problem occurred with a particular version?
If I were programming in C++, I could use the #pragma directive, but I don't
know how to do this programmitically in VB or C#
Aug 29 '08 #1
1 1141
The version is stored in AssemblyInfo.cs like this:

[assembly: AssemblyVersion("2.1.1.1")]

You can view it at runtime like this:

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

Note also there's an article here on auto-incrementing the build number:

http://www.codeproject.com/KB/dotnet...t_Version.aspx

Is that what you meant?

Ken
Microsoft MVP [ASP.NET]
Author: ASP.NET 3.5 For Dummies
"support" <su***********@people-places-work.infowrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
Is there any way to stamp a page with a version nu, perferably from
Subversion or a date stamp by MS Dev Studio?
I want to know what version of a web page I have posted to my server, so I
can figure out if a problem occurred with a particular version?
If I were programming in C++, I could use the #pragma directive, but I
don't know how to do this programmitically in VB or C#

Aug 29 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nathan | last post: by
reply views Thread by Paul Telco | last post: by
2 posts views Thread by James | last post: by
4 posts views Thread by Kevin Phifer | last post: by
2 posts views Thread by John Lau | last post: by
reply views Thread by stormey | last post: by
1 post views Thread by support | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.