일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- javascript
- 태그를 입력해 주세요.
- 리포팅서비스
- 윈도우
- 마이크로소프트
- attr()
- DataGrid
- Winform
- MS
- IIS
- jQuery
- 단축키
- ASP
- SSRS
- 이클립스
- 프로시저
- c#
- windows
- Excel
- 엑셀
- replace()
- 윈폼
- microsoft
- 비주얼스튜디오
- oracle
- MSSQL
- 오라클
- aspnet
- CONVERT()
- 자바스크립트
Archives
- Today
- Total
DJ메탈짱™의 Free Style
[ASP.NET] CustomValidator, ErrorMessage 속성 관리 본문
xxx.aspx (server control)
<asp:CustomValidator id="vrfAll" runat="server" ControlToValidate="xmlSEGTYPE" ErrorMessage="MSG_CO_VALID_REQ_01" ClientValidationFunction="segTypeAll" Display="Dynamic"></asp:CustomValidator>
xxx.aspx (javascript)
function segTypeAll(source, arguments) {
var txt = arguments.Value;
// more than two?
var msg = '<%= this.getMessageName("MSG_CO_VALID_REQ_01") %>';
if (txt == '전체') {
$('#vrfAll').text(msg);
arguments.IsValid = false;
} else {
arguments.IsValid = true;
}
}
ErrorMessage에 지정한 값이 아닌 원하는 값을 보여주고자 하는 경우 사용.
'일(job) > MS(Microsoft)' 카테고리의 다른 글
[ASP.NET] dropdownlist, 특정항목선택(selected옵션) (0) | 2015.12.11 |
---|---|
[.NET] 비주얼스튜디오(VS) 차트 (Dundas Chart) - Sample (0) | 2015.12.11 |
datagrid to excel,csv export 할때 오류나는 경우...확인사항 (0) | 2015.12.11 |
[ASP.NET] 관리되는 통합 파이프라인 모드에 적용되지 않는 ASP.NET 설정이 있습니다. (0) | 2015.12.11 |
[ASP.NET] 서버 위치한 pdf파일 저장, download (0) | 2015.12.08 |