Listbox

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I have asp:listbox on the page and I would like to fill it with the values
after the page is load,
that the user can read other parts of the page meanwhile.

How can I do that?

I have very large codetables in my listboxes and the page loads too long
time.

Thank you for your answer,

Simon
 
You'll want to override the Page'ss Render event if you want to allow other object to process first.
 
simon said:
I have asp:listbox on the page and I would like to fill it with the values
after the page is load,
that the user can read other parts of the page meanwhile.

How can I do that?

I have very large codetables in my listboxes and the page loads too long
time.

Simon,

There isn't really a good way to do that. Keep in mind that your page is
just text in HTML format. What you're asking for is that the server should
first generate an "empty" page:

<html>
<body>
<select>
<option>Please wait...</option>
</select>
</body>
</html>

and then, later, when the data are all loaded, you want to generate a new
page:

<html>
<body>
<select>
<option>Data from row 0</option>
<option>Data from row 1</option>
<option>Data from row 2</option>
...
<option>Data from row n</option>
</select>
</body>
</html>

This is effectively two separate pages.

The following articles may help you some:

Make a Progress Indicator For Slow-Loading Pages
(http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308b
m_l.asp)

DESIGN PATTERNS: Asynchronous Wait State Pattern in ASP.NET
http://msdn.microsoft.com/msdnmag/issues/03/12/designpatterns/default.aspx
--
John Saunders
johnwsaundersiii at hotmail

P.S. Note that this becomes easier in ASP.NET 2.0, at least for clients
running IE 5.5 and above.
 
thank you.
So user can see and read the page while list box controls are filling?

Do you have some example or link?

Thank you,
Simon
 
Back
Top