Datagrid + ImageButton = Slooooowwwww

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Datagrid + ImageButton = Slooooowwwww

    Hi All,

    I have an aspx page with a datagrid which I am using to
    display a list of thumbnails and their descriptions. The
    thumbnails are sitting on my harddrive and the links to
    them are stored in an Access database.

    I have placed an ImageButton in a template column in the
    datagrid and as the grid loads the ImageURL property of
    the ImageButton is filled from the database.

    Everything is fine on my test server but when I try to run
    the page on a remote computer it is so slow that the
    thumbnails often don't load when run on a 56k connection.

    Can anyone help? Would I be better off using a Repeater
    or a Datalist? Should I use an image control rather than
    an ImageButton?

    TIA, Jake
    Jake Guest

  2. Similar Questions and Discussions

    1. ImageButton Column in DataGrid
      I'm trying to add an ImageButton Column into my datagrid, but the Property Designer only allows for plain buttons and link buttons. Is there a way...
    2. Adding ImageButton to datagrid
      Ok, o I have a datagrid with sorting and paging. I would like to add a small ImageButton right under the header text that I currently use for...
    3. DataGrid Cell with an ImageButton In It
      I create a datagrid and at runtime I add an ImageButton to certain cells(e.Item.Cells.Controls.Add(imgbutton)). Now when I click on a row that...
    4. Datagrid & imagebutton
      I have a datagrid with a templatecolumn, in this template there are two imagebutton, one for modify the record, one to cancel, but i'm not able to...
    5. Datagrid and Imagebutton
      try to write your code in the ItemCommand event of the datagrid (remove the code from your sub and put it in the ItemCommand event of the datagrid )...
  3. #2

    Default Re: Datagrid + ImageButton = Slooooowwwww

    If the problem is a slow connection and lot's of images, I don't think there
    is anything you can do. The other controls won't make the images load any
    faster.

    What you can do, is turn off viewstate for those controls for which you
    don't really need it. This can help with load time.

    "Jake" <jake_morath@msn.com> wrote in message
    news:052301c35a64$c84461e0$a301280a@phx.gbl...
    > Hi All,
    >
    > I have an aspx page with a datagrid which I am using to
    > display a list of thumbnails and their descriptions. The
    > thumbnails are sitting on my harddrive and the links to
    > them are stored in an Access database.
    >
    > I have placed an ImageButton in a template column in the
    > datagrid and as the grid loads the ImageURL property of
    > the ImageButton is filled from the database.
    >
    > Everything is fine on my test server but when I try to run
    > the page on a remote computer it is so slow that the
    > thumbnails often don't load when run on a 56k connection.
    >
    > Can anyone help? Would I be better off using a Repeater
    > or a Datalist? Should I use an image control rather than
    > an ImageButton?
    >
    > TIA, Jake

    Marina Guest

  4. #3

    Default Re: Datagrid + ImageButton = Slooooowwwww

    Thanks Marina, I'll give that a try. I was thinking of
    something like that but unfortunately I won't be able to
    test it out until I get home tonight.

    Fingers crossed :P
    >-----Original Message-----
    >If the problem is a slow connection and lot's of images,
    I don't think there
    >is anything you can do. The other controls won't make
    the images load any
    >faster.
    >
    >What you can do, is turn off viewstate for those controls
    for which you
    >don't really need it. This can help with load time.
    >
    >"Jake" <jake_morath@msn.com> wrote in message
    >news:052301c35a64$c84461e0$a301280a@phx.gbl...
    >> Hi All,
    >>
    >> I have an aspx page with a datagrid which I am using to
    >> display a list of thumbnails and their descriptions.
    The
    >> thumbnails are sitting on my harddrive and the links to
    >> them are stored in an Access database.
    >>
    >> I have placed an ImageButton in a template column in the
    >> datagrid and as the grid loads the ImageURL property of
    >> the ImageButton is filled from the database.
    >>
    >> Everything is fine on my test server but when I try to
    run
    >> the page on a remote computer it is so slow that the
    >> thumbnails often don't load when run on a 56k
    connection.
    >>
    >> Can anyone help? Would I be better off using a Repeater
    >> or a Datalist? Should I use an image control rather
    than
    >> an ImageButton?
    >>
    >> TIA, Jake
    >
    >
    >.
    >
    Jake Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139