Ask a Question related to ASP.NET General, Design and Development.
-
Frank #1
listBox ViewState lost
Hi all,
I have a listBox which is filled with data if not isPostBack. Then on client
side, one more item is added to the listBox( using New Option in
JavaScript). Then on a server button click event, I want to retrieve the
newly added item. But it's not there. EnableViewState has been set to true.
I know if I add listItem on the server, it will keep the viewState. But I
want to do it on the client side.
Did I do something wrong?
Thanks a lot.
Frank
Frank 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... -
click listbox and refresh another listbox
Can someone guide me to a resource on building set of drill-down listboxes? Basically I want to have 4 listboxes. The first starts out with... -
Viewstate lost in child controls of a composite control
Hi, 1) You should implement INamingContainer interface 2) You shouldn't change child control's place in the Controls collection after they're... -
now desparate! - 1st listbox contents disappears when 2nd listbox appears?
On 23 Jun 2003 12:57:45 -0700, KathyBurke40@attbi.com (KathyB) wrote: Its been a while since you posted but I will answer anyway. The problem... -
ViewState lost when extending custome Page Object
Check out this article, which explains about this problem. http://www.microsoft.com/india/msdn/articles/87.aspx -- Saravana Microsoft India... -
Natty Gur #2
Re: listBox ViewState lost
Hi,
In postback (as any request to the server) only the selected value of
list\combo box sends to the server. asp.net uses hidden field called
__viewstate. This field is create on the server and holds the last state
of server controls. __viewstate also send to the server as part of the
form fields. When the asp.net get request he can build the controls last
sate from the __viewstate data. That mean that every data that you will
add on the client side wont be send in any way to the server nor it will
add to static field (__viewstate) that made on the server side.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

