일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 비주얼스튜디오
- 오라클
- MS
- Excel
- 리포팅서비스
- IIS
- SSRS
- Winform
- windows
- javascript
- attr()
- ASP
- aspnet
- 엑셀
- DataGrid
- 마이크로소프트
- CONVERT()
- 자바스크립트
- 프로시저
- 단축키
- microsoft
- 윈폼
- replace()
- c#
- oracle
- 이클립스
- jQuery
- MSSQL
- 윈도우
- 태그를 입력해 주세요.
- Today
- Total
DJ메탈짱™의 Free Style
기준일 : 2007년12월18일 // 3개월 전 해당월의 시작일this.TextBox1.Text =new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1). AddMonths(-3).ToShortDateString();결과 값 : 2007-09-01 // 현재월의 시작일this.TextBox1.Text =new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).ToShortDateString();결과값 : 2007-12-01
1. Namespace 선언2. StringHTML 메소드 생성3. 실재 사용하는 곳에서 태그가 있는 text를 넣어줌. - StripHTML(inputValue) ; using System.Text.RegularExpressions ; /// /// 2007/12/14 - add by bhchoi /// html 태그를 제거함. /// /// 입력값 /// string public static string StripHTML (string inputString) { return Regex.Replace(inputString,@"",string.Empty); } private void Page_Load(object sender, System.EventArgs e){ string test = StripHTM..
private void Page_Load(object sender, System.EventArgs e){ // 비활성화 되어 있는 컨트롤을 초기화 함. SetControl(this) ;} /// /// 2007/10/30 - add by bhchoi /// 비활성화 되어있는 컨트롤을 초기화 하도록 함. /// /// Control private void SetControl(Control Page) { foreach (Control ctrl in Page.Controls) { if (ctrl is TextBox) { if (((TextBox)(ctrl)).ReadOnly) // ReadOnly = True(필수입력아님)인 Textbox 값을 초기화 함. { ((TextBox)(ctrl)).Text = ""..