![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have custom control with dropdownlist. I am using this custom control in a repeater. After the post-back the control properties that i stored in viewstate does not exist. They are all empty. When, where and how does viewstate get set with custom control? I would have expected that when i return the value of a property using something like the following the viewstate would have existed. Public Property DataTextField() As String Get If CType(ViewState("DataTextField"), Object) Is Nothing Then Return _dataTextField Else Return CType(ViewState("DataTextField"), String) End If End Get Set(ByVal value As String) ViewState("DataTextField") = value Me.DropDownList.DataTextField = value _dataTextField = value End Set End Property Also, i thought the dropdownlist would have maintained it's own state but it did not after postback. Any ideas? thx dave |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |