Protected void page_load (Object sender, eventargs E)
{
Stringbuilder mystringbuilder = new stringbuilder ();
Webrequest request = webrequest. Create ("http://www.dahuatech.com/news.aspx? Type = 1002 ");
Webresponse response = request. getresponse ();
Streamreader reader = new streamreader (response. getresponsestream (), encoding. getencoding ("UTF-8 "));
Matchcollection titlematchs = RegEx. matches (reader. readtoend (), @ " [\ s] * <a href = "" newsinfo. aspx [?] Id = [\ D] * & type = 1002 ""> ([\ s] *?) </A> ", regexoptions. ignorecase | regexoptions. multiline );
Foreach (match nextmatch in titlematchs)
{
// S + = "<br>" + nextmatch. Groups [1]. Value + nextmatch. Groups [2]. value;
// Tb1.text + = "\ n" + nextmatch. Groups [1]. Value + "\ n" + nextmatch. Groups [2]. value;
Tb1.text + = nextmatch. Groups [1]. value. Trim () + "\ n ";
}
}