我試圖要求用戶在運行搜索查詢之前在五個文本框中的至少一個文本框中輸入數據。 。在搜索頁面上至少需要一個文本框中的數據
我得到約
轉換串的錯誤信息爲布爾 2「運算符‘& &’不能被應用於類型‘字符串’和‘字符串’的操作數」
if (txtLoginName.Text=String.Empty && txtDisplayName.Text = String.Empty && txtCode.Text = String.Empty && txtEmailAddress.Text = String.Empty && txtName.Text = String.Empty) { lblErrorMessage.Text = "At least one search criteria is required."; return; }
奏效。謝謝! – 2009-08-26 15:02:50
打敗我吧! ;) – ZombieSheep 2009-08-26 15:05:39