Answer: With the help of
String.Format method,we can format any string in Dot Net like below:-
string str = string.Format("My Name is:{0} and Age is:{1}", "Rajesh", "29");
Response.Write(str);
Output:My Name is:Rajesh and Age is:29
Asked In: Many Interviews |
Alert Moderator