473,698 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

databased filled dropdown slow or crash

Hello,

I fill a dropdown with data from sql server with vbscript. In the view
on the sql server are just citynames, only one row. To fill the
dropdown takes round about 4 seconds. That's not nice, but if it only
happens on page load, I can live with it. The realy bad thing is the
posback. Either it takes 20 seconds and more, if I do a databind() on
the dropdown, or the hole page crash.

I tested it with dataset and datareader. Both work in the same way.

It have to be possible to fill a dropdwon with a lot of data in a
rather fast way and no problems in with postback (holidaypages can do
this too).

Can some one help me, please.

Nov 19 '05 #1
3 1262
You say you are filling it from the SQL Server using VBSCRIPT ?, Are you
really doing this from the client ?

You should be binding to a DataSet serverside and then saving this to cache
which will be so much faster once the initial page has loaded and really
should not be too slow on load either.
Mr N


"catweezle2 010" <ca***********@ gmx.de> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hello,

I fill a dropdown with data from sql server with vbscript. In the view
on the sql server are just citynames, only one row. To fill the
dropdown takes round about 4 seconds. That's not nice, but if it only
happens on page load, I can live with it. The realy bad thing is the
posback. Either it takes 20 seconds and more, if I do a databind() on
the dropdown, or the hole page crash.

I tested it with dataset and datareader. Both work in the same way.

It have to be possible to fill a dropdwon with a lot of data in a
rather fast way and no problems in with postback (holidaypages can do
this too).

Can some one help me, please.

Nov 19 '05 #2
Hello Mr N,

my mistake. It's not vbscript on clientsite. I just wanted to say I use
vb and not c#.

I do it onpageload. And it is slowly. But on Postback it's the horror.
I think, the postback deliver all the data back to the server, don't
know what he is doing with it, but something. And these two steps need
a long time. I think so, because I have a datagrid, in which I drop
data from a select. And because of a mistake in sqlstring I got all
data and the postback needs rather long too.

So the problem is still there - saving to cache, on client site? Do you
have a link or example-code?

Nov 19 '05 #3
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here

If Not Page.IsPostBack Then

Me.adaptCalls.F ill(Me.DsCalls1 )
Me.adaptContact s.Fill(Me.DsCon tacts1)
Me.adaptContact Types.Fill(Me.D sContactTypes1)

AddToCache("ada ptCalls", adaptCalls)
AddToCache("ada ptContacts", adaptContacts)
AddToCache("ada ptContactTypes" , adaptContactTyp es)

AddToCache("dsC alls", DsCalls1)
AddToCache("dsC ontacts", DsContacts1)
AddToCache("dsC ontactTypes", DsContactTypes1 )
End If
End Sub


"catweezle2 010" <ca***********@ gmx.de> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Hello Mr N,

my mistake. It's not vbscript on clientsite. I just wanted to say I use
vb and not c#.

I do it onpageload. And it is slowly. But on Postback it's the horror.
I think, the postback deliver all the data back to the server, don't
know what he is doing with it, but something. And these two steps need
a long time. I think so, because I have a datagrid, in which I drop
data from a select. And because of a mistake in sqlstring I got all
data and the postback needs rather long too.

So the problem is still there - saving to cache, on client site? Do you
have a link or example-code?

Nov 19 '05 #4

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

Similar topics

0
1618
by: Xiao Li | last post by:
I have an application written in ASP. It only uses JavaScript (.js) on client side. If the browser is accessing the web site through fast connections, like intranet or broadband, everything is fine; but if the browser accesses the web site through slow connections like dial-up, IE continuously crash when you click on buttons or images in the web page. The crash is always in MSHTML.DLL. The server is Windows 2000 Advanced Server with SP4...
1
1701
by: pcchong | last post by:
I have 3 websites and make use of free counters provided by other web hosting companies to count the no of hits. Now I want to install a multiple-user databased driven asp counter (with initial value setting) in one of my sites to provide the statistics. I try to use the google search to look for a free script but to no avail. Anyone know of a free asp script that I could use for this purpose? Thanks. pcchong
1
8289
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two dropdown lists. If you change the selection of the left one (e.g. choose parentoption2), it should open up page2.htm in a popup window.
10
2288
by: JL | last post by:
Does anyone have any ideas on this please? I don't know how to evaluate the no-blank selections against each other from a form as follows: . I have a form with 6 dropdown fields, each containing a selection of 30 options (the 30 options are the same for each dropdown list). The user needs to select 'one of the 30 options' from each dropdown selection, but each option they select must be unique (no duplicate selections) or it must be...
2
2953
by: VM | last post by:
When I display data to a Windows datagrid I usually fill the underlying table (in another class) and then, once it contains all the data, I attach it to the grid. But there are some processes that involve large amounts of data so the user won't be able to see anything in the grid until after the table's already filled up (usually 40-60 secs with these large processes). Is it possible (without changing the process of filling the table...
3
1494
by: Developerforum | last post by:
Hi, My customer is looking for a web control that allow them to perform speedy data entry. They wanted a dropdown list box which they can also key in the code directly (like a text box). I notice that current the dropdown box allow first character search, (i.e. when user enter "P", the dropdown list box will "jump" to the first P item).
5
10288
by: Gil | last post by:
Is there a way to tell if a combbox is in dropdown mode. I tried and if statement combobox.dropdown = true but i get an error. dropwndown function doesnt store if its true or false what i am trying to do is make an autoscroll combobox. like you have on html textbox's, but this time you hit enter for a change to be made. i do this because i dont want to requery every time a single letter is inputed. it would be too slow. so i make them hit...
2
1955
by: Sin Jeong-hun | last post by:
If I create a button like control, then I simply can draw button-like lines on my User Control's surface by getting its Graphics g. If I draw outside of the control's ClientRectangle (for example, -10,-10,-5,-5), it is simply cut out. But what about if I'm trying to make a dropdown list control in .NET? The dropped down part is outside of the control's ClientRectangle. How can I do such thing? Maybe create a borderless window and display...
1
1143
by: anonymoushamster | last post by:
On my dropdown, if I type it automatically goes to a related item that matches what I type - so long as whatever I type takes less then one second. How can I extend this timeout ? (I have slow typing users)
0
8675
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8862
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6521
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.