Our "Run Example" tool displays the ASP.NET code and the HTML output simultaneously.
Click on the "Run Example" button to see how it works:
<html>
<body>
<h1>Hello Web Pages</h1>
<p>The time is
@DateTime.Now</p>
</body>
</html>
Run Example »
Web Pages is one of many programming models for creating ASP.NET web sites and web applications.
Web Pages provides an easy way to combine HTML, CSS, and server code:
In addition, Web Pages applications are easily extendable with programmable helpers for databases, videos, graphics, social networking and more.
If you are new to ASP.NET, Web Pages is a perfect place to start.
In this Web Pages tutorial you will learn how to combine HTML, CSS, JavaScript and server code, using server code written in VB or C# .
You will also learn how to extend your web pages with programmable Web Helpers.
Learn by examples!
Because ASP.NET code is executed on the server, you cannot view the code in your browser. You will only see the output as plain HTML.
At 91xjr every example displays the hidden ASP.NET code. This makes it easier for you to understand how it works.
At the end of this tutorial you will find a complete set of ASP.NET references with objects, components, properties and methods.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!