G
Gummy
Hello,
I have an ASPX page on which I place a UserControl 15 times (they only need
to be static controls on the page). This UserControl is a set of two
listboxes with radiobuttons above the listbox (to select between viewing a
code or description in the listbox). There are also left and right arrows
that move the selected items between the listboxes.
In my Page_Load I assign each UserControl the appropriate DataTable and this
assignment only happens when it is not a PostBack. So I know (pretty sure)
that I am not reloading all that data each time.
Each listbox (on the left) is loaded with data from stored procedures. When
I click the right arrow to move a selection from the left to the right
listbox it causes a postback (as expected). The problem is that I only need
to do a postback for the UserControl where I made the change (if that makes
any sense). The entire page doesn't need to be reloaded.
When I click an arrow in a UserControl, the bottom of IE says, "Opening
http:/localhost/..." This occurs even before it gets to the Page_Load.
Is there a way I can have a postback only on the UserControl I am clicking
on? I have ViewState on and when I look at the ViewSource, the ViewState is
just huge! The problem is some of these listboxes, in the UserControls, have
a large amount of data and I don't think it makes much sense to repopulate
them on each postback, yet I am forced to have this huge ViewState that is
really slowing things down.
Any help is greatly appreciated.
I have an ASPX page on which I place a UserControl 15 times (they only need
to be static controls on the page). This UserControl is a set of two
listboxes with radiobuttons above the listbox (to select between viewing a
code or description in the listbox). There are also left and right arrows
that move the selected items between the listboxes.
In my Page_Load I assign each UserControl the appropriate DataTable and this
assignment only happens when it is not a PostBack. So I know (pretty sure)
that I am not reloading all that data each time.
Each listbox (on the left) is loaded with data from stored procedures. When
I click the right arrow to move a selection from the left to the right
listbox it causes a postback (as expected). The problem is that I only need
to do a postback for the UserControl where I made the change (if that makes
any sense). The entire page doesn't need to be reloaded.
When I click an arrow in a UserControl, the bottom of IE says, "Opening
http:/localhost/..." This occurs even before it gets to the Page_Load.
Is there a way I can have a postback only on the UserControl I am clicking
on? I have ViewState on and when I look at the ViewSource, the ViewState is
just huge! The problem is some of these listboxes, in the UserControls, have
a large amount of data and I don't think it makes much sense to repopulate
them on each postback, yet I am forced to have this huge ViewState that is
really slowing things down.
Any help is greatly appreciated.