Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoView Class : LoadView Method |
GoView
serialized in the GetSessionViewsTable.Generally you will want to copy all of your fields from the saved view to this view. Remember to call the base method first. You will also be overriding the GetObjectData method and defining your own deserialization constructor. See the example code in the description for GetObjectData.
The event handlers associated with events on this view are not restored. Thus you will need to re-establish event handlers for the view in the Page's Init or Load event:
protected override void OnLoad(EventArgs evt) { // handling the Page's Load event base.OnLoad(evt); MyView.SessionStarted += new EventHandler(InitializeDocument); MyView.LinkCreated += new GoSelectionEventHandler(LinkDrawn); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2