web 2.0

ASP.NET(vb.net) Session.CodePage() - Session Object

ASP.NET(vb.net) Session.CodePage() - Session Object - Session.CodePage() : For all responses in a session, the Session.CodePage property specifies how strings are encoded in the intrinsic objects. A code page is a character set that can include numbers, punctuation marks, and other glyphs. Codepages are not the same for each language. Some languages, such as Japanese and Hindi, have multibyte characters, while others, such as English and German, only need one byte to represent each character.The CodePage property is read/write.

ShotDev Focus:
- ASP.NET(vb.net) Session.CodePage() - Session Object

Example

AspNetSessionCodePage.aspx

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Session.CodePage = "932"
Me.lblText1.Text = "本的味"
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<asp:Label id="lblText1" runat="server"></asp:Label><br />
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) Session.CodePage() - Session Object
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.