카테고리 없음2019. 10. 16. 10:34

1. OpenJDK 설치

http://jdk.java.net/13/

 

JDK 13.0.1 GA Release

JDK 13.0.1 General-Availability Release Documentation Build 9 (2019/10/6): General Availability These open-source builds are provided under the GNU General Public License, version 2, with the Classpath Exception. Commercial builds of JDK 13.0.1 from Oracle

jdk.java.net

2. jdk 환경 설정

 

다운받은 jdk 를 압축 해제. 이때 압축 해제한 경로는 환경 설정 시 사용.

 

커맨드 창을 띄운 후 아래 명령으로 PATH 추가

 

>set PATH=%PATH%;e:\java\jdk-13.0.1\bin

 

java --version 명령으로 설정 상태 확인

 

>java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

 

위와 같은 오류 발생 시 기존 설치된 Oracle jdk 를 전부 삭제

  • 기존에 설치된 오라클 JDK는 삭제
  • C:\ProgrameData\Oracle 폴더 삭제
  • C:\Windows\System32 나 C:\Windows\SysWOW64 에 있는 java.exe, javaw.exe, javaws.exe 삭제

삭제 후 다시 시도해 보면 아래와 같이 정상적으로 환경 구성이 끝난 것을 확인 가능.

 

>java --version
openjdk 13.0.1 2019-10-15
OpenJDK Runtime Environment (build 13.0.1+9)
OpenJDK 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

Posted by 굥쓰
Study/Javascript & jQuery2019. 6. 13. 12:35

 

https://travistidwell.com/jquery.treeselect.js/
https://github.com/travist/jquery.treeselect.js/blob/master/treeselect.html

https://stackoverflow.com/questions/30212852/how-to-populate-jquery-treeselect-widget/32167935

 

 

Posted by 굥쓰
Study/Vue.js2019. 3. 26. 23:42

vue 라이브러리 추가 

<script src="~/Scripts/vue.min.js"></script> 

html에 뷰 소스 코드 추가

 <h3>VueJS 2 in ASP.NET MVC 5</h3>

<div id="aboutPage">

    {{ message }}

</div>


<script>

    new Vue({

        el: "#aboutPage",

        data: {

            message:"Hello Vue! in About Page"

        }

    });

</script>

 뷰 인스턴스 형식

 new Vue({

   ...

});

뷰 인스턴스 옵션 속성

뷰 인스턴스 옵션 속성은 인스턴스를 생성할 때 재정의할 data, el, template 등의 속성을 의미

이 외에도 template, methods, created등 미리 정의되어 있는 속성을 사용할 수 있음.

뷰 인스턴스 정의


el 속성, data 속성에 message 정의 추가

new Vue()로 인스턴스를 생성


el 속성에 지정한 화면 요소에 인스턴스가 할당

div 화면의 {{message}} 에 data.message 값 치환


Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:52
ActionResult의 Type중 ContentResult를 이용한다

출처 : http://netframework.tistory.com/179
Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:51

엑셀내보내기 기능은 잘되나 단점은 스프레드 시트 생성 기능은 지원 안 하며

Linq To SQL(dbml) 을 사용 하도록 구현 되어 있음.

DataTable 이나 Entity base 모델로 구현되어 있다면 가볍게 패스~

출처 : http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/

Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:48
Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:46
Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:45
출처 : http://openchannel.co.kr/8934996

NET의 System.Net 네임스페이스는 웹 상의 request와 response를 처리하기 위해 WebRequest와 WebResponse라는 클래스를 제공한다.
Posted by 굥쓰
Study/Bookmark2011. 7. 8. 09:44
Posted by 굥쓰
Study/MSDN2011. 7. 8. 09:42
출처 : http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx

 

JavaScriptSerializer.MaxJsonLength Property

Gets or sets the maximum length of JSON strings that are accepted by the JavaScriptSerializer class.

Namespace:  System.Web.Script.Serialization
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
'Declaration

Public Property MaxJsonLength As Integer
	Get
	Set

Property Value

Type: System.Int32
The maximum length of JSON strings. The default is 2097152 characters, which is equivalent to 4 MB of Unicode string data.
Exception Condition
ArgumentOutOfRangeException

The property is set to a value that is less than one.

The value of the MaxJsonLength property applies only when you explicitly create an instance of the JavaScriptSerializer class. Use the jsonSerialization element of the configuration file to set the maximum length for the internal serializer instance that is used by the asynchronous communication layer. For more information about the configuration elements for serialization, see How to: Configure ASP.NET Services in Microsoft Ajax.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Posted by 굥쓰