Building HTML using code

justakid

New Member
I have a staff record here and I need to let if go through a function and the function spits out the staff record nicely formatted with HTML tags.example\[code\]staff id = 23422first name = Herbertsurname = Dominosdepartment = Purchasing\[/code\]function output would be something like\[code\]<label>staff id</label><div class="some class">23422</div><label>First namelabel><div class="some class">Herbert</div><label>Surname</label><div class="some class">Dominos</div><label>Department</label><div class="some class">Purchasing</div>\[/code\]Seems just concatenating them via string or stringbuilder is not the right way to do it.Any suggestions? thanks :)
 
Back
Top