Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Everybody,I am doing a simple website project using C# asp.net with using a template.Now I am working on the MasterPage.master, but still I am not able to configure it with the tools of toolbox, even I edit the template, but not the tools and still don't get the desireable result.So please help me what I need to do and what is the right way to getting the desire result.Here's below is the code of MasterPage:

XML
<%@ 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>Online Shopping</title>
    <link rel="Stylesheet" type="text/css" href="App_Themes/E_commerce/style.css" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main_container">
        <div class="top_bar">
        </div>
        <div id="header">
            <div id="logo">
                <a href="#">
                    <img src="images/logo.png" alt="" border="0" width="237" height="140" /></a>
            </div>
            <div class="oferte_content">
                <div class="top_divider">
                    <img src="images/header_divider.png" alt="" width="1" height="164" /></div>
                <div class="oferta">
                    <div class="oferta_content">
                        <img src="images/laptop.png" width="94" height="92" alt="" border="0" class="oferta_img" />
                        <div class="oferta_details">
                            <div class="oferta_title">
                                Samsung GX 2004 LM</div>
                            <div class="oferta_text">
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                                incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
                                exercitation ullamco
                            </div>
                            &nbsp;</div>
                    </div>
                </div>
                <div class="top_divider">
                    <img src="images/header_divider.png" alt="" width="1" height="164" /></div>
            </div>
            <!-- end of oferte_content-->
        </div>
        <div id="main_content">
            <div id="menu_tab">
                <div class="left_menu_corner">
                </div>
                <ul class="menu">
                    <li><a href="#" class="nav1">Home</a></li>
                    <li class="divider"></li>
                    <li><a href="#" class="nav4">My account</a></li>
                    <li class="divider"></li>
                    <li><a href="#" class="nav4">Sign Up</a></li>
                    <li class="divider"></li>
                    <li><a href="contact.html" class="nav6">Contact Us</a></li>
                    <li class="divider"></li>
                </ul>
                <div class="right_menu_corner">
                </div>
            </div>
            <!-- end of menu tab -->
            <div class="left_content">
                <div class="title_box">
                   All Categories..<br />
                </div>
                <div class="border_box">
                    <br />
                    <asp:ContentPlaceHolder ID="Left" runat="server">

                    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%#Eval("Name") %>' NavigateUrl= >HyperLink</asp:HyperLink>
                    </ItemTemplate>
                    </asp:Repeater>
                    <br />
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
                        SelectMethod="GetAll" TypeName="BusinessLogic.CategoriesBL"></asp:ObjectDataSource>
                     </asp:ContentPlaceHolder>

                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                </div>
            </div>
            <!-- end of left content -->
            <div class="center_content" style="height: auto">
                <asp:ContentPlaceHolder ID="Center" runat="server">
                </asp:ContentPlaceHolder>

            </div>
            <!-- end of center content -->
            <!-- end of right content -->
        </div>
        <!-- end of main content -->
        <div class="footer">
            <div class="left_footer">
                &nbsp;</div>
            <div class="center_footer">
                Template name. All Rights Reserved 2008<br />
                <br />
                &nbsp;</div>
            <div class="right_footer">
                <a href="#">home</a> <a href="#">about</a> <a href="#">sitemap</a> <a href="#">rss</a>
                <a href="contact.html">contact us</a>
            </div>
        </div>
    </div>
    </form>
</body>
</html>


Actually it seems me Repeater and ObjectDataSource does not configure in a right manner.So Please Help me how I need to do it.
Posted
Updated 24-Sep-14 2:22am
v2

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