Description:
In this example we explain that how to dynamically change
the copyright year in any website or any blog in asp.net. In every website or
web application we define the copyright in footer section of the master page,
generally we placed one of copyright in which year is mentioned like ©2015 All rights reserved. But it
is fixed or static we cannot change after year is gone so when 2016 year is
started then footer with copyright 2015 remain same.
So to overcome this problem
we use the single line of code that will automatically change the copyright
when year is changed.
<img
src="/images/<%= DateTime.Now.Year %>.png"
alt="Copyright" />
Nice one. Keep continues.
ReplyDelete