Creating a new web page using WebMatrix IDE

Web hosting Forums and discussions

Forums for Web hosting discussions: If you have any queries or questions related to web hosting services, place them here and get answered by our experts and customers. We invite you to even participate and provide solutions or answers that are known to any queries placed in this forums. We will get answer for all the queries and questions raised here.

Creating a new web page using WebMatrix IDE

0
Creating a Web Page

In WebMatrix, select the Files workspace. This workspace lets you work with files and folders. The left pane shows the file structure of your site.

http://www.hostasp.net/articles/images/webmatrix/webmatrix-fileworkspace-createfile_03_02.png

In the ribbon, click New and then click New File. WebMatrix displays a list of file types.

http://www.hostasp.net/articles/images/webmatrix/webmatrix-filemodule-createfile_03.png

Select CSHTML, and in the Name box, type default.cshtml. A CSHTML page is a special type of page in WebMatrix that can contain the usual contents of a web page, such as HTML and JavaScript code, and that can also contain code for programming web pages. (You'll learn more about CSHTML files later.)

Click OK. WebMatrix creates the page and opens it in the editor. As you can see, this is ordinary HTML markup.

http://www.hostasp.net/articles/images/webmatrix/webmatrix-webpage-edit_03.png

Add title description and content of the page

In the Quick Access Toolbar, click Save. In the ribbon, click Run.

http://www.hostasp.net/articles/images/webmatrix/webmatrix-run-webapplication_03.png

Note: Before you click Run, make sure that the web page you want to run is selected in the navigation pane of the Files workspace. WebMatrix runs the page that's selected, even if you're currently editing a different page. If no page is selected, WebMatrix tries to run the default page for the site (default.cshtml), and if there is no default page, the browser displays an error.


WebMatrix starts web server (IIS Express) that you can use to test pages on your computer.
The page is displayed in your default browser.

http://www.hostasp.net/articles/images/webmatrix/webmatrix-samplewebpage-on-browser_03.png
Tags: #WebMatrix
Technical specialist HostASP
  • There is no reply for this discussion yet
Your Response
Please login first in order for you to submit comments