This topic describes how to use C1QRCode control in an ASP.NET application and configure it.
Complete the following steps to create an ASP.Net application and add a QRCode control to your Web Form.
Complete the following steps to generate the QRCode:
Set the Text property within the <cc1:C1QRCode> tag to generate the QRCode.
| Source View |
Copy Code
|
|---|---|
<cc1:C1QRCode ID="C1QRCode1" runat="server" Text="QRCode Sample Text" /> |
|
Add the following code to the Page_Load event to add text and generate the QRCode.
| C# |
Copy Code
|
|---|---|
C1QRCode1.Text = "QRCode Sample Text";
|
|
| VB |
Copy Code
|
|---|---|
C1QRCode1.Text = "QRCode Sample Text"
|
|
When you run your application, the text that you added to the Text property is encoded into the QRCode.

When you scan this QRCode using any QRCode reader on a smartphone or any other device, it decodes the text "QRCode Sample Text".