我有這個aspx頁面,它工作一切正常。從後面的代碼關閉瀏覽器 - ASPX
protected void Page_Load(object sender, EventArgs e)
{
string clientID = Request.QueryString["ID"];
string clientName = Request.QueryString["NAME"];
folderSearch(clientID, clientName);
}
public void folderSearch(string clientID, string clientName)
{
SYS.getInfo(searchDBInfo =>
{
string folderPath = searchDBInfo.sPath + "\\" + clientID + " - " + clientName;
if (Directory.Exists(folderPath))
{
Process.Start(folderPath);
}
else
{
Directory.CreateDirectory(folderPath);
Process.Start(folderPath);
}
});
}
我想ASPX運行的瀏覽器窗口來關閉它顯示後直。意味着用戶不應該能夠看到任何瀏覽器正在運行,但它仍然可以在後臺完成其工作。
請幫我傢伙!謝謝。
」意味着用戶不應該能夠看到任何瀏覽器正在運行,但它仍然可以在後臺完成它的工作「 - 呃...你想要一個隱藏的瀏覽器?就是不行。又是:不。如果你想繼續處理*在服務器*:確定;沒問題。另外:您只能在客戶端「關閉」瀏覽器;代碼隱藏發生在服務器上。 – 2013-02-25 10:56:04