Which is equivalent to setting php page in asp.net

I am programming php, but I am trying to get into C # asp.net. In php, I can create forms, custom html, etc. Into a separate php file and just includeon the desired page. I understand that asp.net has a main page that allows you to set a template for the entire website, but what if I want some pages to have just a few buttons, and not all? Is there something separate to the main page that can be included on any page that I want? Also, when are its controllers - is it when I use .ascx?

+3
source share
3 answers

There are currently two different approaches to ASP.NET.


ASP.NET WebForms:

(.aspx) (.master). . - , , html, head, body form.

( -) html/logic Web User Controls (.ascx), , "control".

ASP.NET MVC:

-.

View master / html/logic.


, PHP, ASP.NET MVC WebForms, .

+1

. , , , .

+2

Like DuckMasetro. It is said that we can have a basic page concept. This is the easiest way to do it. You can create master pages in Design mode using casting efforts. then Just Use MasterPageFile = "url" is the property in your Webforms Pages Directory at the top of your aspx. page

Primer

Home page documentation in ASP.net

0
source

All Articles