0

I have made 3 tabs in an aspx page using asp.net multiview control with menu control. I have 2 people editor controls in the 1st tab and the 3rd tab. When I enter my username name in first tab and go back to third tab and again come to first tab the people picker loses value.

How can I retain the values in the peoplepicker?

Erik Philips
  • 53,428
  • 11
  • 128
  • 150
S. Majhi
  • 35
  • 1
  • 5
  • 1
    I'm not sure, but I believe the multiview control does not keep its state when changing view. You may try either with Ajaxcontrol toolkit's tab control, or a pure client side jQuery's Tab plugin (I use this plugin a lot in my sharepoint apps). – Steve B Dec 12 '12 at 08:22

1 Answers1

0

You can make use of hiddenfields if you don't mind using it, take 2 hiddenfields along with your 2 people editor controls. When tab is changed, set value of people editor in specific hidden field, and in page load check for both the hiddenfields value, if hidden field is not null, set hidden field value in specific people editor.

Thanks.

Amit Thakkar
  • 356
  • 2
  • 6