Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

throw new exception in a control

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello all.

I have 2 controls on a page. One control is a simple control that displays messages to the user. For instance:

Try
If txtUserStatus.text <> &quot;Active&quot; then
throw new exception (&quot;User must be in Active Status&quot;)
End If
Catch ex as Exception
ctrlMsg.AppendText (ex.message)
End Try


Now, I have another control that I created which I want to throw an exception and have the message display in my first control.

Any ideas how I can do this?

Thank you,

SteveS
smsinger3@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top