![]() | Call signing functionality |
In host web application on server side you must add code for starting signing process.
Ensure implementation of CreateSignatureSession(CreateSessionRequest)
Check if client browser and OS is supported. If not, disable signing functionality and show user message.
Register javascript to onclick event on Button by method RegisterStartSignatureOnClick(Button, CreateSessionRequest, String, String, String) for starting signing on client.
or
Register javascript method by method RegisterStartSignatureMethod(ClientScriptManager, String, CreateSessionRequest, String, String, String) for starting signing on client.
public partial class SignPdfPage : System.Web.UI.Page { protected async void Page_Load(object sender, EventArgs e) { pdfGridView.DataSource = await _repository.GetDocumentsAsync(); pdfGridView.DataBind(); if (BrowserInfo.Current.IsClientSupported == false) { this.signButton.Enabled = false; this.signingStatus.Text = BrowserInfo.Current.UnsupportedHtml; this.signingStatus.ForeColor = Color.Red; } else { CreateSessionRequest createSessionRequest = new CreateSessionRequest("doc", "my documents ids"); this.signButton.RegisterStartSignatureOnClick(createSessionRequest, this.signingStatus.ClientID); } } }
The content will be added...