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

  1. <%@ Page Language="VB" %>  
  2. <script runat="server">  
  3. Sub Page_Load(sender As Object, e As EventArgs)  
  4. Session.CodePage = "932"  
  5. Me.lblText1.Text = "本的味"  
  6. End Sub  
  7. </script>  
  8. <html>  
  9. <head>  
  10. <title>ShotDev.Com Tutorial</title>  
  11. </head>  
  12. <body>  
  13. <form runat="server">  
  14. <asp:Label id="lblText1" runat="server"></asp:Label><br />  
  15. </form>  
  16. </body>  
  17. </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.