November Happy Hour will be moved to Thursday December 5th.
Hi Guys,
I have created a property based on a string and overridden the CreateEditControls() method as follows:
public override void CreateEditControls() { ipsvPicker = (IpsvPicker)Page.LoadControl("~/templates/controls/IpsvPicker.ascx"); Controls.Add(ipsvPicker); }
I have also overridden the ApplyEditChanges like this:
public override void ApplyEditChanges() { SetValue(ipsvPicker.GetIpsvDescription()); }
ipsvPicker is a user control that contains a TreeView. GetIpsvDescription returns all the selected nodes as a string.
For some reason, when I first publish the page, GetIpsvDescription() returns "". The second time I publish, everything works correctly.
If anyone could give me any advise as to why this might be, it's be greatly apreciated.
Thanks
Hi Guys,
I have created a property based on a string and overridden the CreateEditControls() method as follows:
public override void CreateEditControls()
{
ipsvPicker = (IpsvPicker)Page.LoadControl("~/templates/controls/IpsvPicker.ascx");
Controls.Add(ipsvPicker);
}
I have also overridden the ApplyEditChanges like this:
public override void ApplyEditChanges()
{
SetValue(ipsvPicker.GetIpsvDescription());
}
ipsvPicker is a user control that contains a TreeView. GetIpsvDescription returns all the selected nodes as a string.
For some reason, when I first publish the page, GetIpsvDescription() returns "". The second time I publish, everything works correctly.
If anyone could give me any advise as to why this might be, it's be greatly apreciated.
Thanks