You must Sign In to post a response.
  • Category: HTML

    Convert HTML into .aspx

    Hello All,

    I have a very basic ASP.Net query.

    I have got a web design template in .HTML format. I want to convert that into .Aspx format and then add to my ASP.Net project and start coding that.

    Can some body tell me the basic steps to do this.

    Thanx in Advance
  • #152631
    step 1. Convert Html page into .aspx. for example you have index.html, open that with dreamweaver and save as index.aspx.

    step 2. open ASP.NET web site. put that file into that folder.

    step 3. After putting this, right click folder, you will sub menu that menu choose Add New Item. After that the new dialog box will be opend. then choose class file. if you use C#, change that name as index.aspx.cs and finally press OK.

    step 4. In that class file, change the following

    public partial class _index : System.Web.UI.age


    step 5. Now go to index.aspx, bottom of that page, there will be source, if your press that you will get html content

    step 6. Write the following coding at top of that source

    <%@ Page Language="C#" AutoEventWrireUp="true" CodeFile = "~/index.aspx.cs" Inherits="_index" %>

    step 7. Finally save that file and close entire web application.

    Step 8. Now you can open that web application

    Step 9. After openning, press F5, the page will be executed.

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.