V
vMike
I have a Datalist which contains linkbuttons. In order to get the
information about the clicked linkbutton I have been enabling the viewstate.
I have noticed that the size of the viewstate for datalists is quite large
(about 8000 character) even though the datalist ranges about 20 items long.
As a workaround I have thought about but haven't actually tried is to
disable the viewstate, then use the Request.Form("__EVENTARGET") and use the
control ID to determine which control has been click and process from there.
I also forgo getting any command arguments etc. The trade off here is page
bloat. What do you think of that method? Are there other ways to do this?
Thanks for any insight.
Mike
information about the clicked linkbutton I have been enabling the viewstate.
I have noticed that the size of the viewstate for datalists is quite large
(about 8000 character) even though the datalist ranges about 20 items long.
As a workaround I have thought about but haven't actually tried is to
disable the viewstate, then use the Request.Form("__EVENTARGET") and use the
control ID to determine which control has been click and process from there.
I also forgo getting any command arguments etc. The trade off here is page
bloat. What do you think of that method? Are there other ways to do this?
Thanks for any insight.
Mike