Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
GeneralC# and smart Documents ( word 2003 ) Pin
anta17-Dec-03 21:58
anta17-Dec-03 21:58 
GeneralOptions dialog Pin
SaeidehV17-Dec-03 21:13
SaeidehV17-Dec-03 21:13 
GeneralRe: Options dialog Pin
Member 26118818-Dec-03 0:14
Member 26118818-Dec-03 0:14 
GeneralRe: Options dialog Pin
Heath Stewart18-Dec-03 3:12
protectorHeath Stewart18-Dec-03 3:12 
GeneralCSharp Custom Exception Pin
Member 33502217-Dec-03 19:59
Member 33502217-Dec-03 19:59 
GeneralRe: CSharp Custom Exception Pin
Mazdak17-Dec-03 21:38
Mazdak17-Dec-03 21:38 
GeneralRe: CSharp Custom Exception Pin
Member 33502217-Dec-03 21:42
Member 33502217-Dec-03 21:42 
GeneralRe: CSharp Custom Exception Pin
Heath Stewart18-Dec-03 3:11
protectorHeath Stewart18-Dec-03 3:11 
Handle the HttpApplication.Error event in your Global.asax file, or it's related code-behind file. Since auto-event-writeup is enabled by default, you can just declare your handler as
private void Application_Error(object sender, EventArgs e)
{
  HttpServerUtility server = HttpContext.Current.Server
  Exception e = server.GetLastError();
  // ...
}
For more information, see the documentation for the event I mentioned, and the HttpServerUtility.GetLastError method.

You could also create your own IHttpModule for handling, errors, too, if you require library portability without moving the whole web application.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralCustom Button Pin
Mazdak17-Dec-03 18:58
Mazdak17-Dec-03 18:58 
GeneralRe: Custom Button Pin
thomasa18-Dec-03 1:03
thomasa18-Dec-03 1:03 
GeneralStand alone project Pin
Lord Tor17-Dec-03 18:22
Lord Tor17-Dec-03 18:22 
GeneralRe: Stand alone project Pin
Morten Kristensen17-Dec-03 20:01
Morten Kristensen17-Dec-03 20:01 
GeneralRe: Stand alone project Pin
Alex Korchemniy17-Dec-03 20:11
Alex Korchemniy17-Dec-03 20:11 
GeneralRe: Stand alone project Pin
Morten Kristensen17-Dec-03 23:11
Morten Kristensen17-Dec-03 23:11 
GeneralRe: Stand alone project Pin
J. Dunlap17-Dec-03 20:24
J. Dunlap17-Dec-03 20:24 
GeneralRe: Stand alone project Pin
Lord Tor18-Dec-03 13:46
Lord Tor18-Dec-03 13:46 
Generalworking with multiple web forms Pin
TheRookie17-Dec-03 16:40
TheRookie17-Dec-03 16:40 
GeneralRe: working with multiple web forms Pin
Not Active17-Dec-03 16:53
mentorNot Active17-Dec-03 16:53 
GeneralRe: working with multiple web forms Pin
frank2118-Dec-03 4:30
frank2118-Dec-03 4:30 
GeneralMSDN like documentation Pin
Meysam Mahfouzi17-Dec-03 16:22
Meysam Mahfouzi17-Dec-03 16:22 
GeneralRe: MSDN like documentation Pin
Kentamanos17-Dec-03 16:32
Kentamanos17-Dec-03 16:32 
GeneralSTGMEDIUM translation Pin
17-Dec-03 13:45
suss17-Dec-03 13:45 
GeneralRe: STGMEDIUM translation Pin
Heath Stewart18-Dec-03 3:05
protectorHeath Stewart18-Dec-03 3:05 
GeneralRe: STGMEDIUM translation Pin
Tristan Rhodes18-Dec-03 6:53
Tristan Rhodes18-Dec-03 6:53 
GeneralRe: STGMEDIUM translation Pin
Heath Stewart18-Dec-03 7:29
protectorHeath Stewart18-Dec-03 7:29 

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.