Click here to Skip to main content
15,900,511 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .NET and C++ Pin
Mark Salsbery24-Sep-08 7:56
Mark Salsbery24-Sep-08 7:56 
AnswerRe: .NET and C++ Pin
Kevin McFarlane27-Sep-08 7:25
Kevin McFarlane27-Sep-08 7:25 
QuestionHow to disable the browser cache in WebBrowser Pin
Raaya123-Sep-08 11:13
Raaya123-Sep-08 11:13 
AnswerRe: How to disable the browser cache in WebBrowser Pin
Kumar Arun25-Sep-08 18:58
Kumar Arun25-Sep-08 18:58 
GeneralRe: How to disable the browser cache in WebBrowser Pin
Raaya129-Sep-08 10:56
Raaya129-Sep-08 10:56 
QuestionTextRange Fields in Office 2007 Pin
Patrick Kilgore23-Sep-08 10:01
Patrick Kilgore23-Sep-08 10:01 
AnswerRe: TextRange Fields in Office 2007 Pin
Patrick Kilgore23-Sep-08 11:36
Patrick Kilgore23-Sep-08 11:36 
QuestionAjax error handlling Pin
valerian.precop22-Sep-08 22:34
valerian.precop22-Sep-08 22:34 
Ok... I'm having a problem with Ajax.
I don't know if here is the place to ask it, but here it goes...
My site uses latest version of Ajax, and Framework 3.5 (c# language)...
I am using script manager in the master page. Also the page gets refreshed async, using the Ajax timer control.

The task is to hide all the Ajax error alert windows.

I tried using the following methods:

1. setting the properties of the ScriptManager:
- AllowCustomErrorsRedirect="false"
- AsyncPostBackErrorMessage=""
2. Using the ScriptManager event OnAsyncPostBackError="ScriptManager1_AsyncPostBackError"
3. Using the EndRequest:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);<br />
    <br />
function endRequest(sender, e) <br />
{<br />
   if(e.get_error())<br />
   {<br />
      e._error.message = "";<br />
      e.set_errorHandled(true);<br />
   }<br />
}


4. using the JavaScript window.onerror event

The problem is that not all the errors are hidden, and also not always.
For example... I have the following scenario:
1. Load the page in IE.
2. Go to page code and delete ";" after one line (create a compilation error).
3. Save the page and wait for the refresh async postback.

- the end request event is fired, the original e._error.message is:
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500."

- but the actual alert window that appears automatically has the following message:
"An unhandled exception occurred during the execution of the current web request.<br />
Compilation error."


Also the script manager event OnAsyncPostBackError does not fire.

Can someone give me a hand?

Thanks,
Valy.

Just call me Valy... Smile | :)

AnswerRe: Ajax error handlling Pin
Patrick Kilgore23-Sep-08 10:05
Patrick Kilgore23-Sep-08 10:05 
QuestionCompiling VS 6.0 code in VS2005 Pin
SNI22-Sep-08 20:50
SNI22-Sep-08 20:50 
AnswerRe: Compiling VS 6.0 code in VS2005 Pin
led mike23-Sep-08 5:47
led mike23-Sep-08 5:47 
AnswerRe: Compiling VS 6.0 code in VS2005 Pin
The_Mega_ZZTer27-Sep-08 5:43
The_Mega_ZZTer27-Sep-08 5:43 
QuestionError- HTTP Error 500.19 on Win Server 2008 Pin
Amit Battan Ror22-Sep-08 18:47
Amit Battan Ror22-Sep-08 18:47 
AnswerRe: Error- HTTP Error 500.19 on Win Server 2008 Pin
John_Adams23-Sep-08 23:18
John_Adams23-Sep-08 23:18 
GeneralRe: Error- HTTP Error 500.19 on Win Server 2008 Pin
Amit Battan Ror6-Oct-08 19:48
Amit Battan Ror6-Oct-08 19:48 
Questionframework or Visualstudio needed? Pin
balu1234522-Sep-08 9:16
balu1234522-Sep-08 9:16 
AnswerCross-post Pin
Wendelius23-Sep-08 8:37
mentorWendelius23-Sep-08 8:37 
QuestionError while Installing the .NET 3.5 framework Pin
Amit Battan Ror22-Sep-08 2:35
Amit Battan Ror22-Sep-08 2:35 
AnswerRe: Error while Installing the .NET 3.5 framework Pin
led mike22-Sep-08 4:28
led mike22-Sep-08 4:28 
GeneralRe: Error while Installing the .NET 3.5 framework Pin
Mark Salsbery22-Sep-08 6:15
Mark Salsbery22-Sep-08 6:15 
GeneralRe: Error while Installing the .NET 3.5 framework Pin
led mike22-Sep-08 6:47
led mike22-Sep-08 6:47 
GeneralRe: Error while Installing the .NET 3.5 framework Pin
Paul Conrad22-Sep-08 6:40
professionalPaul Conrad22-Sep-08 6:40 
GeneralRe: Error while Installing the .NET 3.5 framework Pin
Amit Battan Ror22-Sep-08 18:35
Amit Battan Ror22-Sep-08 18:35 
QuestionTesting Tools in Visual Studio 2008 Architect version Pin
new2pgrmg21-Sep-08 18:27
new2pgrmg21-Sep-08 18:27 
AnswerRe: Testing Tools in Visual Studio 2008 Architect version Pin
Paul Conrad22-Sep-08 6:41
professionalPaul Conrad22-Sep-08 6:41 

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.