Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - stamping a page

Reply
 
Old 08-29-2008   #1 (permalink)
support


 
 

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#



My System SpecsSystem Spec
Old 08-29-2008   #2 (permalink)
Ken Cox [MVP]


 
 

Re: stamping a page

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" <supportNOSPAM@xxxxxx-places-work.info> wrote in message
news:%23zA%23$OfCJHA.4780@xxxxxx
Quote:

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

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
page numbering past page 82 .NET General
Front page change index page? Vista networking & sharing
page disappears when Mouse moved off page General Discussion
Blue Screen - Page fault in non page area Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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