Ask a Question related to ASP.NET General, Design and Development.
-
Bigal #1
Viewstate versus performance
If I want to create a ListBox filled by a database query, it is not
recommended to enable the viewstate of the form,
because it does not make sense to reconstruct the whole and costs
performance.
But what if I want to react on the onChange event, I do have to set
autoRepost to true to get my selectedItem.
It seems I need the viewstate to retrieve my selection.
What is the best practice to do this:
- fill list by database query
- react on change event at the client site or with minimum overhead on
server
Bigal Guest
-
Failed to load viewstate. The control tree into which viewstate...
Hi to all, I have a webform.aspx and inside i have a dropdown list with autopostback and a place holder... Depending of the selected index... -
EPS versus PS
Hi All Can anyone tell me if there is a difference between distilling pure postscript rather than an EPS file? Im printing from Quark using the... -
CFX - C versus C++
We're running CFMX on Windows I know that CFX tags built in C++ use the tag request object. However, I have C files that I need to call from... -
Viewstate errors... how do I get viewstate working?
Hi all, Have to say I can't for the life of me get this viewstate business working with collections of classes! The current error I'm getting... -
PS versus EPS
Wondering if there's any disadvantage to saving files as EPS and running that through Distiller versus doing it with a .ps file. { Hector... -
Gary McCormack #2
Viewstate versus performance
You don't necessarily need ViewState to do this. Assuming
when binding the ListBox you are using a column from the
DB that identifies a record, to populate the Value
property of the list items you could use Request.Form
("ListBoxName") to retrieve the selected item(s).
it is not>-----Original Message-----
>If I want to create a ListBox filled by a database query,and costs>recommended to enable the viewstate of the form,
>because it does not make sense to reconstruct the wholehave to set>performance.
>But what if I want to react on the onChange event, I dominimum overhead on>autoRepost to true to get my selectedItem.
>It seems I need the viewstate to retrieve my selection.
>
>What is the best practice to do this:
>- fill list by database query
>- react on change event at the client site or with>server
>
>
>.
>Gary McCormack Guest



Reply With Quote

