Change background color of Button

gourisankar padihary asked on March 12, 2015 13:19

HI, I want to change the background of Link/Button webpart through code behind. For this I have added a new property for Link/Button web part, through which User will select any color. So I am having a hex color code like (#AE) which I am passing to Link.ascx.cs file. I am able to get the value for this new property which User select in the SetUpControl() method of Link.ascx, Now Just wondering How can I set this color code to the button elemenet(btnElem), I could not find any direct property of this subject to set the background color.

Please advice.

Recent Answers

Brenden Kehren answered on March 12, 2015 13:27

You might check this post out.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.