locked
changing font color in a table RRS feed

  • Question

  • hi

    I created a solution in sp2010 using vs2010. that is basically student result table. After Deployed the solution i saw the font color in that table was black i want to change the color of the table . Can i use spdesigner or anyother method . How to change the color

    Can anybody help me please.

    Thank you

    With Regards

     

     

    Monday, October 31, 2011 4:27 AM

Answers

  • Adding to Milan Chauhan solution. You simply need to add the CSS to the HTML piece of code.

    protected override void CreateChildControl()

          this.controls.add(new literalcontrol("<table style='color:red'></table>"));

     }

    The Color:Red will do magic for you.

    thanks


    ASP.NET and SharePoint developer
    Company: http://www.rampgroup.com/
    Blog: http://praveenbattula.blogspot.com
    • Proposed as answer by Sjoukje ZaalMVP Tuesday, November 1, 2011 7:52 AM
    • Marked as answer by Zizhuoye Chen Sunday, November 6, 2011 10:33 AM
    Tuesday, November 1, 2011 2:47 AM

All replies