Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8637295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:26:36+00:00 2026-06-12T10:26:36+00:00

I developed an ASP.NET web site. When viewing the application in the browser the

  • 0

I developed an ASP.NET web site. When viewing the application in the browser the version number is shown in the footer of the application. But I want to communicate the version number with the customer even if the appliction is not running.
Is it good to use a post build event for it to write it into a text file? If so, how can I access the version number (there is no predefined variable for this) and how can I write it into a text file via the command-line?
Are there any other, maybe simpler ways of getting this done?

Thanks for you help.

Edit: What I forgot to say is that it should be included when publishing the project using the Publish dialog.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:26:37+00:00Added an answer on June 12, 2026 at 10:26 am

    You could use a build tool such as msbuild and nant to control the build number and update a application setting in the web.config.
    or you can use some reflection code to retrieve it

    Assembly web = Assembly.Load("App_Code");  
    AssemblyName webName = web.GetName(); 
    string myVersion = webName.Version.ToString(); 
    

    preferably store the string in cache

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We want to automate a web application which is developed in asp.net. For automating
I have a asp.net web site that was developed on the .Net Framework v2
Consider we have a working computer support incident management web site developed with ASP.NET
I developed an ASP.Net MVC v1 web application and it ran fine on our
I have two web applications and both are developed in ASP.NET. Now I want
I have developed a web application in ASP.NET 3.5 and C#. When I deploy
I ve developed an asp.net web application with YUI as the javascript library... My
I have a ASP.Net 3.5 web site I developed on my old XP sp3
last year i developed an ASP.NET Application implenting MVP Model. The site is not
Im just cross-browser testing my website. It is developed in Asp.net mvc 3. Throughout

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.