Programming/ASP.NET (22) 썸네일형 리스트형 [Visual Studio 2013] 127.0.0.1 실행 오류 127.0.0.1 Bad Request - Invalid HostnameHTTP Error 400. The request hostname is invalid. 해결 방법 관리자모드로 visual studio 2013 실행 후 빌드하여 해당 오류 페이지를 띄운다. 그 후 아래파일의 포트의 localhost를 *으로 수정하면된다. ..\Documents\IISExpress\config\applicationhost.config vs 2013 경우 visual studio 2013을 관리자 권한으로 실행해야 적용됨. [ASP.NET]웹게시 [ASP.NET]웹게시1. 기존 데이터 bin폴더삭제2. 참조의 해당 devexpress.dll들을 로컬 복사 = True로 맞춰야 서버에 바로바로 업데이트된다. 3. 프로젝트 솔루션 탐색기에서 [모든 파일 표시] 후 bin, obj 폴더 삭제4. 프로젝트 정리 후 다시빌드 , 웹 게시 ※web.config 관련(하위 폴더에 web.config가 있을 경우) 웹사이트 생성 후 하위 디렉토리에 게시할 경우 상위 디렉토리와 하위디렉토리 web.config의 module name값이 중복되어서는 안된다.(해당 파일내에서는 중복 허용) 또한, 어셈블리도 똑같아야하며 참조까지 상위 폴더의 참조처럼 똑같이 추가시켜야한다. devexpress의 컴포넌트의 버전은 상위 폴더의 web.config를 우선히 여기므로 같은.. [Bootstrap] Modal 와 Controls $('#content .modal').appendTo('body');// 기본적으로 modal은 body 마지막에 위치한다.// 그래서 form 안쪽으로 연결시켜주지않을경우 해당 postback callback에서 값을 읽지 못한다.// $('#content .modal').appendTo('#formID'); 따라서 해당 form 으로 수정 [DevExpress] ASPxComboBox auto resize int maxLength = 0; if (item["Title"].ToString().Length > maxLength) { maxLength = item["Title"].ToString().Length; } searchDocument.Width = new Unit(maxLength * 0.6, UnitType.Em); [DevExpress] 웹게시 개발 중 : win.config debug="true" 실행 debug모드 웹 게시 : win.config debug="false" 실행 release dll : copy local true 참고 : https://documentation.devexpress.com/#Xaf/CustomDocument3246 [ASP.NET] Control 검색 private Control FindControlRecursive(Control ctrl, string id) { if (ctrl.ID == id) { return ctrl; } foreach (Control child in ctrl.Controls) { Control t = FindControlRecursive(child, id); if (t != null) { Console.WriteLine(child); return t; } } return null; } [DevExpress]GridView GridView 속성 //가져온 데이터소스의 모든 컬럼을 보여줄지(True), 지정한 컬럼만 보여줄지(False) 구분하는 속성AutoGenerrateColumns = "True|False" // Insert시 새로운 줄로 포커스를 맞추는 속성 gird.OptionsNavigation.AutoFocusNewRow = true; [ASP]헤더정보모두표시 For Each strKey In Request.ServerVariables response.write "[[[[[[[[strKey = ]]]]]]]]]]]]" & strKey & vbCrLf response.write "[[[[[[[Request.ServerVariables(strKey) = ]]]]]]]" & Request.ServerVariables(strKey) & vbCrLf Next 이전 1 2 3 다음