摘要: 主程序代码: // 由主机域名获得其IP地址 protected void btnShowLocal_Click(object sender, EventArgs e) { txtaShowAnswer.Value = ""; string strShowAnwser = string.Empty; string strHostName = Dns.GetHostName(); //获取本地主机名 strShowAnwser = "The local host's name is: " + strHostName + "/n" 阅读全文
posted @ 2010-01-24 21:15 程序员天下 阅读(307) 评论(0) 推荐(0) 编辑