CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 11/1/2005 3:15:06 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 55 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Wee Bubba
Asp.Net User
URGENT: Composite Control ListBox ViewState Problem11/1/2005 3:15:06 AM

0/0

ive developed a Dual List composite control which contains 2 listboxes so you can swap items between them. it works beautifully...or at least i thought it did until today!

the problem i encountered was when i set a different datasource for my listboxes. basically, i have a dropdownlist on my page which auto posts back. in the event handler i clear my listboxes and rebind them to a different data source. this seems ok. but if my page then posts back the listboxes are losing their state.

i have figured out that it is viewstate causing this problem. i am rebinding my Dual List in the dropdownlist SelectedIndexChanged event handler. but i think this has fired after the ViewState has been set. so I have a situation where I have one set of data in my lists and another in my ViewState. so when I post back it is emptying my lists. I am not sure if I need to override LoadViewState, SaveViewState or TrackViewState to solve this. any help very very much appreciated as I am nearing a deadline! :(

p.s. at the moment my composite control does its stuff in OnLoad.





Wee Bubba
Asp.Net User
Re: URGENT: Composite Control ListBox ViewState Problem11/1/2005 9:34:43 PM

0/0

thanks but there is no need to reply to this thread anymore. after a good few hours of frustration I realised that I was barking up the wrong tree. My ViewState was fine. It was the code which transferred the ListItems back from the hidden fields to the listboxes which was causing the bug.


2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
URGENT: Composite Control ListBox ViewState Problem - ASP.NET Forums URGENT: Composite Control ListBox ViewState Problem. Last post 11-01-2005 5:34 PM by Wee Bubba. 1 replies. Sort Posts: ...
URGENT: Composite Control ListBox ViewState Problem - ASP.NET Forums URGENT: Composite Control ListBox ViewState Problem. Last post 11-01-2005 5:34 PM by Wee Bubba. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
microsoft.public.dotnet.framework.aspnet.webcontrols Re: View State problem when multiple user work on the same page, murali.trichy ... Re: Validators in composite control firing prematurely, Brad ...
.NET ASP Page 125 - Bytes Site Map Urgent: looking for a hosting service to host several web sites · db connection function · Session state between ASP .... ViewState Problem...PLEASE HELP! ...
ASP.NET Development May 14, 2005 ... This div seems to wrap the viewstate variable :
microsoft.public.dotnet.framework.aspnet.buildingcontrols Re: 1st element not displaying in a List Box, Teemu Keiski. How to "track" a ( child) control's ViewState / SaveViewState?, Zarko Gajic ...
control that doen't run in an updatepanel with updatepanel's viewstate disabled and seems it can work correctly. Would this be the cause of the problem you met? BTW, for make custom control ...
.NET ASP Page 79 - Bytes Site Map NET, SMartClient, Web Service · MailMessage encoding · Getting row number in User Control that place inside DataGrid · Odd viewstate problem with Datagrid ...
TheMSsForum.com >> Asp >> Crystal Report Access Denied - The ... view state and data binding Hi. I am developing composite web control which contains a ListBox. I'd like to minimize the amount of data transfered in view ...
ASP Net [Archive] - Page 212 Asp.Net 2.0 Multiple Application Solutions · Odd viewstate problem with Datagrid template columns · Getting row number in User Control that place inside ...




Search This Site:










newbie - test a site using vwd locally on winxp - but be able to test on mac safari

formatting results from a sql db into two columns

prevent download of html source

quite new to asp.net

com component issue

how do i filter data for a specific logged in user?

programatically created user controls not visible?

how do they do that - rotating content - animated

seperating an address field....?

email help!!!

masterpage question

rangevalidator behavior in explorer and firefox

ms access connection string

gridveiw retriving datakeyvalue on the bridviewcommandeventarg

how do i call a function every few seconds?

.net framework

calling functions and variables

detect the client's browser

gridview sorting

html control value to an asp.net value

how to differentiate between disposable and non-disposable object?

how to delete file by schedule using asp.net?

imaging / graphics libraries for asp.net

drop down menu control in asp.net

create new user problem...

capture user control output to string

autopostback property

e-commerce catalogue

file download problem

global.asax: is this file triggered every time any page in the website is accessed

  Privacy | Contact Us
All Times Are GMT