The QRCode control has 11 code versions, from 0 to 10. Each code version has a different configuration of the black and white square dots, that the QRCode is composed of. Configuration means the number of black and white dots present in a symbol. The arrangement of the black and white dots is referred to as a module. Starting with version 0 that consists of 21 modules along its height and width, every higher version contains 4 more modules per side.
With a rise in the amount of information to be encoded into the QRCode, higher number of modules are needed in the QRCode, resulting in bigger QRCode symbols. Complete the following steps, to change the code version of the QRCode control.
Set the CodeVersion property within the <cc1:C1QRCode>
tag, to change the code version of the QRCode.
Source View |
Copy Code
|
---|---|
<cc1:C1QRCode ID="C1QRCode1" runat="server" CodeVersion="8" Text="QRCode Sample Text" /> |
Add the following code to the Page_Load event, to set the CodeVersion property in code view.
C# |
Copy Code
|
---|---|
C1QRCode1.CodeVersion = 8; |
VB |
Copy Code
|
---|---|
C1QRCode1.CodeVersion = 8 |
The code version of the QRCode has been changed to 8, adding more modules to the QRCode.