473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Client Callbacks generated from User Control's page load event

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(t ypeof(string), "startup",
callbackScript", true); (The message box shows, but the callback does not
happen)

Has anyone come accross this same scenario?

Many thanks,

Nov 21 '06 #1
3 3161
CodeRazor,
This isn't a C# language question, it's an ASP.NET question. post it to the
asp.net group.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"CodeRazor" wrote:
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(t ypeof(string), "startup",
callbackScript", true); (The message box shows, but the callback does not
happen)

Has anyone come accross this same scenario?

Many thanks,
Nov 21 '06 #2
.....any clues as to where that is..... can't find it from the
http://www.microsoft.com/communtitie...s/default.aspx page
Nov 23 '06 #3
http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=

See how the url is constructed? The group'd full name comes after "&dg="
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"CodeRazor" wrote:
....any clues as to where that is..... can't find it from the
http://www.microsoft.com/communtitie...s/default.aspx page
Nov 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
4
by: Barb | last post by:
I have a user control as my Save button for my page. When the Save button is clicked, I want some client-side validation to take place from a javascript function in the page, and then I'd like the...
6
by: schleichv | last post by:
Hello, I am attempting to get the ServerClick event to fire on a dynamically generated HtmlInputImage and having no luck at all. I've looked over many items on the forums but none seem to cover...
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
5
by: Papanii Okai | last post by:
Hi Guys, As we wall know Atlas is a fairly new feature everyone is talking about (atleast at my school). Even though the idea of Ajax has been used in the past i was wondeing if anyone could...
0
by: John Smith | last post by:
I still have not gotten this damn thing figured out and I'm asking for help one last time before I give up on it. I have a user control that contains a paged gridview control. The master page...
0
by: alrotem | last post by:
Hi, I'm using an <asp:TreeViewcontrol on my page. Combining the TreeView's OnTreeNodePopulate server-side event handler, and the PopulateOnDemand set to "true" on each node, I get client-based...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.