Click here to Skip to main content
15,909,498 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a string in my asp.net 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 ......
Posted

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.
Like:

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

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