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,
Peter Bromberg [C# MVP] - 21 Nov 2006 17:00 GMT
CodeRazor,
This isn't a C# language question, it's an ASP.NET question. post it to the
asp.net group.
Peter

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> I have a user contol hosted in a webform. The user control interfaces with an
> http component.
[quoted text clipped - 20 lines]
>
> Many thanks,
CodeRazor - 23 Nov 2006 08:31 GMT
....any clues as to where that is..... can't find it from the
www.microsoft.com/communtities/newsgroupgs/en-us/default.aspx page
Peter Bromberg [C# MVP] - 23 Nov 2006 12:25 GMT
http://msdn.microsoft.com/newsgroups/default.aspx?pg=1&guid=&sloc=en-us&dg=micro
soft.public.dotnet.framework.aspnet&fltr=
See how the url is constructed? The group'd full name comes after "&dg="

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> ....any clues as to where that is..... can't find it from the
> www.microsoft.com/communtities/newsgroupgs/en-us/default.aspx page