468,115 Members | 2,133 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,115 developers. It's quick & easy.

Very simple AJAX question

I have an online store catalog. On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
//add client-side script to preload ALL possible pictures for this
category
//of the catalog?
}

Thanks!

Steven
Nov 19 '08 #1
2 1118
On Nov 19, 7:03*pm, "Steven" <sedison@protronix_nospam_.comwrote:
I have an online store catalog. *On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. *Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? *My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
* //add client-side script to preload ALL possible pictures for this
category
* //of the catalog?

}

Thanks!

Steven
Hi Steven,

it would work without preload. If you have an Image control in
ListView, the UpdatePanel will manage updates.
Nov 19 '08 #2
Awesome, I'm assuming this would include an image button?
Thanks for your response.

Steven

"Alexey Smirnov" <al************@gmail.comwrote in message
news:25**********************************@n10g2000 yqm.googlegroups.com...
On Nov 19, 7:03 pm, "Steven" <sedison@protronix_nospam_.comwrote:
I have an online store catalog. On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and
all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
//add client-side script to preload ALL possible pictures for this
category
//of the catalog?

}

Thanks!

Steven
Hi Steven,

it would work without preload. If you have an Image control in
ListView, the UpdatePanel will manage updates.
Nov 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mason Barge | last post: by
7 posts views Thread by Ivan Marsh | last post: by
1 post views Thread by www.web20developers.com | last post: by
1 post views Thread by eddie | last post: by
1 post views Thread by Boris Twila | last post: by
reply views Thread by minnie | last post: by
3 posts views Thread by cold80 | last post: by
3 posts views Thread by Tarik Monem | last post: by
5 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.