Hi
In repeater DataItemBound i have below code . I want to add " to ltrlStudents.text.
It should apply to only colum1.name + colum1.mobileno.
C#
htmlTable.Append("" + colum1.Name + " - " + colum1.MobileNo + "");
ltrlStudents.Text = ltrlStudents.Text + colum1.Name + " - " + colum1.MobileNo;Thanks

Mohamed Azarudeen ZRank #297 · 8.5K reputationPosted May 28, 2023, 7:35 AM EDT
Hi Ramco
To add the
toltrlStudents.Textforcolum1.Nameandcolum1.MobileNoin theRepeater.ItemDataBoundevent, you can modify your code as follows:string badgeSpan = ""; string closingSpan = ""; string studentInfo = $"{badgeSpan}{colum1.Name} - {colum1.MobileNo}{closingSpan}"; htmlTable.Append(studentInfo); ltrlStudents.Text += studentInfo;