6
Answers

How to set whole string using html control

Hello Everyone
                I have to set string using html control;
suppose I have string like...
string x="Leave Request from :" + obj.name+ " Leave Reason :" + obj.reason + " Leave Type :" + obj.type+ " + " From ip :" + obj.ip.tosting();
this is my string
this string i was send into mail,now I want to result like this.
  
 Leave Request from : name
Leave Reason : reason name
Leave Type :  sick leave
From ip :  111.111.111.111
 
I have use this bt not getting answer following...
 string x="<html><body>Leave Request from :" + obj.name+ " </br> Leave Reason :" + obj.reason + "</br> Leave Type :" + obj.type+ " + " </br> From ip :</body> </html>" + obj.ip.tosting();
Please give me this solution 
Answers (6)