Click here to Skip to main content
14,735,406 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if a text box and some of list box which has name and email address then if i want to use %name% at my own wish position then how to use that

What I have tried:

like
dear %name%
hi,

thanks this is for your kind Mr %name%

regards
XYZ
Posted
Updated 4-Nov-20 5:21am

1 solution

Try:
string boilerplate = "Dear %name%,\nThis is to inform you that ...";
string personalised = bopilerplate.Replace("%name%", usernameWithTitle);
...
string boilerplate = "Dear Mr %name%,\nThis is to inform you that ...";
string personalised = bopilerplate.Replace("%name%", usernameWithoutTitle);
   
Comments
irfanansari 4-Nov-20 15:38pm
   
sir you are best thanks a lot always be happy

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