Simple beginner questions

Discussion in 'ASP .Net' started by Dave, Aug 9, 2004.

  1. Dave

    Dave Guest

    I created a C# ASP.Net project in Visual Studio 2003 called CS1.

    When I navigate to http://localhost/CS1/webform1.aspx, my new ASP.Net web page displays fine.

    But I want to rename the page to default.aspx and make it the home page for http://localhost.

    When I rename the page from "webform1" to "default", not all of the code in the changes. For example, the name changes from "webform1.aspx.cs" to "default.aspx.cs" but the public class remains "public class webform1." "Default" is a keyword so I cannot change the name of the class mannually. So I just leave it as is. What kind of problems can this cause if my naming is not consistent within a page?

    Also, how do I "publish" my changes from the CS1 project to the home directory? Or maybe a better question is: How do I create a "default" or "root" project in Visual Studio .Net?

    Dave, Aug 9, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.