Client Callbacks generated from User Control's page load event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a user contol hosted in a webform. The user control interfaces with an
http component.
When the user control loads, a request is sent to the http component. It
takes around 10 seconds before a response is returned.
While this is happening the webform cannot do any other processing.

I want to use a client callback to free up the web form while the
usercontrol is busy doing its stuff.
I have got it working fine if I generate the client call back from the
OnClientClick event of a button.
However, my requirement is that the client callback happens from the user
control page load. The work i am doing HAS to happen when the user control
loads.

- I have been unable access the client side page load of the user control.
(i have tried using Attributes.Add("onload", callbackScript
- I have been unable to use RegisterClientScriptBlock to do the work. ie.
this.Page.ClientScript.RegisterClientScriptBlock(typeof(string), "startup",
callbackScript", true); (The message box shows, but the callback does not
happen)

Has anyone come accross this same scenario?

Many thanks,
 
CodeRazor,
This isn't a C# language question, it's an ASP.NET question. post it to the
asp.net group.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top