1
我有一個提醒,我想只發送用戶在他的第一個條目到網站。條件是在C#中,這就是我使用的代碼。它不發送alret。我該怎麼辦?從C#後端發送腳本到瀏覽器
if ((string)Session["alert"] == null) {
Response.Write("<script type='text/javascript'>alert('WELCOME to the website!\nEnjoy!')</script>");
Session["alert"] = "done";
}