473,386 Members | 1,815 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,386 software developers and data experts.

Slow loading of page and OnClick not working...

EMW
Hi,

I've got two problems:

My datagrid is 35 columns wide and 26 rows tall. Columns 4 to 35 are filled
with ImageButtons, created during runtime and each one with it's own name.
During the creating of these buttons I do the following:

img.Attributes.Add("OnClick", "ButtonClicked")

Without this, the page is created in just a few seconds, with this it takes
about 14 seconds to show the grid.

How can I make this faster?

My second problem is related to the same line.
I get a runtime javascript error telling me "ButtonClicked" is not defined,
even though I have:

Sub ButtonClicked(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs)
Label6.Text = sender.id
End Sub

What should I do about this?

rg,
Eric
Nov 18 '05 #1
1 1147
EMW
Never mind.... I found this article:
http://www.dotnetbips.com/displayarticle.aspx?id=205

"EMW" <SomeOne@MicroSoftdotCom> schreef in bericht
news:40**********************@dreader2.news.tiscal i.nl...
Hi,

I've got two problems:

My datagrid is 35 columns wide and 26 rows tall. Columns 4 to 35 are filled with ImageButtons, created during runtime and each one with it's own name.
During the creating of these buttons I do the following:

img.Attributes.Add("OnClick", "ButtonClicked")

Without this, the page is created in just a few seconds, with this it takes about 14 seconds to show the grid.

How can I make this faster?

My second problem is related to the same line.
I get a runtime javascript error telling me "ButtonClicked" is not defined, even though I have:

Sub ButtonClicked(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs)
Label6.Text = sender.id
End Sub

What should I do about this?

rg,
Eric

Nov 18 '05 #2

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

Similar topics

0
by: smartin | last post by:
python IIS cgi loading extremely slow I recently uninstalled python 1.5.2 and installed python 2.3 on a Windows 2000 server running IIS 5.0. The issue is that when submitting a cgi request to a...
8
by: saif | last post by:
Hi all, I realy need your help. I have a page with different web links, now what I am trying to do is whenever a user clicks on a link that link is captured using event.target method. I'm...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
15
by: Geoff Cox | last post by:
Hello I have following type of code in the header function pre_load_pics() { if (document.images) { var image1 = new Image(400,265); image1.scr = "pic1.jpg";
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
by: Claudio Calboni | last post by:
Hello folks, I'm having some performance issues with the client-side part of my application. Basically, it renders a huge HTML table (about 20'000 cells in my testing scenario), without content....
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
39
by: cm_gui | last post by:
Python is slow. Almost all of the web applications written in Python are slow. Zope/Plone is slow, sloow, so very slooow. Even Google Apps is not faster. Neither is Youtube. Facebook and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.