6
Reply

How to set whole string using html control

Manish Solanki

Manish Solanki

Oct 23 2015 10:08 AM
434
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)