<html>
<head>
<title>ASCIIEncoding GetChars Method</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
string html;
void Page_Load ( ) {
ASCIIEncoding AE = new ASCIIEncoding ( );
byte [ ] alphabetArray = { 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90 };
char [ ] charsArray = AE.GetChars ( alphabetArray );
html += "<blockquote>";
for ( int x = 0; x <= charsArray.Length - 1; x++ ) {
html += charsArray [ x ];
}
html += "</blockquote>";
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h3>ASCIIEncoding GetChars Method</h3></div>
<hr size=1 width=92%>
<div><%= html %></div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>