change label color through session

fixed color
syntax:-
control.BackColor = System.Drawing.color.(color name)
e.g.
label1.BackColor = System.Drawing.color.blue;

User Choice:
Label1.BackColor = System.Drawing.color.FromName((string)session["color"]);

LIBRARY:
using system.Drawing.color.library;

Popular Posts