반응형
Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
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 31
Archives
Today
Total
05-19 00:03
관리 메뉴

ImJay

[ASP.NET] ASP.NET 이란 본문

Web/ASP.NET

[ASP.NET] ASP.NET 이란

ImJay 2023. 7. 6. 13:33
반응형

ASP.NET : 마이크로소프트에서 제작한 오픈소스 웹 어플리케이션 프레임워크

open-source web application framework developed by Microsoft that helps in preparing dynamic web pages.

ASP.NET Core로 최신 웹 UI를 구축하는 방법에는 크게 세 가지가 있습니다.첫 번째는 서버에서 UI를 렌더링하는 앱입니다.두 번째는 브라우저에서 클라이언트의 UI를 렌더링하는 앱입니다.세 번째는 서버 및 클라이언트 UI 렌더링 방법을 모두 활용하는 하이브리드 앱입니다. 예를 들어 대부분의 웹 UI는 서버에서 렌더링되며, 필요한 경우 클라이언트 렌더링된 구성 요소가 추가됩니다.서버 또는 클라이언트에서 UI를 렌더링할 때는 혜택과 단점을 고려해야 합니다.


aspx 
: asp.net 의 확장자, HTML, C# 코드를 포함하는 서버에서 생성된 웹 UI 페이지 ( View from server )

aspx.cs : server-side code in C#

cs : C# source 의 확장자 ( Controller )

cshtml : Razor page 에서 view 를 담당

ASPX files usually will have the UI and will which is usually HTML tags, some ASP.NET server control embed code (which ultimately produce some HTML markups). ASPX.CS file (usually called "code-behind") will have server-side coding in C#. 

If needed, I would relate ASPX page to View and ASPX.CS to Controller action methods.
You have to remember that in webforms, there are ASP.NET controls we will be using in the ASPX file to render some HTML. Examples are TextBox, DataGrid, etc. In MVC, there is nothing called Server control. The View will be pure, handwritten HTML.

 

Webform 으로 프로젝트를 생성할 경우, ASP.NET 컨트롤이 HTML 파일 렌더링을 위해 (서버에서 뷰를 렌더링) aspx 파일이 존재한다.

그러나 MVC로 프로젝트를 생성할 경우 서버 컨트롤이 존재하지 않고 (클라이언트에서 뷰를 렌더링), View 는 순수 HTML로 표현 ( cshtml )

Web forms are contained in files with a ".aspx" extension; these files typically contain static (X)HTML markup, as well as markup defining server-side Web Controls and User Controls where the developers place all the rc content for the Web page. 

 

 

ASP.NET Core UI 선택

어떤 ASP.NET Core 웹 UI 기술을 언제 사용해야 하는지 알아봅니다. 서버, 클라이언트, 하이브리드 옵션을 이해합니다.

learn.microsoft.com

 

 

What is the difference between .aspx and .aspx.cs?

I'm not new to programming but am new to Visual Studio, MVC, C#, ASP.NET, and EXT.NET, i.e. all of the tools I am trying to use. I am trying to create an Ext.Net 2.0 MVC4 project and was given a

stackoverflow.com

 

반응형
Comments