posts - 134,  comments - 22,  trackbacks - 0

private void Button1_Click(object sender, System.EventArgs e)
  {
   byte[] bb = System.Text.Encoding.Default.GetBytes(TextBox1.Text);

   TextBox2.Text = Convert.ToBase64String(bb);


  }

  private void Button2_Click(object sender, System.EventArgs e)
  {
   byte[] by = Convert.FromBase64String(TextBox2.Text);
   TextBox1.Text = System.Text.Encoding.Default.GetString(by);

posted on 2007-07-05 18:12 TRE-China R&D 阅读(799) 评论(0)  编辑 收藏 引用 所属分类: ASP.NETC#
只有注册用户登录后才能发表评论。