ASP.Net-OOP with C#.pdf


ASP.NET.pdf


Visio-C#-CelToFar.pdf


Visio-OOP.pdf


'프로그래밍 > ASP/ASP.NET' 카테고리의 다른 글

COM (Component Object Model) 기초  (0) 2015.06.09
ASP 기초  (0) 2015.06.09
.NET의 개념  (0) 2015.05.24
Posted by buykiwi

COMa binary standard that enables software components to inter-operate in a networked environment regardless of the language in which they were developed

"local서버에 등록 (that are instantiated with CreateObject)


COM+

- evolution of Microsoft COM and MTS. 

- handles many of the resource management tasks that you previously had to program yourself, such as thread allocation and security. 

- makes your applications more scalable by providing thread pooling, object pooling, and just-in-time object activation

- administrators can deploy and administer COM+ applications through a graphical user interface, or automate administrative tasks using a scripting or programming language. 

- Software developers can use COM+ to visually configure routine component and application behavior, such as security and participation in transactions, and to integrate components into COM+ applications.


Component Services (COM+) consists of the latest version of COM, distributed COM (DCOM), and Microsoft Distributed Transaction Coordinator (DTC), plus additional functionality. With COM+, 

To open COM+, click Start, point to Programs, point to Administrative Tools, and then click Component Services. Component Services is also available in Transaction Integrator (TI) Manager as follows: Start TI Manager and double-click the Component Services folder.

Component Services provides standard application functionality for administration, deployment, security, reliability, and scalability. Component Services simplifies the administrator's work by providing a tool for administering all applications visually through a single user interface.


COM+ contains some enhandced features.
YOu can call com server  in dotnet compoenet.you can not directly communicate with com from dotnet client. You will have to use proxy (Runtime callable wrapper) to communicate between them.
Com and Com+ is considerend unmanaged because they do not contain the assembly meta data.
Com and com+ are binary standard.
Extension of com and com+ component is dll.


DCOM: Distributed-COM. The protocol that enables a COM object to be instantiated on another computer from the one that is using the code (ie. call from a client machine in London, but the code runs on the machine in New York)

ActiveX controlclient side 에서 실행됨


ATL (Active Template Library): a set of template-based C++ classes that let you create small, fast COM objects. It has special support for key COM features, including stock implementations, dual interfaces, standard COM enumerator interfaces, connection points, tear-off interfaces, and ActiveX controls.


Introduction to COM and COM+

The Component Object Model (COM) is a "binary" standard that enables software components to interoperate in a networked environment regardless of the language in which they were developed.

Dividing software into clients and objects enables you to use those clients and objects as building blocks that can be combined and reused in many different ways by many different clients, just as standard building materials can be used to construct many different structures.

COM and COM+ are the key technologies that provide the infrastructure that enables clients and objects to work together. Other key COM concepts include methods, interfaces, classes, references, and components, which build on the foundation of clients and objects.

This section contains:

What is COM?

Microsoft COM (Component Object Model) technology in the Microsoft Windows-family of Operating Systems enables software components to communicate. COM is used by developers to create re-usable software components, link components together to build applications, and take advantage of Windows services. COM objects can be created with a variety of programming languages. Object-oriented languages, such as C++, provide programming mechanisms that simplify the implementation of COM objects. The family of COM technologies includes COM+, Distributed COM (DCOM) and ActiveX® Controls.

Microsoft provides COM interfaces for many Windows application programming interfaces such as Direct Show, Media Foundation, Packaging API, Windows Animation Manager, Windows Portable Devices, and Microsoft Active Directory (AD).

COM is used in applications such as the Microsoft Office Family of products. For example COM OLE technology allows Word documents to dynamically link to data in Excel spreadsheets and COM Automation allows users to build scripts in their applications to perform repetitive tasks or control one application from another.

What is COM+?

COM+ is the name of the COM-based services and technologies first released in Windows 2000. COM+ brought together the technology of COM components and the application host of Microsoft Transaction Server (MTS). COM+ automatically handles programming tasks such as resource pooling, disconnected applications, event publication and subscription and distributed transactions.


'프로그래밍 > ASP/ASP.NET' 카테고리의 다른 글

ASP.NET 기초  (0) 2015.06.16
ASP 기초  (0) 2015.06.09
.NET의 개념  (0) 2015.05.24
Posted by buykiwi

콜렉션: 관련있는 개체들을 모아놓은(배열로) 개체"속성" -->예: Form.controls 속성에는 해당 Form에 포함된 control들이 있다. 

In general terms, a collection is an object used for grouping and managing related objects. For example, every Form has a collection of controls. (You can access this collection through the form's Controls property.) This collection is an object that represents all the controls on that form. It allows you to retrieve a control in the collection by its index, and to loop through the elements of the collection using a For Each...Next Statement (Visual Basic).

A collection can be zero-based or one-based, depending on what its starting index is. The former means that the index of the first item in the collection is 0, and the latter means that it is 1. An example of a zero-based collection is the .NET Framework Controls collection, discussed earlier on this page. The Visual Basic Collection object is an example of a one-based collection.

One-based collections can be more intuitive to Visual Basic users, because the index ranges from 1 through the value of the Count Property (Collection Object), which returns the number of items in a collection. The index of a zero-based collection, by contrast, ranges from 0 through one less than the value of the Count property. This can be appropriate when the index values are offsets from a base value or correspond to members of a zero-based enumeration.

.NET Framework collections are zero-based for the purpose of standardization. The Visual Basic Collection class is one-based for the purpose of compatibility with previous versions.

Index and Key Values

Instances of the Visual Basic Collection class allow you to access an item using either a numeric index or a String key. You can add items to Visual Basic Collection objects either with or without specifying a key. If you add an item without a key, you must use its numeric index to access it.

By contrast, collections such as System.Collections.ArrayList allow only a numeric index. You cannot associate keys with the elements of these collections, unless you construct your own mapping based, for example, on a String array holding the keys.

Adding and Removing Items

Collections also differ in whether or not you can add items to them, and if so, how those items are added. Because the Visual Basic Collection object is a general-purpose programming tool, it is more flexible than some other collections. It has an Add Method (Collection Object) for putting items into the collection and a Remove Method (Collection Object) for taking items out.

Certain specialized collections, on the other hand, do not allow you to add or remove elements using code. For example, the CheckedListBox.CheckedItems property returns a collection of references to items by index, but your code cannot add or remove items from the collection. Only the user can do this — by selecting or clearing the appropriate box in the user interface. Thus there is no Add or Remove method for this collection.


Posted by buykiwi

출처: http://www.taeyo.pe.kr/


- 사용자가 요청한 ASP페이지는 ASP.DLL을 무조건적으로 거치며, ASP.DLL을 통해 해석이 되어진 뒤에 모든 ASP 코드들이 HTML 태그로 바뀌어지고, 사용자에게 건네어지는 것이다.  


예제: HelloWorld.asp

<HTML>
<HEAD><title></title></HEAD>
<BODY>
<% for i = 1 to 10 step 1 %>
   Hello World !<br>
<% next %>
</BODY>
</HTML>


선언 및 생성

1. Dim - 변수를 선언. (예: Dim strName)

2. Set - 개체를 생성. (예: Set rs = Server.CreateObject("ADODB.RecordSet"))

논리 구문

3. IF ~ THEN - 만약 ~ 라면. (조건이 적은 경우)

4. SELECT CASE - 만약 ~ 라면. (조건이 많은 경우)

5. FOR ~ NEXT - 순환하면서 실행. (반복 횟수를 정확하게 알고 있을 때)

6. DO WHILE - 순환하면서 실행. (반복 횟수를 정확하게 알 수 없을 때)

데이터 타입

1. 숫자 서브 타입 정수나 분수, 또는 부동 소수점 등 다섯 개의 타입이 있다.

2. 문자열 서브 타입 텍스트 정보를 보관한다.

3. 날짜 서브 타입 날짜와 시간을 보관하는 데 쓰이는, 미리 정해진 타입이다.

4. 부울린 서브 타입 참, 거짓을 의미하는 TRUE 또는 FALSE 값 중 하나를 가진다.

5. 그 외의 서브 타입 Empty, Null 등을 알아본다.

변환 함수

1. 숫자 서브 타입 관련 CInt, CLng, CByte, CSng, CDbl, CCur, Fix, Int, Abs

2. 문자열 서브 타입 관련 CStr, Asc, AscB, AscW, Chr, ChrB, ChrW

3. 날짜 서브 타입 관련 CDate, DateValue, TimeValue, DateSerial, TimeSerial

4. 부울린 서브 타입         CBool

5. 기타 변환 함수         Hex, Oct, Sgn

문자열 관련 함수

1. UCASE, LCASE 문자열의 내용을 대문자, 소문자로 변환시켜준다.

2. LEN 문자열의 길이를 반환한다.

3. LEFT, RIGHT, MID 문자열의 좌, 우, 중간에서 지정한 만큼의 문자열을 뽑아낸다.

4. INSTR, INSTRREV 해당되는 문자열의 좌측, 우측 위치를 반환한다.

5. LTRIM, RTRIM, TRIM 문자열의 좌측, 우측, 전체의 공백을 제거한다.

6. REPLACE 문자열의 내용중 일부를 다른 문자열로 변경한다.

7. SPLIT 문자열에서 특정 문자열을 기준으로 나누어 배열로 저장한다.문자열 관련 함수


 register.asp

 register_ok.asp

<HTML>

<HEAD>

<TITLE></TITLE></HEAD>

<BODY>

<FORM METHOD=POST ACTION=register_ok.asp>

이름 : <INPUT TYPE=TEXT NAME=txtName><BR>

Email : <INPUT TYPE=TEXT NAME=txtEmail><BR>

전화번호 : <INPUT TYPE=TEXT NAME=txtPhone><BR>

<INPUT TYPE=SUBMIT VALUE='전송'>

</FORM>

</BODY>

</HTML>

<%

DIM strName, strEmail, strPhone

 

strName = Request.Form("txtName")

strEmail = Request.Form("txtEmail")

strPhone = Request.Form("txtPhone")

 

Response.Write "이름 = " & strName & "<BR>"

Response.Write "Email = " & strEmail & "<BR>"

Response.Write "전화 = " & strPhone & "<BR>"

%>


Active Server Pages 개체 모델

1. Request 개체

2. Response 개체

3. Application 개체

Collections:

Contents: A collection of all the items that have been added to the Application object.

StaticObjects: Collection of all the items that have been added to the Application object through <object> tag.

Methods:

Contents.Remove: Deletes the specified item from the Application.Contents collection. 

Contents.RemoveAll: Deletes all the items from the Application.Contents collection.

Lock: Locks the application object so that only one user at a time can modify the values.

UnLock: Unlocks the application object allowing other users to modify application level variables.

Events:

     Application_OnEnd: This event occurs when the IIS is shut down after Session_OnEnd      event. All the variables are destroyed after that.

Application_OnStart: This event occurs when the first .asp page is called after starting the IIS. Application level variables can be declared here.


4. Session 개체

Events:

Session_OnEnd: This event occurs when the session is abandoned or times out for a specific user.

Session_OnStart: Occurs when a new session is started. All the ASP objects are available for you to use. You can define your session wide variables here.


5. Server 개체

1. 페이지가 너무 오래 뜨지 않는 경우를 대비, 한계 시간을 설정한다.

2. 사용자가 전달한 문자열을 HTML 형식으로 변경한다.

3. 사용자가 전달한 문자열을 올바른 URL 문자열의 형식으로 변경한다.

4. 가상 경로(URL)를 서버 컴퓨터의 실제 경로로 변경한다.

5. 다른 페이지로 이동하여 실행 경로를 변경한다.

6. CreateObject 라는 메소드를 사용하여 컴포넌트의 인스턴스를 생성한다.


6. ObjectContext 개체: 트랜잭션을 시작하거나 종료할 때 사용하는 개체, 현재에는 거의 사용하지 않음

7. ASPError 개체: 에러 처리 작업을 위해 ASP 3.0 에서 추가된 개체




'프로그래밍 > ASP/ASP.NET' 카테고리의 다른 글

ASP.NET 기초  (0) 2015.06.16
COM (Component Object Model) 기초  (0) 2015.06.09
.NET의 개념  (0) 2015.05.24
Posted by buykiwi

1. 스크립트 언어: 

    • 프로그래밍 언어의 한 종류로, 하나의 응용 소프트웨어(애플리케이션)를 제어하기 위한 용도로 쓰이는 언어이다.
    • 일반적인 응용 소프트웨어는 컴파일러를 사용하는 언어에 의해 기계어로 번역된 채로 실행되기 때문에, 수정이 빈번하게 발생할 경우에는 수정 후 일일히 컴파일을 다시 해야 된다. 덩치가 큰 프로그램은 컴파일 시간도 몇 시간 단위로 잡아먹는 일이 많은데다, 일일히 컴파일을 다시 하는 것도 상당히 귀찮은 작업이다.
    • 이 때문에 수정이 빈번하게 발생하는 부분은 소스코드를 한줄 한줄 읽어 바로바로 실행하는 인터프리터 방식이 상당히 유리하다. 스크립트 언어는 이런 부분에 사용하기 위해 나온 것으로, 응용 소프트웨어에서 스크립트 언어에 맞는 API를 제공, 응용 소프트웨어와 상호작용하면서 돌아가게 된다.

2. 컴파일 언어와 다른점: 

    • 컴파일 과정을 거치지 않고 실시간으로 텍스트를 분석하며 실행된다. (일부 간단한 컴파일을 지원하는 스크립트 언어도 있다)
    • 코드에 문법 오류가 있을 경우 실행시점에서 발견된다.
    • 컴파일 언어보다 단순하고 쉬운 문법을 사용하는 경우가 많다.
    • 바이너리 컴파일된 언어는 목표로 한 운영체제에서만 실행이 가능하나, 스크립트 언어로 된 코드는 스크립트 엔진이 포팅되어 있는 모든 운영체제에서 실행할 수 있다.
    • 컴파일 언어보다 실행 속도가 느리다. (JIT컴파일 기술의 도입으로 실행속도가 크게 개선된 언어도 있다. JavaScript, ActionScript가 대표적.)
    • 단일 응용프로그램으로 사용되기 보다는 응용프로그램 내에서 특정 역할을 수행하는 경우가 많다.

3. 대표적인 스크립트 언어들:

    • JavaScript
    • ActionScript
    • Perl
    • PHP
    • Python
    • Lua
    • Ruby

[출처] 스크립트 언어|작성자 달맞이


'프로그래밍' 카테고리의 다른 글

프로그래밍 학습의 내용  (0) 2015.05.19
프레임워크(framework)란?  (0) 2015.05.16
Find & Replace  (0) 2015.02.07
구글캘린더에 매년 반복된 음력생일 입력  (1) 2015.01.17
추천사이트  (0) 2012.01.31
Posted by buykiwi

출처: 


XMLHttpRequest: 

- javascript 개제임.

- 브라우저내에서 자바스크립트를 사용하여 HTTP 요청을 가능케 하는 개체임

- 주로 비동기적 통신 (웹페이지를 re-load할 필요가 없음)

- 응답(response)은 주로 xml이나 json 형식임 --> 응답을 parse하여 웹페이지를 "즉시" 갱신한다.

- 즉, "Ajax" 방식으로 통신함. --> jQuery의 Ajax method를 이용하면 더욱 간단해짐.


HttpRequest:

- server-side 개체임.

- 웹서버로 요청된 내용을 담고 있는 개체임.

- 동기적 통신


XMLHttpRequest in a standard javascript object that allows you to make HTTP Requests from the browser in javascript.


HttpRequest is a server side object that represents a request to the server.


In summary - XMLHttpRequest works in the browser, HttpRequest in the web server. They also have completely different roles. XMLHttpRequest is for fetching web resources within the browser. HttpRequest represents an incoming request.


'프로그래밍 > JavaScript' 카테고리의 다른 글

자바스크립트 기초  (0) 2015.05.19
Posted by buykiwi


ASP.Net-OOP with C#.pdf


Posted by buykiwi

.NET > .NET Framework > ASP.NET


.NET의 정의: "XML 웹서비스를 통해 이기종간의 시스템을 통합(SI)하기 위한 플랫폼"

- 웹서비스, 서버, 클라이언트(PC, 모바일, 가전기기), 개발도구(=.NET Framework)) 등등으로 구성됨


.NET Framework란: .NET의 목적을 달성하기 위하여 다양한 기기에서 소비(사용)할 수 있는 웹서비스와 어플리케이션을 개발/구축/실행하게 하는 도구


ASP.NET(2002년):  .NET Framework중 "웹" 어플리케이션 개발 framework

- 다른 웹 어플리케이션 개발 framework의 예: ASP, JSP, PHP 등등

웹 어플리케이션들(회원가입, 게시판, 쇼핑몰등)을 조합하여 최종적으로 하나의 웹사이트가 된다.


One ASP.NET

웹사이트 구축 프레임워크


ASP.NET Web Forms

ASP.NET MVC: HTML 완전제어 가능, 단위테스트 가능

ASP.NET Web Pages: 가장단순, HTML과 서버코드 함께작성

웹서비스 구축 프레임워크

ASP.NET Web API

ASP.NET SignalR





'프로그래밍 > ASP/ASP.NET' 카테고리의 다른 글

ASP.NET 기초  (0) 2015.06.16
COM (Component Object Model) 기초  (0) 2015.06.09
ASP 기초  (0) 2015.06.09
Posted by buykiwi

출처: http://nine01223.blog.me/220346376135

자바 서블릿(Java Servlet)은 자바를 사용하여 웹페이지를 동적으로 생성하는 서버측 프로그램 혹은 그 사양을 말하며, 흔히 "서블릿"이라 불린다. 자바 서블릿은 웹 서버의 성능을 향상하기 위해 사용되는 자바 클래스의 일종이다. 서블릿은 JSP와 비슷한 점이 있지만, JSP가 HTML 문서 안에 Java 코드를 포함하고 있는 반면, 서블릿은 자바 코드 안에 HTML을 포함하고 있다는 차이점이 있다.


