본문 바로가기

Programming/ASP.NET

(22)
[ASP.NET] Repeater와 ClientID ItemCreated안에서 해당 item은 controls collection 에 포함되지 않았기 때문에 parent controls 를 알 수 없다. 그러므로 ItemDataBound 사용해야하는데 postback에서만 발생하기때문에 rebound되지 않는다. rebound도 사용하려면 PreRender를 사용한다. protected void rptPassengerList_ItemDataBound(object sender, RepeaterItemEventArgs e) { DropDownList cboSubForeignYn = e.Item.FindControl("cboSubForeignYn") as DropDownList; TextBox textSubForeignName = e.Item.FindContr..
[ASP.NET] DLL 버전 오류 해결법 DLL 버전 오류 해결법1. 프로젝트 탐색기에서 [모든파일표시] 클릭2. obj와 bin 폴더 삭제3. 솔루션 정리 및 다시 빌드
[ASP.NET] 마스터페이지에서 본 페이지 주소 확인 방법 마스터페이지에서 본 페이지 주소 확인 방법if(Page.Request.Path.Contains("bookings.aspx")){class = "active";}
[ASP.NET] TextBox 에서 ReadOnly 속성 추가 Net 2.0 부터는 TextBox 의 속성인 ReadOnly = true 적용을 하면 서버에서 해당 데이터를 못 읽는 문제가 발생한다. 해결방법은 다음과 같다. 해당 컨트롤의 ReadOnly 속성을 제거하고 C#에서 컨트롤명.Attributes.Add("ReadOnly", "ReadOnly"); 을 추가하면 된다.
[Devextreme, MS] WCF 서버 오류 설정 1. WCF 서비스와 클라이언트를 같은 PC에서 localhost로 접속시에는 문제가 생기지 않지만, WCF 서비스를 서버에 등록하고 클라이언트에서 접속하면 두 가지 오류가 생긴다. 1.1 WCF 접근 파일 IUSR 권한 추가 1.2 로컬PC에서 서버로 접속 할 경우 http://localhost -> 아이피로 변경 (참고 : https://msdn.microsoft.com/ko-kr/library/aa702636(v=vs.110).aspx )
[ASP.NET] Bind index 1. GridVIew 1.1 Container.DataItemIndex 2. DataGrid 2.1 Container.DataSetIndex 3. Repeater 3.1 Container.ItemIndex 4. DataList 4.1 Container.ItemIndex
[ASP.NET] FindControl 1. 마스터페이지가 있는 웹폼인 경우 ContentPlaceHolder 변수명 = (ContentPlaceHolder)this.Master.FindControl("placeholder값");((ASPxDateEdit)변수명.FindControl("컨트롤ID")).Date
[ASP.NET] TextBox 문제 1. TextMode="Password" 일경우 Postback 시 값이 초기화 된다. 1.1 해결 방법 textPassword.Attributes.Add("value", textPassword.Text); 2. 크롬은 자동완성 기능이 설정되어 있다. 2.1 해결 방법