In this blog entry, we look into the ShieldUI QR Code for ASP.NET. The QR Code component allows encoding of alphanumeric data into a two-dimensional QR Code.
Since the ShieldUI QR code for ASP.NET is a wrapper of the javascript QR component you need to include the references to the CSS and JavaScript resources in the HEAD section of your webpage:
Since the ShieldUI QR code for ASP.NET is a wrapper of the javascript QR component you need to include the references to the CSS and JavaScript resources in the HEAD section of your webpage:
1
2
3
4
5
| <head ><link rel="stylesheet" type="text/css" href="css/shieldui-all.min.css" /><script src="js/jquery-1.9.1.min.js" type="text/javascript">//</script><script src="js/shieldui-all.min.js" type="text/javascript">//</script></head> |
ShieldUI QR Code for ASP.NET
strives to provide a 1:1 correspondence between the client-side api of
the control, and the server-side counterpart. This makes it easy to use
any implementation of a given control, knowing that the APIs are
similar:
1
2
3
4
5
6
7
8
9
| //JavaScript QR demo$("#container").shieldQRcode({ mode: "byte", size: 150, value: "ShieldUI QR Code text", style: { color: "#4EA6DD" }}); |
1
2
3
4
5
| //ASP.NET QR demo<shield:ShieldQRcode ID="ShieldQRcode3" runat="server" Size="150" Value="ShieldUI QR Code text" CssClass="qrcode"> <QRcodeStyle Color="#4EA6DD" /></shield:ShieldQRcode> |
To see the configuration options in action, please refer these online demos.
Няма коментари:
Публикуване на коментар