Very simple AJAX question

Discussion in 'ASP .Net' started by Steven, Nov 19, 2008.

  1. Steven

    Steven Guest

    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
     
    Steven, Nov 19, 2008
    #1
    1. Advertising

  2. On Nov 19, 7:03 pm, "Steven" <sedison@protronix_nospam_.com> wrote:
    > 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.
     
    Alexey Smirnov, Nov 19, 2008
    #2
    1. Advertising

  3. Steven

    Steven Guest

    Awesome, I'm assuming this would include an image button?
    Thanks for your response.

    Steven

    "Alexey Smirnov" <> wrote in message
    news:...
    On Nov 19, 7:03 pm, "Steven" <sedison@protronix_nospam_.com> wrote:
    > 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.
     
    Steven, Nov 20, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    523
    Raymond Hettinger
    Jul 27, 2003
  2. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,725
    Merrill & Michele
    Oct 19, 2004
  3. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    473
    jacob navia
    Oct 17, 2004
  4. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    547
    Dave Thompson
    Feb 14, 2005
  5. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,382
Loading...

Share This Page