我试着去获得页面的源代码,但一些网页即时通讯无法使用无法得到页面ASPX源代码的网页
这里通过C#代码即时获取源代码是我的代码
private void button1_Click(object sender, EventArgs e)
{
using (var client = new WebClient())
{
string html = client.DownloadString("http://www.acusports.com/roster.aspx?roster=154&path=baseball");
html = textBox1.Text;
}
}
你面临什么问题? –
@sethflowers im在html中获取空值 – sam
@KadeKM无法获取写入文本框的源代码。 – sam