Click here to Skip to main content
15,746,652 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a string in my page and i want to localized that .......all code is done but the problem occurs that string is like that "User " +label.text+ "added succesfully in the database ."

Can i added that string as one string and if yes then how ......

1 solution

Yes, you must use string formats. i.e "User {0} added successfully in the database". You would store this string in a resource file and subsequently use this in your code.

string.format(ResourceFile.ResourceName, username);
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900