c# - Append string to another string after a specified character -
i have string a="<tr>i'm working in c#<tr/> abcdefghjiklmnopqr ii oo yy uu hh gg rr"
, , b="<td>finish</td></tr>"
. need string a
a="<tr>i'm working in c#<tr/> <td>finish</td></tr> abcdefghjiklmnopqr ii oo yy uu hh gg rr".
how append string in string above? asked same question earlier wrong. here have find first ">" charcter , append b in a.
please help.
you looking string.format
:
string = "i'm working in c#"; string b = "finish"; = string.format("<tr>{0}<tr/> <td>{1}</td></tr>",a,b);
see here how use first parameter: http://msdn.microsoft.com/en-us/library/txafckwd.aspx
Comments
Post a Comment