joxin

诚信、业绩、创新
posts - 18, comments - 17, trackbacks - 0, articles - 0

2004年11月19日

   Stream str = new MemoryStream();
   string strmContents = "";
   int counter,strLen,strRead;
   str = Request.InputStream;
   strLen = System.Convert.ToInt32(str.Length);
   Byte[] strArr = new Byte[strLen] ;
   strRead = str.Read(strArr,0,strLen);
   for(counter=0;counter<strLen;counter++)
   {
    strmContents = strmContents + strArr[counter].ToString();
   }
    Response.Write(@"<script language=javascript>alert('"+strmContents+"');</script>");
这是一段C#代码,改写msdn上的,代码输出的是一堆数字串。
那么他有什么作用呢?

posted @ 2004-11-19 08:56 昕 阅读(1351) | 评论 (0)编辑