HorizontalAlign
Platform: VS 2003
Page Type: Code Behind
Lang: C#
Problem:
I can set table properties that are integers, however when I try to set a string property I get an error: Cannot implicity convert type 'string' to 'System.WEb.UI.WebControls.HorizontalAlign'
Example:
Page_Load(...)
{
...
tblTest.BorderWidth = 1;
tblTest.HorizontalAlign = "Center";
...
}
Additional Info: Stupidly, I tried without quotes and also tried using integers (where 0=left; 1=center; 2=right) with equally stupid results.
Brian Sausser, MCP
(858) 229-6129
__________________
Brian Sausser, MCP
(858) 229-6129
|