Very simple AJAX question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven

    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 .IsInAsyncPostB ack)
    {
    //add client-side script to preload ALL possible pictures for this
    category
    //of the catalog?
    }

    Thanks!

    Steven


  • Alexey Smirnov

    #2
    Re: Very simple AJAX question

    On Nov 19, 7:03 pm, "Steven" <sedison@protro nix_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 .IsInAsyncPostB ack)
    {
      //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.

    Comment

    • Steven

      #3
      Re: Very simple AJAX question

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

      Steven

      "Alexey Smirnov" <alexey.smirnov @gmail.comwrote in message
      news:25ea5431-b20a-4941-8cb2-3da4fb466f93@n1 0g2000yqm.googl egroups.com...
      On Nov 19, 7:03 pm, "Steven" <sedison@protro nix_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 .IsInAsyncPostB ack)
      {
      //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.


      Comment

      Working...