분류 전체보기
-
cs 코드로 html value 변경C#(asp.net | asp.net core) 2021. 11. 12. 08:04
c# cs 코드로 html의 value를 변경시키려면 아래와 같이 하면된다. input 태그와 로 시작하는 태그로 예시를 들어보겠다. input 태그인 경우 runat="server" 속성을 넣어준다. cs 코드 WRITER.Value = "Programmer"; input 태그의 id.value 로 값 변경이 가능하다. asp: ... 인 경우 cs 코드 WRITERLB.Text = "Programmer"; id.Text 로 값 변경이 가능하다
-
전세계약 갱신 청구권 | 전세계약 연장일상 2021. 9. 28. 20:41
전세, 매매값이 이렇게 치솟는 지금 임대인을 보호하기 위한 법이 있다 바로 전세계약 갱신 청구권이다 임대인이 계약한 집에 들어온다고 하지 않는 이상 전세계약 갱신 청구권을 1회 사용할 수 있다 임대인이 계약 종료를 요구하는 경우 2020.12.10 이전에 계약을 했다면 계약만료 1개월 ~ 6개월 전에 전세계약 갱신 청구가 가능하다 2020.12.10 이후에 계약을 했다면 계약만료 2개월 ~ 6개월 전에 청구가 가능하다 전세계약 갱신 청구를 하게 되면 전세계약이 2년 연장이 될 뿐 아니라 전세금도 5% 이내로 증가하기 때문에 사용하는 것이 좋다 만약 계약 만료 1개월 이내에 임대인이 계약 종료를 요구하는 경우에는 묵시적 계약 연장에 해당하기 때문에 전세금 증가 없이 자동으로 계약이 연장되게 된다 출처 : ..
-
[PHP] ZipArchive 를 사용하여 압축파일을 만들어보자PHP 2021. 9. 16. 15:42
PHP에서 제공하는 ZipArchive를 사용하여 압축파일을 생성할 수 있다 ZipArchive를 사용하기 전에는 pclzip.lib 를 사용했었는데 pclzip.lib 로는 압축폴더 내에 폴더가 생성이 안 돼서 ZipArchive로 변경하였다 결과적으로 ZipArchive가 속도도 훨씬 빠르고 기능도 잘 정리되어 있어 사용하기 편리했다 코드로 어떻게 사용하는지 살펴보자 1. 압축파일이 저장될 최종 경로 선언하기 $targetZipFile="C:\\archive1.zip"; 2. 압축파일 생성하기 $zip->open(압축파일 저장경로, ZipArchive::CREATE) 를 하게 되면 압축파일이 생성된다 생성이 되었다면 TRUE 를 반환하고 파일이나 폴더를 추가하면 된다 압축파일은 마지막에 $zip->c..
-
Ecplise 실행 java was started but returned exit code=1 오류카테고리 없음 2021. 9. 15. 08:56
Eclipse를 설치 후 실행하려니 아래와 같은 에러가 났다 JVM의 경로를 못찾아서 나는 에러이다 Eclipse가 깔린 폴더에서 eclipse.ini 파일을 메모장으로 열고 -vm C:/Java/OPENJRE8X64/bin/javaw.exe 위 코드를 적어주면 된다 * 참고 https://supiz.tistory.com/27 [Eclipse] java was started but returned exit code=1 오류 출처 : https://stackoverflow.com/questions/18609160/eclipse-returns-error-message-java-was-started-but-returned-exit-code-1 jvm을 찾지 못해 발생하는 에러 이클립스 폴더에서 eclipse...
-
String으로 저장된 날짜를 Date 형식으로 변환하여 DB에 저장하기JAVA 2021. 9. 14. 13:11
String 으로 저장된 날짜를 Date 로 바꿔서 DB에 저장해야 할 때가 있다 아래의 예시로 보자 // String인 날짜 String sourceDate = "2021-09-14"; // 날짜 포맷을 생성하고 LocalDate 형태로 변환한다 DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); LocalDate date = LocalDate.parse(sourceDate, dateTimeFormatter); DB 로 저장할 때는 한번 더 변환이 필요하다 java.sql.Date convertedDate = new java.sql.Date.valueOf(date);
-
cmd에서 C# 프로젝트 실행하는 방법 / error MSB3644: .NETFramework,Version=vN의 참조 어셈블리를 찾을 수 없습니다.C#(asp.net | asp.net core) 2021. 9. 2. 13:03
cmd에서 C# 프로젝트 실행하는 방법 우선 버전에 맞는 SDK가 설치되어 있어야 한다 나는 없이 실행했다가 오류가 나서..... 한참을 찾아 헤맸었다.... 밑에 오류 해결방법이 있으니 참고하시길 바란다 c# 참조한 dll을 포함하여 프로젝트를 cmd에서 실행하고 싶은 경우를 알아보겠다 우선 cmd에서 해당 프로젝트의 Program.cs가 있는 곳까지 이동해야 한다 폴더 이동 명령어 cd 파일 경로 실행하고자하는 프로젝트명을 명령어로 적어준다 dotnet run --project 프로젝트명 실행 오류 error MSB3644: .NETFramework,Version=vN의 참조 어셈블리를 찾을 수 없습니다. C# 프로젝트를 cmd에서 실행하려고 했는데 C:\Program Files\dotnet\sdk\..
-
[C#] Blazor WebAssembly App 프로젝트 생성하기C#(asp.net | asp.net core) 2021. 8. 18. 11:48
ASP.NET Core Razor 구성 요소 | Microsoft Docs 구글 Documet를 참조하여 Blazor WebAssembly App 프로젝트를 생성해보겠다 프로젝트 생성 다음 클릭 후 프로젝트 위치 설정 후 HTTPS에 대한 구성과 프로그레시브 웹 애플리케이션에 체크한다 => 프로젝트 생성 완료 프로젝트가 실행된 모습 한번 만들어보자 1. 솔루션 탐색기에서 Shared 폴더에 Heading.razor 라는 Razor Component 를 생성한다 Razor Componet를 간편하게 사용하기 위해서 3가지 파일을 생성해야한다 중요한 것은 class, css 파일의 이름에 Razor Componet 파일 이름을 포함시켜야한다는 것이다 Razor Componet : html 코드 및 Razor..
-
[C#] Nurrable typeC#(asp.net | asp.net core) 2021. 8. 12. 12:13
Nurrable type 선언 방법 int? num = 10; num = null; WriteLine(num); string? strs = null; WriteLine(strs); 자료형 뒤에 ? 를 붙여주면 Nurrable type 으로 선언할 수 있다 이 변수를 출력해도 Exception이 안 터지고 빈 칸으로 출력이 된다 null일 때 값 할당 보통 null인지 검사하려면 if 문을 사용해서 번거롭게 작업해야하지만 C# 3.0부터 지원하는 간편한 문법이 있다 strs = strs??"HiHi"; ?? : strs가 null 이면 "HiHi"라는 문자열을 strs에 대입한다