最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - getting confused about .aspx and .html - Stack Overflow

programmeradmin2浏览0评论

i am new to asp and i have started learning asp and i am excited about it.

my questions are...

1.what is the main difference between .html and .aspx page?

2.i wanted to know is there any difficulty while it es to apply styles and javascript code to aspx page . till now i have experienced in developing client side applications using html,css,javascript,jquery(static web pages no dynamic data will be loaded). this time i am going to do with .aspx is there any obstacles in making web site beautifully with asp ?

i am new to asp and i have started learning asp and i am excited about it.

my questions are...

1.what is the main difference between .html and .aspx page?

2.i wanted to know is there any difficulty while it es to apply styles and javascript code to aspx page . till now i have experienced in developing client side applications using html,css,javascript,jquery(static web pages no dynamic data will be loaded). this time i am going to do with .aspx is there any obstacles in making web site beautifully with asp ?

Share Improve this question asked Apr 22, 2017 at 18:33 K Kiran kumarK Kiran kumar 1672 gold badges2 silver badges11 bronze badges 2
  • 2 The output of an aspx page is an html page. It's just a way of assembling the content and markup dynamically, on the server side,as opposed to typing it all out beforehand as static html. – Kevin Collins Commented Apr 22, 2017 at 18:53
  • If you are learning ASP.NET, I would steer clear of ASPX and learn MVC/Razor Pages (.cshtml) – phuzi Commented Jul 25, 2022 at 13:10
Add a ment  | 

3 Answers 3

Reset to default 5

HTML Page : A Web page with user interface and content static information that does not go through any server-side processing.

ASPX Page : A Web page with user interface and dynamic content information that is ing from server-side. This type of page will render the HTML content in the browser. ASPX page is dynamic and has server control support.


Is there any difficulty while it es to apply styles and javascript code to aspx?

-- The CSS and JS are applied in the aspx pages in the same way as you do it for HTML. The only difference es when you use Master Page. In that case, you just need to be sure about the id's of the elements as they are dynamically generated

HTML is a Markup language (it defines the page structure)

CSS stands for Cascading Styles Sheets they defines the style of the elements in the page

ASP is a server side programming language (that means that is elaborated by the web server)

Javascript is a clientside programming language (that means that is elaborated by the user's browser)

Basically this is how it works:

Web server process the asp data and then return to the user the HTML result, now the browser can elaborate the html (apply styles from the referred CSS stylesheet, execute Javascript etc.), there is no particular difficulty that other languages doesn't have.

If you want to Know more about Server side languages: https://en.wikipedia/wiki/Server-side_scripting

There is no problem using Asp, you will have the same result because the browser will display the result with HTML and CSS. You can use JavaScript in the same way and you will no have problem in the result.

Asp give more advantages to add functionality to your projects.

So, do not be afraid to learn this language :)

发布评论

评论列表(0)

  1. 暂无评论