AuthenticDocumentView.SPSDocument

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Introduction to ASP.NET Server Control for Authentic Browser > How to use Authentic Client Event Functions > Properties >

AuthenticDocumentView.SPSDocument

AuthenticDocumentView.SPSDocument

 

Declaration: XmlDocument SPSDocument

 

Description

Plugin's SPS-Data as XmlDocument. The property can be used to set or retrieve the whole SPS-Data.

Sps data can also be specified by using the SPSDataURL or SPSData property.

This property cannot be set in the Property Browser (non-browsable).

 

Example:

 // Set sps-data using SpsDocument when a New page is loaded

 Public class WebForm1 : System.Web.UI.Page

 {

         protected Altova.Authentic.WebControls.AuthenticDocumentView AuthenticDocumentView1;

         Private void Page_Load(Object sender, System.EventArgs e)

         {

                 try

                 {

                         // load sps-data from file

                         XmlDocument doc = New XmlDocument();

                         doc.Load("http://yourserver.com/SpsFiles/orgchart.sps");

                         // Set sps-data of AuthenticDocumentView

                         AuthenticDocumentView1.SPSDocument = doc;

                 }

                 catch(Exception ex)

                 {

                         // errorhandling

                 }

         }

         ...

 }


© 2019 Altova GmbH