1
我需要驗證使用ListView以分號分隔的電子郵件地址。ASP.NET ListView驗證
例如 [email protected]; [email protected]; [email protected] 等
有沒有辦法,我可以在代碼中使用的背後,我似乎無法得到它的工作無論如何..
我需要驗證使用ListView以分號分隔的電子郵件地址。ASP.NET ListView驗證
例如 [email protected]; [email protected]; [email protected] 等
有沒有辦法,我可以在代碼中使用的背後,我似乎無法得到它的工作無論如何..
放置一個CustomValidator控件。並處理其ServerValidate事件。
參考How to: Validate with a Custom Function for ASP.NET Server Controls
不錯的@akram。謝謝。 – 2011-05-28 10:15:04
在這個意義上使用列表視圖,當用戶選擇在ListView任何項目? – 2011-05-27 13:40:40
我想'ItemUpdating'或'ItemInserting'是你應該檢查的地方。 – 2011-05-27 13:41:28
@kalyan,當用戶編輯或添加新項目時使用ListView。這是我必須檢查電子郵件地址的地方。 – 2011-05-27 21:24:20