Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of TEXTMERGE
Message
De
17/01/2013 06:12:09
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01563002
Message ID:
01563086
Vues:
41
>>>>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");
>>>
>>
>>Thanks Boris!
>>
>>If you were to store the text template in SQL Server, what field type would you use?
>
>nvarchar :-)

thanks
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform