Hello sir,
I need to create a ASP.NET Website. What are the basic steps in involving in that? I know to create forms, asp page? But i dont know the initial things.

Dani AI

Generated

Following 's question about importing HTML templates into Visual Studio 2008 and building basic pages (login, register, home), and noting the brief replies from and , a concise workflow and practical tips are provided to get a working site quickly.

Decide project type first: a Web Site (no .csproj, pages compiled on demand) or a Web Application (uses .csproj, compiles to assemblies — preferred for source control and explicit builds). Import template files by copying them into the project folder and then using Solution Explorer's "Show All Files" + "Include In Project" or "Add Existing Item". Preserve CSS, images and script folders so relative paths keep working.

Convert the common layout (header, nav, footer) into an ASP.NET Master Page and replace the main content area with a ContentPlaceHolder. Create Default.aspx, Login.aspx and Register.aspx that reference the master page so the template applies site-wide. Example skeletons:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="_Site" %>
<html>
<head runat="server">
  <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
  <link href="styles/site.css" rel="stylesheet" />
</head>
<body>
  <form id="form1" runat="server">
    <div id="header">...header HTML from template...</div>
    <asp:ContentPlaceHolder ID="MainContent" runat="server" />
    <div id="footer">...footer HTML...</div>
  </form>
</body>
</html>
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <h1>Home</h1>
</asp:Content>

For authentication, the built-in Login and CreateUserWizard controls plus the ASP.NET Membership provider are the quickest route. To use the SQL membership schema, run aspnet_regsql.exe to create the required tables in a SQL Server database and configure the membership section in web.config. If custom auth is chosen, store passwords salted+hashed, use parameterized queries, validate input, and require TLS for auth pages. Test locally with Visual Studio's development server; for production follow 's point to host under IIS and verify app pool, .NET version and folder permissions. For step-by-step walkthroughs, official ASP.NET/MSDN guides provide complete examples as recommended.

Recommended Answers

All 3 Replies

set up IIS
make site
deploy site

Hello sir,
I am using Visual Studio 2008. In that platform only i am developing ASP.NET Website.
What i need is, i am having templates from which i need my website to be developed. How to include that templates into VS2008.
And i need only basic pages such as login, register, and home pages.
Pls do help me in this.
Thanks in advance.

Sounds like, sir, that you need more than a Forum. A specific item can certainly be addressed, but you really can't expect to learn how to create websites from a forum. May I suggest this link a starting point?

commented: Good recommedation considering the nature of the request... +14
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.