zoukankan
html css js c++ java
判断Web服务器是否在线的代码
public
static
bool
isconnect()
{
try
{
HttpWebRequest myHttpWebRequest
=
(HttpWebRequest)WebRequest.Create(
"
http://192.168.0.252/jsfpWebSite/jsfpWebService.asmx
"
);
//
Get the associated response for the above request.
HttpWebResponse myHttpWebResponse
=
(HttpWebResponse)myHttpWebRequest.GetResponse();
myHttpWebResponse.Close();
return
true
;
}
catch
(WebException e)
{
return
false
;
}
}
查看全文
相关阅读:
MVC4中Ajax.BeginForm OnSuccess 不执行以及控制器返回JsonResult 提示下载的原因
string.Equals 比较2个字符串是否相同忽略大小写
[转载]mvc使用JsonResult返回Json数据
[转载]深入理解ASP.NET MVC之ActionResult
[转载]自定义ASP.NET MVC Html辅助方法 TagBuilder
[转载]AOP面向方面编程
[转载]ASP.NET MVC 3的分部视图
适配 iOS尺寸
IOS Bug分析
苹果一些乱七八糟流程整理
原文地址:https://www.cnblogs.com/ahuang1118/p/845772.html
最新文章
Leetcode-Longest Substring with At Most Two Distinct Characters.
Leetcode-Missing Ranges
Leetcode-Word Ladder II
Leetcode-Longest Consecutive Sequence
Leetcode-Palindrome Partitioning II
Leetcode-Candy
Leetcode-Copy List with Random Pointer
android布局属性值fill_parent和match_parent
教你如何实现android上的九点连线锁
关于”点九”
热门文章
Android中android:visibility的3中属性的剖析
requestWindowFeature使用详解
深入研究java.lang.ThreadLocal类
Android异步处理二:使用AsyncTask异步更新UI界面
Android异步处理三:Handler+Looper+MessageQueue深入详解
Android:用Handler实现异步处理功能
用Eclipse编辑AndroidXML文件,配置自动提示。
[转载]C# 中Web.config文件的读取与写入
easyui 使特定tab处于选中状态
MVC 自定义AuthorizeAttribute 实现权限验证
Copyright © 2011-2022 走看看