——此文章摘自《ASPNET网络数据库开发实例精解》定价¥ 特价¥ 详细>>http://tracklinktechcn/?m_id=dangdang&a_id=A&l=&l_type= width= height= border= nosave> FileStream fileStream = new FileStream(ServerMapPath(myNewFiledat) FileModeOpenOrCreate); BinaryWriter writer = new BinaryWriter(fileStream); writerWrite(recDatarecDataLength ); //关闭写文件流 fileStreamClose(); writerClose(); //关闭接收数据的Socket hostSocketShutdown(SocketShutdownReceive); hostSocketClose(); } 运行效果 设置页面MySocketaspx为应用程序的起始页面按F键运行出现如图所示的初始界面 http://developcsaicn/dotnet_ASP/images/jpg> 图 页面MySocketaspx的初始界面 right>[http://developcsaicn/dotnet_ASP/htm>] [http://developcsaicn/dotnet_ASP/htm>] [http://developcsaicn/dotnet_ASP/htm>] [] |