Problem with web part personalization

H

Holysmoke

Hi All,

I am having a tough time in implementing personalization my webpart controls.
It seem none of the approaches (Personalization attribute or IPersonalizable
interface) is not working.

on button click I tried to update the property selectedvalues(see below)
which is never persisted on db. Whenever I reload the page after closing and
reopening the browser, I never see the last value saved.

(Note : Class ProviderControlBase are our standard classes derived from
webcontrol and I hope that is not related to personalization problem)

Partial Public Class BOXICProvider
Inherits Sirti.WebParts.UserControls.ProviderControlBase
Implements Sirti.WebParts.ParameterProviderWP.IParameterProviderControl

<WebBrowsable()> _
<Personalizable(PersonalizationScope.Shared)> _
Public Property SelectedValues() As String
Get
If txtBoxIC.Text Is Nothing Or txtBoxIC.Text.Length < 0 Then
Return String.Empty
Else
Return txtBoxIC.Text
End If
End Get
Set(ByVal value As String)
txtBoxIC.Text = value
End Set
End Property

End Class

Please WebPartManager is declared on master page , WebPartZone and other
controls required for webparts are declared in content page. Is it the cause
of the problem?


TIA,
Holy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top