How to Configure HTML as an ASPX Mime Type

How to Configure HTML as an ASPX Mime Type thumbnail
Transfer HTML code to .NET.

Hypertext Markup Language (HTML) provides a standard layout from which web browsers are able to display website pages to users. HTML is static, which means it only displays information that does not change according to user input. The ASPX file extension is Microsoft's .NET language, which is dynamic. You can translate your HTML pages to the ASPX MIME type by adding prefixes to each HTML element.

Instructions

    • 1

      Right-click your HTML page and select "Open With." Select "Notepad" from the list of programs. You can also edit these tags in more advanced editors such as Visual Studio.

    • 2

      Find one of your HTML controls. For instance, a button can be converted to an ASPX format. Press your "Ctrl" key and then press the "F" key. In the text box, enter "input" and click "Find." This command runs through your file to find input elements. Find one that has "type='button'" in the tag to convert it to ASPX.

    • 3

      Change the input tag to an ASPX server control. There are several ASPX tags that correspond to HTML tags (see Resources). Enter the following code to convert a button to ASPX:

      <asp:button id="mybutton />

    • 4

      Insert the "runat" property. The runat property directs the server to run the code on the server instead of the client machine. The following completes the tag conversion, which you must do to each HTML element in your file:

      <asp:button id="mybutton runat="server" />

    • 5

      Click "File" and then "Save As." Change the file extension from "HTML" to "ASPX" and click "Save."

Related Searches:

References

Resources

  • Photo Credit computer keyboard image by forca from Fotolia.com

Comments

You May Also Like

  • What Is the File Extension Aspx?

    The ASPX file extension is used to store scripts and source code for web pages. Web servers often generate this file type.

  • HTML Mime Types

    HTML Mime Types. Most modern email applications and browsers support the ability to format your outgoing and incoming email messages into HTML,...

  • Mime Encoding Types

    Mime Encoding Types. HTTP (HyperText Transfer Protocol) is the standard encoding for web pages. Similarly, Internet mail uses SMTP (Simple Mail Transfer...

  • How to Add Controls to an ASPX Page

    ASPX is a page extension within ASP.NET, Microsoft's server-based scripting technology. ASPX is very similar to HTML and can contain HTML, XML...

  • How to Convert HTML to Aspx

    The best way to convert an HTML page to an ASPX page is to create the ASPX file and transfer the HTML...

  • How to Build an ASPX Page

    ASPX is a .NET web page code that delivers HTML to readers. The HTML created by .NET normally comes with a code-behind...

  • How to Host ASPX Pages

    Hosing ASPX files involves the installation and configuration of Internet Information Services (IIS). This server application allows Web hosts to execute the...

  • How to Host File Extensions

    The Multipurpose Internet Mail Extension (MIME) types you configure in your web server tell the server what application is associated with each...

  • How to Add an Assembly to IIS 7

    Comments. You May Also Like. How to Add MIME Types in IIS. Multipurpose Internet Mail Extensions (MIME) types are settings and configurations...

  • How to Add MIME Types

    MIME types enable Web browsers to display files that are not in HTML format. While file extensions are often used in a...

  • How to Open a PDF in an Aspx Page

    A PDF file is a standard, read-only format used to distribute documents to users without giving them the ability to change the...

  • How do I Change ASPX Into a PDF?

    Developed by Microsoft, the .NET Framework gives programmers a set of languages and tools that help them create applications for desktop computers,...

  • What Is MIME Type Association?

    MIME (Multipurpose Internet Mail Exchange) was initially used to provide support for non-ASCII text in e-mail. It also supported non-text attachments and...

  • How to Set MIME Types in IIS 6

    Internet Information Services (IIS) is the Microsoft web host that allows you to host and create websites. The IIS console gives you...

  • How to Display a Word Document in ASP.NET

    ASP.NET is a Web programming language used to create Web applications. The language was developed by Microsoft and is useful when working...

  • How to Configure Email Program to Plain Text

    Email applications such as Outlook and Gmail enable you to compose your email messages with a variety of formats with different colors,...

  • How do I Convert Mime to AVI?

    MIME is a file extension that allows the transfer of non-text documents, such as AVIs or JPEGs, through email. Most email clients...

  • How to Add MIME Types to the Godaddy Web.Config

    Multipurpose Internet Mail Extensions is a specification for displaying file formats. Upon request from a browser, Internet Information Server sends the requested...

  • How to Set the Start Page in Microsoft IIS

    It’s important to set your start page when using Microsoft IIS. This ensures your website visitors have the right homepage. IIS, or...

Related Ads

Featured