ComponentOne AutoComplete for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1QRCode Namespace / C1QRCode Class / EncodingException Property
Example

In This Topic
    EncodingException Property (C1QRCode)
    In This Topic
    Gets the System.Exception that prevented the Text from being encoded.
    Syntax
    'Declaration
     
    Public ReadOnly Property EncodingException As System.Exception
    public System.Exception EncodingException {get;}
    Remarks

    The C1QRCode control can be used to encode up to 652 digits, or 395 alphanumeric characters (uppercase only), or 271 bytes.

    If these limits are exceeded, or if any of the control properties is set to values that prevent the content of the Text property from being encoded, the control remains blank, and the EncodingException property contains details that explain why the code could not be generated.

    Example
    The code below sets the Text property and shows a message in case any errors are detected:
    c1QRCode1.Text = textBox1.Text;
    label1.Text = c1QRCode1.EncodingException == null 
      ? string.Empty 
      : c1QRCode1.EncodingException.Message;
    See Also