S
Steven
Hello,
First, let me state that I am trying to learn asp.net, so I am a beginner.
Now on to the issue. I have a webform with a single Textbox and a
FileSystemWatcher monitoring a directory for OnCreate events. I am trying
to change the text in response to an OnCreate event. I would like to change
the Forecolor to red, from black. Apparently, this is not as easy to do as
in vb.net. I have tried the direct approach in the OnCreate event;
"Textbox1.Forecolor = Color.Red". This produces no results. I have tried
applying a style to the Textbox, no results. Server.Tranfer to another page
produces a "Object not set to an instance" error. Server.Transfer to the
same page does nothing. What do I need to do to accomplish this simple
task?
Thanks,
Steven
First, let me state that I am trying to learn asp.net, so I am a beginner.
Now on to the issue. I have a webform with a single Textbox and a
FileSystemWatcher monitoring a directory for OnCreate events. I am trying
to change the text in response to an OnCreate event. I would like to change
the Forecolor to red, from black. Apparently, this is not as easy to do as
in vb.net. I have tried the direct approach in the OnCreate event;
"Textbox1.Forecolor = Color.Red". This produces no results. I have tried
applying a style to the Textbox, no results. Server.Tranfer to another page
produces a "Object not set to an instance" error. Server.Transfer to the
same page does nothing. What do I need to do to accomplish this simple
task?
Thanks,
Steven