Hi
I want to set background color of colum. Below is the code
JavaScript
if(ddlBook.SelectedItem.Text == Res.BookTitle)
htmlTable.Append("" + colum.DeliveryNo + "");Thanks
Hi
I want to set background color of colum. Below is the code
if(ddlBook.SelectedItem.Text == Res.BookTitle)
htmlTable.Append("" + colum.DeliveryNo + "");Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak RawatRank #646 · 3.7K reputationPosted Jun 20, 2023, 5:51 AM EDT
HI you can write directly inline or you have a class you can define in the class:a
if(ddlBook.SelectedItem.Text == Res.BookTitle) htmlTable.Append("" + colum.DeliveryNo + "");another way is:
.danger{background:#f00;}
if(ddlBook.SelectedItem.Text == Res.BookTitle) htmlTable.Append("" + colum.DeliveryNo + "");Deepak RawatRank #646 · 3.7K reputationPosted Jun 20, 2023, 5:52 AM EDT
you can use both the way inline and external i have shared both. Thanks
Amit MohantyRank #112 · 20K reputationPosted Jun 20, 2023, 6:47 AM EDT