FrmRegularExpressionValidator.aspx |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegularExpressionValidator.aspx.cs" Inherits="RegularExpressionValidator" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <html xmlns="http://www.w3.org/1999/xhtml"> |
1. 이메일 : 텍스트박스 <--- ReqularExpressonValidator 컨트롤 추가 완료
2. ReqularExpressonValidator 컨트롤 속성 지정 <
ControlToValidate ="txtEmail" ValidationExpreess="" ErroMessage="에러" />
3. ReqularExpressonValidator --> 디자인모드-> 오른쪽버튼 --> 속상창에서 이벤트 모드 ->
정규식 편집기 이동 설정 완료
4. 위의 페이지를 HTML문서로 작성의 경우(Email체크)
- (WebValidationControl) 폴더 소스 참고 - OR 닷넷코리아 참고 |
'.Net Project > ASP.NET 3.5 Sp1' 카테고리의 다른 글
31장 ASP.NET Validation Control (FrmCustom Validator) (0) | 2009.10.13 |
---|---|
30장 ASP.NET Validation Control (FrmCustom Validator) (0) | 2009.10.13 |
28장 ASP.NET Validation Control (FrmCompare Validator) (0) | 2009.10.13 |
27장 ASP.NET Validation Control (FrmRange Validator) (0) | 2009.10.13 |
26장 ASP.NET Web Validation Control (FrmRequire FieldValidator) (0) | 2009.10.13 |