How to display the version of my website on all pages?

Asked

Viewed 63 times

2

I want to display in the footer of all my pages the version on which my site is running.

For example: Version 1.0

After I do an update on my website and publish it again would be something like Version 2.0

What is the best or most suitable way to do this?

1 answer

4


I recommend you put on web.config a property with the site version number.

And display it on MASTER.PAGE. On the web.config

<appSettings>
     <add key="versaoSITE" value="2.0"/>
</appSettings>

In the footer of the master page.

<label><%= ConfigurationManager.AppSettings["versaoSITE"].ToString();%></label>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.