Click here to Skip to main content
14,738,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
-i have made 2 web forms in
-now for their UI I have created MasterPage.
-But doesn't know how to set it as start page.
-and how to interact it with the 2 web forms

Please Help,


In Visual Studio,Right click the Website in Solution Explorer -> Property Pages -> Start Options -> Specific Page. There you can set start up page.

For set start page:
1) Goto solution explorer
2) Right click on the page which you want start page.
3) Select "Set As Start Page"

For Interact with two web forms
1)<%@ Page Title="OHD-UserProfile" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="User_Profile.aspx.cs" Inherits="OnlineHelpDesk_User_Profile" %>
2) Change "MasterPageFile" with your "sitemastername.Master" .
3) Replace"ContentPlaceHolderID" of <asp:content> tag of web form with your sitemaster "ContentPlaceHolderID"
xibit89 31-Aug-13 4:11am
what should I write instead of "#unknown" in <asp:Content xmlns:asp line
Thanks7872 31-Aug-13 5:04am
That was added automatically by CP. Refer to updated syntax.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900