자바 서블릿은 자바 EE 사양의 일부분으로, 주로 이 기능을 이용하여 쇼핑몰이나 온라인 뱅킹 등의 다양한 웹 시스템이 구현되고 있다.


비슷한 기술로는 펄 등을 이용한 CGI, PHP를 아파치 웹 서버 프로세스에서 동작하게 하는 mod_php, 마이크로소프트사의 IIS에서 동작하는 ASP 등이 있다. CGI는 요청이 있을 때마다 새로운 프로세스가 생성되어 응답하는 데 비해, 자바 서블릿은 외부 요청마다 프로세스보다 가벼운 스레드로써 응답하므로 보다 가볍다. 또한, 자바 서블릿은 자바로 구현되므로 다양한 플랫폼에서 동작한다.


서버에서 실행되는 작은 프로그램으로서 웹 페이지와 함께 별도의 파일로 보내지는 작은 프로그램인 자바 애플릿의 맥락에서 만들어진 신조어이다

[네이버 지식백과] 서블릿 [servlet] (NEW 경제용어사전, 2006.4.7, 미래와경영)



서블릿이란 쉽게 말해서 자바 코드를 HTML로 변환해주는 기술을 의미합니다.

자바로 코딩을 한 소스를 서블릿 컨테이너(톰캣)에서 돌리기만 하면 HTML로 자동으로 변환이 되어 사용자 눈에 보여집니다.(서블릿 컨테이너를 그냥 번역기라고 생각하시면 됩니다!)

