473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
Nov 17 '05 #1
2 1405
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" <ja*********@msn.com> wrote in message
news:05****************************@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

Nov 17 '05 #2
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 thereis anything you can do. The other controls won't make the images load anyfaster.

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

"Jake" <ja*********@msn.com> wrote in message
news:05****************************@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

.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy Eshtry | last post by:
Hello Dear Professionals: Based on this document: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskcreatingwebservercontroltemplatesdynamically.asp or this...
0
by: Reb | last post by:
I am using a datagrid within another datagrid. My second datagrid is expand/collapse one. I am facing some error. This is my code. ExpandGrid.aspx <form id="Form1" method="post"...
9
by: tshad | last post by:
Is there a way to use your own image in place of the automatic one that ASP uses when doing editing in your DataGrid pages? We already have a style of button we are using and would like to be...
5
by: Lie | last post by:
Hi all, I have problem in getting selectedindex of multiple listbox selection in a datagrid. I have a listbox with multiple selection mode inside datagrid. In Edit mode, I need to get back all...
0
by: MattC | last post by:
Hi, I have place the following code in my ItemDataBound event: The problem I have is that when I select a row for editing using the edit command it no longer changes the CSSClass to the one...
2
by: charliewest | last post by:
I am dynamically creating my datagrid, building each column in real-time via code-behind (using c#). The only way i have read to add ImageButtons to my grid dynamically is by creating a separate...
0
by: sda | last post by:
Hi everybody, I have a problem to fire an event in a DataGrid. 1/ I have got a datagrid in a generic user control protected System.Web.UI.WebControls.DataGrid dgListDataGrid; ........ ...
1
by: Brett Wesoloski | last post by:
I am having problems getting the index of an image click event in a datagrid. Every time I look at the index it is -1. What I am trying to do is get the index of the row in which the imagebutton...
1
nateraaaa
by: nateraaaa | last post by:
While working on a recent project I discovered how useful the CommandArgument property can be. I needed to determine the record_id of a row displayed in my datagrid. When the user clicked the Edit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.