Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of TEXTMERGE
Message
 
To
16/01/2013 14:45:17
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01563002
Message ID:
01563003
Views:
72
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I need to let a user save some text which is to be used as an HTML message. I need to get the text and set some values in it specific to each customer. Is there a C# equivalent to VFP's TEXTMERGE?
>
>
>CustomerName = "Frank"
>TEXT TO myString TEXTMERGE
><h1>Notification</h1>
><p>Dear <<CustomerName>>,</p>
>ENDTEXT
>
>This would create this string in myString:
>
>
<h1>Notification</h1>
><p>Dear Frank,</p>
String.Format()?
String SomeString =@"Notification
Dear {0},";
String NewString = String.Format(SomeString,"Frank");
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform