T
tshad
I want to be able to change the color of the text of a button after it is
pressed.
The first part of the event is:
sub submitQuestion_click(Sender as Object, e as EventArgs)
trace.warn("Sender text = " & Sender.text)
trace.warn("Sender color = " & Sender.ForeColor.ToString())
Sender.ForeColor = System.Drawing.Color.Red
I am doing the trace.warns to make sure I have the correct button. And to
make sure the color was changed ( and is being preserved as the page is
posted back) - which it is.
The trace shows:
Sender text = Select 0.004294 0.000098
Sender color = Color [Red] 0.004396 0.000102
(it shows Color [Empty] the first time through as it should).
But the buttons text does not show as read. From viewsource it shows as:
<input type="submit" name="DataList1:_ctl3:submitQuestion" value="Select"
id="DataList1__ctl3_submitQuestion" />
As you can see, there is no red being rendered?
How do I do this?
Thanks,
Tom
pressed.
The first part of the event is:
sub submitQuestion_click(Sender as Object, e as EventArgs)
trace.warn("Sender text = " & Sender.text)
trace.warn("Sender color = " & Sender.ForeColor.ToString())
Sender.ForeColor = System.Drawing.Color.Red
I am doing the trace.warns to make sure I have the correct button. And to
make sure the color was changed ( and is being preserved as the page is
posted back) - which it is.
The trace shows:
Sender text = Select 0.004294 0.000098
Sender color = Color [Red] 0.004396 0.000102
(it shows Color [Empty] the first time through as it should).
But the buttons text does not show as read. From viewsource it shows as:
<input type="submit" name="DataList1:_ctl3:submitQuestion" value="Select"
id="DataList1__ctl3_submitQuestion" />
As you can see, there is no red being rendered?
How do I do this?
Thanks,
Tom