现.NET socket通信

succe88 2013-03-18 09:58:44
各位大侠!我遇到一个问题,就是想实,我的前台代码是,
<%@ 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>
<%-- --%>

后台代码不知道怎样写,各位大侠能帮助我吗?谢谢!
...全文
83 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yyl8781697 2013-03-19
  • 打赏
  • 举报
回复
我写的一个c#基于socket的局域网通讯 LZ可以参考下
  • 打赏
  • 举报
回复
引用 3 楼 succe88 的回复:
嗯,谢谢呀, 我看看
.net下的socket 通信示例
succe88 2013-03-19
  • 打赏
  • 举报
回复
嗯,谢谢呀, 我看看
succe88 2013-03-18
  • 打赏
  • 举报
回复
各位大侠!我遇到一个问题,就是想实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> <%-- --%> 后台代码不知道怎样写,各位大侠能帮助我吗?谢谢!

62,266

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