극단적인(?) 예를 들어서 1부터 1000까지 숫자를 주루룩 출력하는 HTML를 만든다고 가정합시다.

자바에서는 for문(반복문)을 돌려서 1000줄을 'out.println(i)'을 써서 출력해버리면 끝인데(소스 3줄이면 됩니다), HTML로 짜려면 1000줄을 일일이 직접 타이핑을 해야만 합니다.

왜냐하면 HTML은 '정적 소스'이기 때문입니다.(쉽게 생각해서 txt 파일이랑 비슷합니다. 내부에 프로그래밍 로직을 포함시킬 수 없습니다. 물론 자바스크립트를 살짝 가미하면 HTML도 '동적 소스'가 될 수 있지만 기본적으로 HTML은 '정적 소스'라고 할 수 있습니다! 그냥 txt 파일과 똑같습니다.)

자바가 제공하는 for문을 이용해서 HTML을 출력하도록 프로그래밍을 하면 엄청난 수고를 덜 수 있습니다!(2시간 노동이 3분으로 줄어듬)

그런데 for문과 같은 반복문은 php나 자바스크립트에서도 똑같이 제공하고 있기 때문에 자바의 특장점은 아니라고 할 수 있습니다.

서블릿이 위대한 이유는 전세계에서 가장 인기가 있고 빵빵한(?) 지원을 받는 강력한 언어인 자바의 모듈(컴포넌트)을 사용해서 웹페이지를 개발할 수 있기 때문입니다!(자바로 짜여진 전세계의 수많은 라이브러리를 활용해서 웹을 개발할 수 있습니다! 트랜잭션 처리, 데이터소스 활용 등 자바 컴포넌트의 범위는 무궁무진합니다.)

