K
Karen Grube
Hi!
I have a server control dropdown list on an asp.net page that may contain
as many as 1,200 items. The list is databound to a SQL Server stored
procedure which actually retrieves the data in a couple of seconds. However,
the dropdown list itself takes 20 or more seconds to populate.
On this page, the user selects an item from the dropdown list and then
moves down the page to enter additional information. As much as I mind how
long it takes to poulate the list initially, what's worse is this: I have
some amount fields on the page. When the user enters an amount, all of the
amount fields are totaled and the total is displayed in a label. Each of the
amount fields is set with autopostback so that the total can be recalculated
when the amount changes and the total redisplayed. What's happening is that
when you enter an amount on a page where the dropdown list is very large, it
takes forever for the page to redisplay, even though nothing is happening to
the dropdown list. I'm not sure what's going on behind the scenes, but I
really need to cut down on the time it takes to simply redisplay the page.
I'm not sure I really understand why this takes so long once the dropdown
list is populated. It's not changing. When the list is a short list (under
100 items) the screen redisplays quickly, so I know it's the dropdown that's
causing the delay.
Could someone please explain what's going on with the dropdown list while
the screen is redisplaying on autopostback for another item on the page. The
page load event is set to read "If not ispostback," so nothing's being
executed there. I can't see where anything at all is being executed except
the redisplay of that total label. Do I need to set some sort of memory
cache or something? Any suggestions would be greatly appreciated.
Thanks
Karen Grube
([email protected])
I have a server control dropdown list on an asp.net page that may contain
as many as 1,200 items. The list is databound to a SQL Server stored
procedure which actually retrieves the data in a couple of seconds. However,
the dropdown list itself takes 20 or more seconds to populate.
On this page, the user selects an item from the dropdown list and then
moves down the page to enter additional information. As much as I mind how
long it takes to poulate the list initially, what's worse is this: I have
some amount fields on the page. When the user enters an amount, all of the
amount fields are totaled and the total is displayed in a label. Each of the
amount fields is set with autopostback so that the total can be recalculated
when the amount changes and the total redisplayed. What's happening is that
when you enter an amount on a page where the dropdown list is very large, it
takes forever for the page to redisplay, even though nothing is happening to
the dropdown list. I'm not sure what's going on behind the scenes, but I
really need to cut down on the time it takes to simply redisplay the page.
I'm not sure I really understand why this takes so long once the dropdown
list is populated. It's not changing. When the list is a short list (under
100 items) the screen redisplays quickly, so I know it's the dropdown that's
causing the delay.
Could someone please explain what's going on with the dropdown list while
the screen is redisplaying on autopostback for another item on the page. The
page load event is set to read "If not ispostback," so nothing's being
executed there. I can't see where anything at all is being executed except
the redisplay of that total label. Do I need to set some sort of memory
cache or something? Any suggestions would be greatly appreciated.
Thanks
Karen Grube
([email protected])