[英]How to access controls on a master page dynamically from another user control, if the web application has nested master page
[英]Access the controls from a web page
我想訪問外部網頁上的內容(控件)
您可以基於WebClient使用此代碼
System.Net.WebClient wc = new System.Net.WebClient();
byte[] raw = wc.DownloadData("http://nccptrai.gov.in/nccpregistry/saveSearchSub.misc");
//it's also possible to use DownloadString
string webData = System.Text.Encoding.UTF8.GetString(raw);
因此,您可以解析webData以獲得所需的值
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.