Click here to Skip to main content
16,006,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Popup Postback Pin
mnaveed9-Jun-06 4:11
mnaveed9-Jun-06 4:11 
AnswerRe: Popup Postback Pin
Chris Maunder10-Jun-06 2:31
cofounderChris Maunder10-Jun-06 2:31 
QuestionActive Directory Pin
kpsetty9-Jun-06 3:08
kpsetty9-Jun-06 3:08 
Questionproblem related to implementing master detail relationship in a datagrid in asp.net2.0 [modified] Pin
MissionSuccess9-Jun-06 2:03
MissionSuccess9-Jun-06 2:03 
QuestionProduct Ranking Pin
Abubakarsb9-Jun-06 1:31
Abubakarsb9-Jun-06 1:31 
AnswerRe: Product Ranking Pin
D.NetDeveloper9-Jun-06 5:07
D.NetDeveloper9-Jun-06 5:07 
GeneralRe: Product Ranking Pin
Abubakarsb9-Jun-06 20:56
Abubakarsb9-Jun-06 20:56 
QuestionQUERY: 'On Error Resume Next' scope rules Pin
dhruba.bandopadhyay9-Jun-06 1:28
dhruba.bandopadhyay9-Jun-06 1:28 
This has been puzzling me for very long time and no where has
talked about the scope of a 'On Error Resume Next' statement.

When we program ASP(.NET) pages then we usually like to let
ASP(.NET) stop at errors and report back to us. However there
are parts of our scripts that we know an error will be thrown
and we encapsulate that area inbetween:

On Error Resume Next
Err.Clear
'Try block
If Err.Number Then
'Catch block
End If
On Error GoTo 0

This is similar to the infamous try {} catch(e) {} blocks in
Java/C++, etc.

If we forget the last line 'On Error GoTo 0' then our ASP(.NET)
scripts runs over all errors thrown and we find it hard to
find bugs. So the big question is, does 'On Error Resume Next'
go out of scope when it's written inside a block
(eg. Function)?

Function Function1()
On Error Resume Next
'Our code
End Function

When the Function1 call returns, does the outside calling scope
automatically stays as it was (On Error GoTo 0)?
AnswerRe: QUERY: 'On Error Resume Next' scope rules Pin
J4amieC9-Jun-06 3:50
J4amieC9-Jun-06 3:50 
AnswerRe: QUERY: 'On Error Resume Next' scope rules Pin
Chris Maunder10-Jun-06 2:33
cofounderChris Maunder10-Jun-06 2:33 
QuestionCannot redirect after HTTP headers have been sent Pin
Suj_789-Jun-06 1:14
Suj_789-Jun-06 1:14 
AnswerRe: Cannot redirect after HTTP headers have been sent Pin
Pimenov9-Jun-06 1:19
Pimenov9-Jun-06 1:19 
GeneralRe: Cannot redirect after HTTP headers have been sent Pin
Suj_789-Jun-06 1:43
Suj_789-Jun-06 1:43 
AnswerRe: Cannot redirect after HTTP headers have been sent Pin
BoneSoft9-Jun-06 10:41
BoneSoft9-Jun-06 10:41 
AnswerRe: Cannot redirect after HTTP headers have been sent Pin
nicko10-Jun-06 3:04
nicko10-Jun-06 3:04 
QuestionPDF Creation Pin
AhsanS9-Jun-06 0:51
AhsanS9-Jun-06 0:51 
AnswerRe: PDF Creation Pin
Paddy Boyd9-Jun-06 1:02
Paddy Boyd9-Jun-06 1:02 
QuestionGridView Sorting and OnRowCommand Pin
dbebek9-Jun-06 0:10
dbebek9-Jun-06 0:10 
QuestionUsing maps in .net2.0 Pin
AhsanS8-Jun-06 23:52
AhsanS8-Jun-06 23:52 
AnswerRe: Using maps in .net2.0 Pin
minhpc_bk9-Jun-06 0:40
minhpc_bk9-Jun-06 0:40 
QuestionTemp files suggestions Pin
__makaveli__8-Jun-06 23:52
__makaveli__8-Jun-06 23:52 
AnswerRe: Temp files suggestions Pin
D.NetDeveloper9-Jun-06 5:09
D.NetDeveloper9-Jun-06 5:09 
Questionpopulating dropdownlists Pin
Uma Kameswari8-Jun-06 23:44
Uma Kameswari8-Jun-06 23:44 
AnswerRe: populating dropdownlists Pin
sathish s9-Jun-06 0:06
sathish s9-Jun-06 0:06 
GeneralRe: populating dropdownlists Pin
Chris Maunder10-Jun-06 2:34
cofounderChris Maunder10-Jun-06 2:34 

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.