ASP.Net 2 Client Callback page performance

G

Guest

Issue: We have a web user control on a web page (aspx) that uses the new
ASP.Net 2 feature Client Callback. The web user control is using a
CheckBoxList control and button control to allow the user to select multiple
values for displaying data on the page. When the user clicks on the button
control the client callback is triggered. The Client Callback works great.
I have no issues with the actual callback processing.

The issue is the performance of the web page on initial load or postback.
The web user control CheckBoxList can have hundreds of values in which the
user can select. In my research I found that the webresource.axd is
downloaded to the client and has the javascript code to support the client
callback. The ASP.Net 2 inserts the following at the end of the page.

<script type="text/javascript">
<!--
WebForm_InitCallback();// -->
</script>

In viewing the WebForm_InitCallback(); javascript function, I can see that
it is building an array of objects from all of the INPUT elements (type =
text, hidden, password, checkbox(checked) , radio(checked)). The ASP.Net
CheckBoxList control builds the html using the INPUT type=checkbox element.
By default all values in our web user control CheckBoxList are checked. This
is putting a burden on the load of the web page. I am not sure why the
callback javascript needs this list of INPUT objects, but the
WebForm_DoCallback does use this populated array.

Has anyone experienced this same issue or have any ideas to help with the
loading of the web page?
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top