我写了一段代码如下:
private void button1_Click(object sender, EventArgs e)
{
String url = "http://www.ip.cn/getip.php?action=queryip&ip_url=";
string ip = textBox1.Text.ToString();
WebClient client = new WebClient();
listBox1.Items.Add(client.DownloadString(url + ip));
}结果在listbox里显示,例如某个结果如下:
您查询的IP是:<span class='orange'>61.213.189.80</span>来自:日本哪个高手帮帮忙,帮我把其中的html标记去掉就行了
private void button1_Click(object sender, EventArgs e)
{
String url = "http://www.ip.cn/getip.php?action=queryip&ip_url=";
string ip = textBox1.Text.ToString();
WebClient client = new WebClient();
listBox1.Items.Add(client.DownloadString(url + ip));
}结果在listbox里显示,例如某个结果如下:
您查询的IP是:<span class='orange'>61.213.189.80</span>来自:日本哪个高手帮帮忙,帮我把其中的html标记去掉就行了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货