现.NET socket通信
各位大侠!我遇到一个问题,就是想实,我的前台代码是,
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<br>
</br>
<asp:label id="label" text="命令测试" width="420px" font-name="宋体" font-size="17.5pt" runat="server"/>
<br>
</br>
<asp:label id="label1" text="连接服务" runat="server"/>
<input name="Btnprint" type="button" id="Button1" value="启动" onclick=" btStart_Click
" style="width: 59px">
<input name="Btnprint" type="button" id="Button4" value="停止" onclick=" btClose_Click
" style="width: 59px">
<br>
</br>
<asp:label id="label2" text="发送命令" runat="server"/>
<asp:textbox id="text2" runat="server"/>
<input name="Btnprint" type="button" id="Button2" value="发送" onclick=" btSend_Click
" style="width: 59px">
<br>
</br>
<asp:label id="label3" text="接收命令" runat="server"/>
<asp:textbox id="text3" runat="server"/>
<input name="Btnprint" type="button" id="Button3" value="接收" onclick=" wReceiveMsg
" style="width: 59px">
</div>
</form>
</body>
</html>
<%-- --%>
后台代码不知道怎样写,各位大侠能帮助我吗?谢谢!