View Single Post
  #1 (permalink)  
Old June 16th, 2009, 06:42 AM
lionking lionking is offline
Authorized User
 
Join Date: Dec 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Question alert from class file

I am using asp.net 3.5
i have a data access C# class file that is throwing a user generated exception as below
throw new Exception("Output message from procedure call")

how do i show the browser alert box with the message. Right now the above code just throws a generic alert asking to contact the system administrator

I was researching this and came across client side script injection using Client-side script blocks, but i am unable to add this in my class file as i cannot reference system.web.UI in my class file.

any pointers toward the right direction would be helpful