update this value in <span>2013</span>   c#

Posted on 2014-08-11
Last Modified: 2014-08-11
The following tag contains year value (in 12 places):

<td width="14"><span>2013</span></td>

Question: What is the code to update year value using Session["YYYY"] in all 12 places?

Thank you.
Question by:Mike Eghtebas
    LVL 52

    Accepted Solution

    You could just replace the literal 2013 with:
    <td width="14"><span><%= Session["YYYY"] %></span></td>

    Open in new window

    LVL 74

    Assisted Solution

    by:käµfm³d 👽
    What kind of project is this? If it's Web Forms, then Carl's suggestion is what you want. Otherwise, if it's one of the latest editions of MVC, then you would use:

    <td width="14"><span>@Session["YYYY"]</span></td>

    Open in new window

    LVL 33

    Author Closing Comment

    by:Mike Eghtebas
    It is a Web Form.


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now