Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    
</head>
<body>
    <form id="form1"  runat="server">
   
    <table style="width: 100%;">
        <tr>
            <td colspan="4">
                <img alt="" height="50px" src="Images/02048_thecliffs_1600x1200.jpg" 
                    width="100%" /></td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="LinkButton1" runat="server">Home
            </td>
            <td>
                <asp:LinkButton ID="LinkButton2" runat="server">Pets
            </td>
            <td>
                <asp:LinkButton ID="LinkButton3" runat="server">register
            </td>
            <td>
                <asp:LinkButton ID="LinkButton4" runat="server">Contact us
            </td>
        </tr>
        <tr>
            <td>
                <asp:TreeView ID="TreeView1" runat="server">
                    <nodes>
                        <asp:TreeNode Text="Home" Value="Home">
                            <asp:TreeNode Text="Pets animals" Value="Pets animals">
                                <asp:TreeNode Text="Big" Value="Big">
                                <asp:TreeNode Text="Small" Value="Small">
                            
                            <asp:TreeNode Text="Bird" Value="Bird">
                                <asp:TreeNode Text="Big" Value="Big">
                                <asp:TreeNode Text="Small" Value="Small">
                            
                        
                    </nodes>
                
            </td>
            <td colspan="3">
                <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        
    </div></td>
        </tr>
    </table>
    </form>
    <table style="width: 100%;">
        <tr>
            <td>
                <img alt="" height="50px" src="Images/01747_inflight_1440x900.jpg" 
                    width="100%" /></td>
        </tr>
    </table>
</body>
</html>

My browser did not show anything. It is my browser error or my .Net framework

when i run this code. In my browser shows
XML
Directory Listing -- /WebSite9/

      Saturday, July 16, 2011 01:26 AM        <dir> Images
      Saturday, July 16, 2011 01:29 AM        2,660 MasterPage.master
      Saturday, July 16, 2011 12:58 AM          290 MasterPage.master.cs
      Saturday, July 16, 2011 01:02 AM          290 web.config

Version Information: ASP.NET Development Server 10.0.0.0


I do not know why it shows this
Posted
Updated 15-Jul-11 11:13am
v3
Comments
[no name] 15-Jul-11 15:54pm    
What error? What problem?
arathi_suresh 15-Jul-11 23:22pm    
Cannot understand..Is there any error?

It's seems you haven't set start-up page. So just right click on default page (which page do you want to show as index page) and set as default page.
 
Share this answer
 
you are for sure doing one of those 2 mistakes :

1-you are trying to view the master page in the browser which is not accepted so try to view the content pages instead.

2-you did not set the startup page so set one of the pages to the default page.

Regards ,
 
Share this answer
 

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