Hi,
I am trying to send a message to user when the code enters a Catch block. the block is within a C# class.
try { Context.SubmitChanges(); } catch (Exception e) { ErrNum = -1; HttpContext.Current.Response.Write("Err: something went wrong"); }
I do not get compilation error but when this code is getting executed, My web page tries to load something and stays forever in that state.
I am currently using the Response.Write, within the event handlers ad it works perfectly.
any help will be appreciated.
Kia