Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Client Callbacks generated from User Control's page load event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CodeRazor - 21 Nov 2006 15:56 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.