Click here to Skip to main content
15,901,426 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: sending a mail with attachments Pin
benams4-Aug-10 6:55
benams4-Aug-10 6:55 
GeneralRe: sending a mail with attachments Pin
raju melveetilpurayil4-Aug-10 8:23
professionalraju melveetilpurayil4-Aug-10 8:23 
GeneralRe: sending a mail with attachments Pin
benams4-Aug-10 12:56
benams4-Aug-10 12:56 
GeneralRe: sending a mail with attachments Pin
Mugdha_Aditya4-Aug-10 19:22
Mugdha_Aditya4-Aug-10 19:22 
AnswerRe: sending a mail with attachments Pin
Prosanta Kundu online4-Aug-10 20:17
Prosanta Kundu online4-Aug-10 20:17 
QuestionAjax timer error [modified] Pin
Amit Patel19853-Aug-10 20:45
Amit Patel19853-Aug-10 20:45 
AnswerRe: Ajax timer error Pin
raju melveetilpurayil3-Aug-10 21:32
professionalraju melveetilpurayil3-Aug-10 21:32 
Questionhow to Log DAL exception and showing alert to user when exception occurs? Pin
Paramhans Dubey3-Aug-10 18:58
professionalParamhans Dubey3-Aug-10 18:58 
Hi All,

I am working on a 3-tier asp.net application. Currently I'm stuck up in a situation where I need to handle a specific type of exception (User Defined) in DAL and Show alert to the user if that exception occurs in DAL.



I tried following things:

1) I raised that exception from the DAL and catch it in BLL and throw a new BLL exception to for that DAL exception and finally catch it in the UI layer to show the alert to the user. I've successfully implement this in my project. But there are some issues in this approach. First of all I feel this is not right way to do this as it may lead to performance related issues. Secondly, the application contains more than 500 pages and classes. so I need to attach additional catch block in every method to catch the BLL exception. which is the last option i'd like to take.

2) in second approach I logged the the DAL exception into a text file. but problem in this approach is that how could the UI layer know that exception has occurred and show the alert to the user. Is there any event in asp.net where i could handle all this activities?



my question is what is the best approach to handle this type of situation? Will Exception handling block help me in this?

I've tried reading many articles on this but i couldn't get an answer for my question? I might not be using right keywords for my search.



Thanks in advance,

Regards,

Paramhans Dubey
QuestionHow to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda3-Aug-10 9:00
raghvendrapanda3-Aug-10 9:00 
AnswerRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
Yusuf3-Aug-10 17:11
Yusuf3-Aug-10 17:11 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda3-Aug-10 22:43
raghvendrapanda3-Aug-10 22:43 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
Yusuf4-Aug-10 7:13
Yusuf4-Aug-10 7:13 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda4-Aug-10 9:00
raghvendrapanda4-Aug-10 9:00 
Questionpage break in pdf file [modified] Pin
Dhyanga3-Aug-10 8:33
Dhyanga3-Aug-10 8:33 
AnswerRe: page break in pdf file Pin
raju melveetilpurayil3-Aug-10 9:36
professionalraju melveetilpurayil3-Aug-10 9:36 
GeneralRe: page break in pdf file Pin
Dhyanga3-Aug-10 10:02
Dhyanga3-Aug-10 10:02 
GeneralRe: page break in pdf file Pin
Yusuf3-Aug-10 17:15
Yusuf3-Aug-10 17:15 
GeneralRe: page break in pdf file Pin
Dhyanga4-Aug-10 3:39
Dhyanga4-Aug-10 3:39 
GeneralRe: page break in pdf file Pin
Yusuf4-Aug-10 7:10
Yusuf4-Aug-10 7:10 
QuestionRegarding MVC View Pin
Tiger4563-Aug-10 7:15
Tiger4563-Aug-10 7:15 
AnswerRe: Regarding MVC View Pin
Not Active3-Aug-10 7:54
mentorNot Active3-Aug-10 7:54 
GeneralRe: Regarding MVC View Pin
Tiger4563-Aug-10 8:37
Tiger4563-Aug-10 8:37 
GeneralRe: Regarding MVC View Pin
Not Active3-Aug-10 17:34
mentorNot Active3-Aug-10 17:34 
QuestionTwo Calendar Controls Pin
Mansi Arora3-Aug-10 1:36
Mansi Arora3-Aug-10 1:36 
AnswerRe: Two Calendar Controls Pin
nagendrathecoder3-Aug-10 2:14
nagendrathecoder3-Aug-10 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.