Change div background color in asp.net
How to change userControl div background color on parent cs page.
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
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 12, 2015, 2:09 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 12, 2015, 2:11 AM EDT
<%@ Register Src="~/studentTest.ascx" TagPrefix="uc" TagName="StudentTest" %>
<uc:Student ID="ucStudent" runat="server" />
ucStudent.Style.Add("background-color", "Gray");
Joginder BangerRank #360 · 7K reputationPosted Aug 12, 2015, 3:03 AM EDT
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 12, 2015, 3:11 AM EDT