Hi
I have below code & i want green background & white foreground
StudentName += objResult.Name + "" + "," + " ";
Thanks
Hi
I have below code & i want green background & white foreground
StudentName += objResult.Name + "" + "," + " ";
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Mar 30, 2023, 6:50 AM
Try this one,
Add Css class in you stylesheet
add classname in your cshtml
Ramco RamcoPosted Mar 30, 2023, 7:43 AM
Hi Amit
Actually in 1 td there r multiple student names.
I want color for each .
Thanks
Ramco RamcoPosted Mar 30, 2023, 7:39 AM
Hi Jignesh
Actual code is below . I want each name background color = Green & Foreground white. In single td there r multiple students.
I want color for each student in single td only.
Below is the aspx
Thanks
Amit MohantyPosted Mar 30, 2023, 7:01 AM
You can add css to your stylesheet as per Jignesh or you can use like this:
Ramco RamcoPosted Mar 30, 2023, 6:41 AM
Hi
in code behind
htmlTable.Append("
Thanks
Jignesh KumarPosted Mar 30, 2023, 6:01 AM
Hello Ramco,
where you are displaying this value in UI ?