473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 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 806
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
0
by: Paul Telco | last post by:
Dad, Nope, never heard of 'Tartiflette'. I suppose it shouldn't be a surprise that there is a French version of Raclette. The website is strange isn't it? On the one hand it is a demonstration...
1
by: Osiris Sawiris | last post by:
Hi to all, I have an application running on 20 workstations with the backend database located on one of these stations. The stations are running Windows 98, ME, and XP. and the application is...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
0
by: stormey | last post by:
Hi. Our company just bought another company and we are incorporating all there data. I need to write a program in vb 6.0 or vb.net that will open all there pdf's and put a stamp on them. Each...
3
by: Mick | last post by:
Hi Is there a way of independently date and time stamping a record when it is created without relying on the computers own date and time setting? The PC will be standalone and only have...
1
by: support | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.