그런데 서블릿은 문법이 조금 어렵다는 단점이 있습니다.

'service()', 'doPost()', 'doGet()'과 같이 복잡한 메소드를 구현해야하고, 'out.println("<p>Hello</p>")'와 같이 조금 지저분한 코드를 일일이 작성해야만 하는 번거로움이 있습니다.

그래서 도입이 된 것이 바로 jsp(Java Server Page)입니다.(귀찮은 서블릿 문법 따위는 신경을 쓰지 않고 그냥 HTML 소스 안에 '<%', '%>' 문자만 집어넣고 바로 자바 코드를 쓰면 됩니다! 대단히 직관적입니다.)

개발자가 jsp를 만들어서 실행하면 톰캣이 알아서 서블릿으로 변환을 시켜줍니다.(그리고 서블릿은 다시 HTML로 변환됩니다! 'jsp -> 서블릿 -> HTML'의 3단계 구조이네요.)

'jsp -> 서블릿 -> HTML'과 같은 변환 과정이 가능한 이유는 바로 톰캣, WebSphere와 같은 서블릿 컨테이너 덕분입니다!(서블릿 컨테이너와 WAS는 동일한 개념이라고 보셔도 무방합니다. 정말 서블릿 컨테이너는 훌륭한 번역기라고 할 수 있습니다!)



Posted by buykiwi

2015. 5. 19. 13:53 프로그래밍/C

C 기초정리

외부파일 편입:


자료형:

- 문자형, 정수형, 실수형, 나열형

배열, 구조체

. 배열: "동일한" 자료형의 데이타 여러개를 일괄적으로 처리할 때

. 구조체: "상이한" 자료형의 데이타를 일괄적으로 처리할 때

- 자료형의 변환

클래스, 객체


포인터:

- char *ptr; 의 경우

. 포인터(=주소)변수 ptr에는 메모리 "주소"가 담긴다.

. *ptr 에는 (p에 쓰여진 주소의) "변수"(=변수값 자체)이 있다.

. 따라서 p에 주소 20을 할당하기 위해서는 p=(void *) 20; 라고 해야 함

. 주소연산자 &: ptr=&x; 의 경우 변수x의 주소를 포인터 변수 ptr에 대입한다.

. call-by-reference: 함수를 호출할 때 주소(포인터)를 인자로 넘긴다.

int Func(int *x){ /* --- */}

main(){

int a=10;

Func(&a);

}


변수&상수:


입출력

- 입력

- 출력


제어

- 조건

- 분기

- 반복


연산

- 산술연산

- 논리연산


함수:

- 내장함수

- 사용자 정의 함수



Posted by buykiwi
이전버튼 1 2 이전버튼

블로그 이미지
친절상담 무료견적 정확시공
buykiwi

카테고리

분류 전체보기 (65)
CAD (2)
프로그래밍 (19)
네트워크/보안 (4)
인터넷/웹사이트 (13)
데이타베이스 (0)
운영체제(OS) (6)
마이크로 컨트롤러 (12)
모바일 (0)
게임 (0)
그래픽스/3D (4)
멀티미디어 (0)
사무자동화/PC/IT (3)
기타 (1)

태그목록

Yesterday
Today
Total

달력

 « |  » 2024.9
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함