/* ------------------------ My Meta Content Here SEO ------------------------ */

Pages

Main Menu




Friday, October 10, 2014

Using ASP.NET Resource File, How to put variable value inside value of resource file

How to put variable value inside value of resource file


You could put a formatted string in your resource file:
"You have bought {0} books."
Then use the formatted string with your value like this:
BoughtBooksAmountTextLabel.Text 
    = String.Format(yourResourceString, BoughtBooksAmountValueLabel)

No comments:

Post a Comment

Recent Posts

My Blog List