분류 전체보기 (4558) 썸네일형 리스트형 potentially dangerous Request.Form value was detected 에러일 경우 MVC에선 폼에 html을 넘겨서 디비에 저장해야 할경우 위의 같은 에러가 납니다. 어떻게 해야할까요 ? 답은 Action Method에 아래의 Attribute 를 삽입해 주면 됩니다. ValidateInput(false) C# - 원본 파일의 공백/라인을 유지한 체 XML 파일을 저장하는 방법 http://blog.naver.com/techshare/100151160015 위의 글에서 퍼온겁니다. 아는 분과 이야기를 하다가, 그 분은 XML 파일로 설정 저장을 하는 것이 싫어서 "Key=Value" 형식의 포맷으로 저장하는 간단한 라이브러리를 사용한다고 하십니다. ^^ XML 이 싫은 이유인 즉, 저장하면서 기존 파일에 있던 공백/라인 형식이 모두 제거되고 다시 정렬되기 때문이라고 했습니다. 아하~~~ 아직도 모르고 계셨군요. ^^ 예를 들어, 다음과 같은 문서를 로드한 경우, 1 XmlDocument 로 Load/Save 를 하면 기본적으로는 다음과 같이 저장됩니다. 5 사용자가 멋있게(?) 포맷팅 해 둔 텍스트 파일의 형식이 날아가 버린 것입니다. 이를 방지하려면 다음과 같이 Load 이전.. supportedRuntime 옵션과 System.BadImageFormatExceptionsupportedRuntime 옵션과 System.BadImageFormatException [출처] supportedRuntime 옵션과 System.BadImageFormatException 예외|작성자 techshare supportedRuntime 옵션과 System.BadImageF.. http://blog.naver.com/techshare/100151158445 위의 글을 퍼온겁니다. 최근에 다음과 같은 오류를 만났습니다. Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'ConsoleApplication1.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. File name: 'ConsoleApplication1.exe' 머리로는 BadImageFormatException 이 x86/x64 의 불일치.. input file 디자인 입히기 업무중에 파일 업로드를 할경우가 있었는데 코딩된 디자인을 입히려는데 난해했다. 어떻게 할수 있을까 ? 검색을 한결과 좋은 것을 하나 발견하게 됐다. http://www.quirksmode.org/dom/inputfile.html 위의 사이트에서 보면 스타일을 써서 fiel 컨트롤을 밑에다 그리고 그 위에다가 이미지를 입히는 형식으로 되어있었다. 간단한 코드 예제를 보겠다. 먼저 css파일에 다음과 같은 스탕일을 정의한다. div.fileinputs {position: relative; height: 30px; width: 400px; } input.file {margin: 0; width: 400px; } input.file.hidden {position: relative; text-align: righ.. Mail보낼때 이미지 삽입하기 MailMessage Mail = new MailMessage(); Mail.From = new MailAddress("balaji.birajdar@bogusdomain.com"); Mail.To.Add("balaji.birajdar@bogusdomain.com"); Mail.Subject = "This is Image Test."; Mail.Body = "This is the body of the email"; LinkedResource LinkedImage = new LinkedResource(@"J:\My Documents\Advika1.jpg"); LinkedImage.ContentId = "MyPic"; AlternateView htmlView = AlternateView.CreateAltern.. Nested Elements 선택하기 … … … … 위의 코드가 있다가 가정합니다. 이때 emailContainer에 있는 panel들을 가져올때 방법중 하나를 소개하고자 합니다. var emailDiv = $('#emailContainer'); 위와 같이 emailContainer 요소를 가져옵니다. 그다음 Jquery의 find()메서드를 사용하여 아래와 같이 합니다. var panels = emailDiv.find('div.panel'); 두번째 방법은 아래와 같이 context 안에 값을 가져오는 방법입니다. var panels = $('div.panel', emailDiv); 참 여러가지 방법이 있네요 웹 브라우저에서 Flash만 빼고 다른 ActiveX 를 차단할 수 있을까? 아래와 같은 질문이 있었습니다. IWebBrowser2를 통해 웹컨트롤을 만들 때 특정 ActiveX만 허용하고 차단하는 방법이 있을까요? ; http://social.msdn.microsoft.com/Forums/ko-KR/visualcplusko/thread/82468d1f-fd2b-45d0-8b0e-4bc75af1d06b 질문자의 말대로, 웹 브라우저를 사용자 정의해서 DLCTL_NO_DLACTIVEXCTLS | DLCTL_NO_RUNACTIVEXCTLS 플래그를 설정해주면 IE Web Browser 컨트롤에서 활성화되는 모든 ActiveX를 비활성화 시킬수 있습니다. 하지만, "Flash" 만 허용하고 - 즉, 특정 ActiveX 만 허용하고 다른 컨트롤을 차단하는 기능은 없습니다. 그래도... .. Crash덤프만들고 디버깅하기 Article ID: 892277 - Last Review: May 18, 2007 - Revision: 2.4Troubleshooting ASP.NET using WinDbg and the SOS extensionView products that this article applies to.ASP .NET Support Voice ColumnTroubleshooting ASP.NET using WinDbg and the SOS extensionTo customize this column to your needs, we want to invite you to submit your ideas about topics that interest you and issues that you want to see ad.. 이전 1 ··· 540 541 542 543 544 545 546 ··· 570 다음