Saturday, March 24, 2012

Need help - Message: The remote host closed the connection. The error code is 0x80072746.

Message: The remote host closed the connection. The error code is 0x80072746.
Source: App_Web_xgkqs8rx
Offending URL:http://abc/asp.aspx
Stack trace: at MasterPage.MasterScriptManager_AsyncPostBackError(Object sender, AsyncPostBackErrorEventArgs e) at System.Web.UI.ScriptManager.OnAsyncPostBackError(AsyncPostBackErrorEventArgs e) at
System.Web.UI.PageRequestManager.OnPageError(Object sender, EventArgs e) at
System.Web.UI.TemplateControl.OnError(EventArgs e) at System.Web.UI.Page.HandleError(Exception e) at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at
System.Web.UI.Page.ProcessRequest() at
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at
System.Web.UI.Page.ProcessRequest(HttpContext context) at
ASP.searchrequestasi_aspx.ProcessRequest(HttpContext context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can't duplicate this error - how do i find out exactly what's going on?

I have a session object that I am supplying the results of the grid to.

I also have<pagesenableViewState="true"validateRequest="false"viewStateEncryptionMode="Never"

enableViewStateMac="false"enableSessionState="true">

Found the problem. When they hit the button to search, it waits for the results. Then they can click on the button multiple times before the results come - or before the onclick event is even fired.

How can i disable the button - then reenable it when they get data?


I disabled the button - but it doesn't go through with the submit - how can i make it go throught with the submit even after the button is disabled?

It's in an updatepanel.

Dim x As String = "document.getElementById('ctl00$cphBody$btnSearch').disabled = true;"

btnSearch.Attributes.Add("onclick", x)

If you're using UpdatePanel, here is what you can do:

Please wait...

If your async call is not caused by an UpdatePanel, let me know and I'll show you how to handle the "async complete event" which will re-enable the button...


Awesome that worked. What does $get do? Do you have a tutorial on that?


$get('elementid') is the same asdocument.getElementById('elementid')

You can learn more here:

http://ajax.asp.net/docs/ClientReference/Global/default.aspx

If this solves your issue, please mark this thread as "Resolved".

Good luck!Wink


Problem it loads pleasewait - even if it doesn't pass the requiredfieldvalidator. So if i leave it blank then click - it says pleasewait - but i can't reenter the number and click on the button.
Figured it out -

if (Page_ClientValidate() == true)


Well, in this case you can do the following:


I want to put the processing status in the status bar when they click button. Which I did with window.status='Processing'. But I want it to go away or be blank when the search results are displayed. Any ideas?

Instead of the below - can i show this in the status bar instead?

<atlas:UpdateProgressID="Progress1"runat="server"DynamicLayout="true">

<ProgressTemplate><asp:ImageID="Image1"runat="server"SkinID="Indicator"/> Processing...</ProgressTemplate>

</

atlas:UpdateProgress>

Here is how you can accomplish this:

May be you should start a new thread so that other people may benefit from its title.Wink

No comments:

Post a Comment