Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ramakrishna 12 posts 32 karma points
    Jul 09, 2010 @ 07:05
    Ramakrishna
    0

    Live editing not posible

    Hi,

    I have 2 pages one is act like a master and another one is act like a child

    Prob: I am not able to edit content on "About" template page on canvas editing mode

    please check my code and tell me where i need to modify if  i want to edit <umbraco:item> field on canvas mode.

    My master page:

    <%@ Master Language="C#" AutoEventWireup="true" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">

    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="/css/StyleSheet.css" rel="stylesheet" type="text/css" />
        <link href="/css/menu.css" rel="stylesheet" type="text/css" />
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div align="center">
            <table width="990px" cellpadding="0" cellspacing="0" style="margin: 0;">
                <%--<tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 940px;" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td>
                                    <img src="/images/images/BlueHeaderBand.jpg" width="939px" alt="INFORICA" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>--%>
                <tr style="height: 20px;">
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 938px;" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td align="right" style="line-height: 20px;">
                                    <a href="contactinfo.aspx" style="font-family:Trebuchet MS; font-size:12px;">Contact</a> |&nbsp;<a href="Employee.aspx?" id="A1" title="Employee" style="font-family:Trebuchet MS;font-size:12px;">Employee</a>|&nbsp;<a
                                        href="Help.aspx" style="font-family:Trebuchet MS;font-size:12px;">Help</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 940px;" cellpadding="0"
                            cellspacing="0">
                            <tr style="height: 40px">
                                <td align="left" style="width: 780px">
                                    <table cellpadding="0" cellspacing="0" width="100%">
                                        <tr style="height: 40px;">
                                            <td>
                                                <div id="MainMenu">
                                                    <div id="tab">
                                                        <ul id="ulMenu" runat="server">
                                                            <li id="liAbout" runat="server"><a href="/aboutinfo.aspx"><span>ABOUT</span></a></li>
                                                            <li id="liEntSol" runat="server"><a href="EnterpriseSolution.aspx"><span>ENTERPRISE
                                                                SOLUTIONS</span></a></li>
                                                            <li id="liTech" runat="server"><a href="Technology.aspx"><span>TECHNOLOGY</span></a></li>
                                                            <li id="liConsult" runat="server"><a href="Consulting.aspx"><span>CONSULTING</span></a></li>
                                                            <li id="liIFusion" runat="server"><a href="IFusion.aspx"><span>IFUSION</span></a></li>
                                                            <li id="liClients" runat="server"><a href="Clients.aspx"><span>CLIENTS</span></a></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                    <%--<table cellpadding="0" cellspacing="0">
                                        <tr valign="bottom">
                                            <td class="css1">
                                                <asp:linkbutton id="lnkhome" runat="server" cssclass="menuitem" postbackurl="~/home.aspx">                              
                          <span title="home">
                            home</span>
                                                </asp:linkbutton>
                                            </td>
                                            <td class="css2">
                                            </td>
                                            <td class="css1">
                                                <asp:linkbutton id="lnkcontact" runat="server" cssclass="menuitem" postbackurl="~/contact.aspx">
                          <span title="contact">
                            contact</span>
                                                </asp:linkbutton>
                                            </td>
                                            <td class="css2">
                                            </td>
                                            <td class="css1">
                                                <asp:linkbutton id="lnkcareers" runat="server" cssclass="menuitem" postbackurl="~/careers.aspx">
                        <span title="career">
                            career</span>
                                                </asp:linkbutton>
                                            </td>
                                            <td class="css2">
                                            </td>
                                            <td class="css1">
                                                <asp:linkbutton id="lnkhelp" runat="server" cssclass="menuitem" postbackurl="~/help.aspx">
                          <span title="help">
                            help</span>
                                                </asp:linkbutton>
                                            </td>
                                            <td class="css2">
                                            </td>
                                            <td class="css1">
                                                <asp:linkbutton id="lnkemployee" runat="server" cssclass="menuitem" postbackurl="~/employee.aspx">
                         <span title="employee">
                            employee</span>
                                                </asp:linkbutton>
                                            </td>
                                        </tr>
                                    </table>--%>
                                </td>
                                <td align="right">
                                    <a href="Home.aspx">
                                        <img src="/images/images/inforica_logo.gif" alt="inforica" /></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <%--<tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 940px;" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td>
                                    <table style="margin-left: 20px; margin-right: 20px; width: 938px;" cellpadding="0"
                                        cellspacing="0">
                                        <tr style="height: 30px;">
                                            <td>
                                                <div id="MainMenu">
                                                    <div id="tab">
                                                        <ul>
                                                            <li class="item_active"><a href="/aboutinfo.aspx"><span>ABOUT</span></a></li>
                                                            <li><a href="EnterpriseSolution.aspx"><span>ENTERPRISE SOLUTION</span></a></li>
                                                            <li><a href="Technology.aspx"><span>TECHNOLOGY</span></a></li>
                                                            <li><a href="Consulting.aspx"><span>CONSULTING</span></a></li>
                                                            <li><a href="IFusion.aspx"><span>IFUSION</span></a></li>
                                                            <li><a href="Clients.aspx"><span>CLIENTS</span></a></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            <td align="right">
                           
                        <img src="/images/images/inforica_logo.gif" alt="Inforica" />
                   
                            </td>
                            </tr>
                           
                        </table>
                    </td>
                   
                   
                </tr>--%>
                <%--<tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; margin-top: 15px; width: 940px;">
                            <tr style="width: 940px">
                                <td align="left" style="width: 30%;">
                                    <img src="/images/images/inforica_logo.gif" alt="Inforica" />
                                </td>
                                <td align="right">
                                    <a href="About.aspx" class="menu">ABOUT</a> | <a href="EnterpriseSolution.aspx" class="menu">
                                        ENTERPRISE SOLUTION</a> | <a href="Technology.aspx" class="menu">TECHNOLOGY</a>
                                    | <a href="Consulting.aspx" class="menu">CONSULTING</a> | <a href="IFusion.aspx"
                                        class="menu">IFUSION</a> | <a href="Clients.aspx" class="menu">CLIENTS</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 938px;" cellpadding="0"
                            cellspacing="0">
                            <tr style="width: 938px">
                                <td>
                                    <div align="left">
                                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                                        </asp:ContentPlaceHolder>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="margin-left: 20px; margin-right: 20px; width: 938px;" cellpadding="0"
                            cellspacing="0">
                            <tr style="background-color: #FBDC07; height: 15px">
                                <td colspan="2">
                                </td>
                            </tr>
                            <tr style="background-color: #E9E9E9; height: 50px">
                                <td valign="middle" align="center" colspan="2">
                                    <a href="aboutinfo.aspx" class="a1">ABOUT</a> | <a href="EnterpriseSolution.aspx" class="a1">
                                        ENTERPRISE SOLUTION</a> | <a href="Technology.aspx" class="a1">TECHNOLOGY</a>
                                    | <a href="Consulting.aspx" class="a1">CONSULTING</a> | <a href="IFusion.aspx" class="a1">
                                        IFUSION</a> | <a href="Clients.aspx" class="a1">CLIENTS</a><br />
                                    <span style="font-size: 10px; font-family: Arial; margin-top: 20px">©Copy Rights.All
                                        Rights Reserved</span>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </body>
    </html>

     

     

    Child Page

     

    <%@ Master Language="C#" MasterPageFile="/masterpages/Inforca.master" AutoEventWireup="true" %>
    <script runat="server">
    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                HtmlGenericControl a = (HtmlGenericControl)Master.FindControl("liAbout");
                a.Attributes.Add("class", "item_active");
            }
            EnableDisableTextBoxes();
        }
     private void EnableDisableTextBoxes()
        {
            if (Request.QueryString["uc"] != null)
            {
                int x = Convert.ToInt32(Request.QueryString["uc"]);
                if (x == 5)
                {
                    ucAbout.Visible = false;
                    ucResources.Visible = true;
                }
            }
            //LinkButton lnkHome = (LinkButton)Master.FindControl("lnkHome");
            //lnkHome.CssClass = "homeselected0";
        }
        protected void lnkAboutOverView_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = true;
            ucMethodology.Visible = false;
            ucTeam.Visible = false;
            ucResources.Visible = false;
            ucInfFactor.Visible = false;
            ucCareers.Visible = false;
        }
        protected void lnkOurMethodology_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = false;
            ucMethodology.Visible = true;
            ucTeam.Visible = false;
            ucResources.Visible = false;
            ucInfFactor.Visible = false;
            ucCareers.Visible = false;
        }
        protected void lnkOurTeam_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = false;
            ucMethodology.Visible = false;
            ucTeam.Visible = true;
            ucResources.Visible = false;
            ucInfFactor.Visible = false;
            ucCareers.Visible = false;

        }
        protected void lnkInfFactor_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = false;
            ucMethodology.Visible = false;
            ucTeam.Visible = false;
            ucResources.Visible = false;
            ucInfFactor.Visible = true;
            ucCareers.Visible = false;
        }
        protected void lnkResources_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = false;
            ucMethodology.Visible = false;
            ucTeam.Visible = false;
            ucResources.Visible = true;
            ucInfFactor.Visible = false;
            ucCareers.Visible = false;
        }
        protected void lnkCareers_Click(object sender, EventArgs e)
        {
            ucAbout.Visible = false;
            ucMethodology.Visible = false;
            ucTeam.Visible = false;
            ucResources.Visible = false;
            ucInfFactor.Visible = false;
            ucCareers.Visible = true;
        }
    </script>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <img src="/images/images/Header.jpg" alt="Inforica" width="938px" />
               </td>
            </tr>
        </table>
        <table>
            <tr>
                <td valign="top" align="left">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" align="left">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkAboutOverView" runat="server" CssClass="rightnavpsoftinline"
                                                 OnClick="lnkAboutOverView_Click">OverView</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkOurMethodology" runat="server" CssClass="rightnavpsoftinline"
                                                OnClick="lnkOurMethodology_Click">Our Methodology</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkOurTeam" runat="server" CssClass="rightnavpsoftinline" OnClick="lnkOurTeam_Click">Our Team</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkInfFactor" runat="server" CssClass="rightnavpsoftinline" OnClick="lnkInfFactor_Click">The Inforica Factor</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkResources" runat="server" CssClass="rightnavpsoftinline" OnClick="lnkResources_Click">Resources</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lnkCareers" runat="server" CssClass="rightnavpsoftinline" OnClick="lnkCareers_Click">Careers</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" align="right">
                                <embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
                                    align="9" src="/images/images/wordfloat_psoft.swf" width="168" height="156" type="application/x-shockwave-flash"
                                    bgcolor="#FFFFFF" quality="high"></embed>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 80%; vertical-align: top;">
                   <umbraco:Item field="Aboutustext" runat="server" ID="ucAbout"></umbraco:Item>
                   <umbraco:Item field="AboutOurMethodology" runat="server" ID="ucMethodology" Visible="false"></umbraco:Item>               
                   <umbraco:Item field="AboutOurTeam" runat="server" ID="ucTeam" Visible="false"></umbraco:Item>
                   <umbraco:Item field="AboutTheInforicaFactor" runat="server" ID="ucInfFactor" Visible="false" ></umbraco:Item>
                   <umbraco:Item field="AboutResources" runat="server" ID="ucResources" Visible="false"  ></umbraco:Item>
                   <umbraco:Item field="Careers" runat="server" ID="ucCareers" Visible="false" ></umbraco:Item>
              </td>
            </tr>
        </table>
    </asp:Content>

     

     

    please go through that code and let me know where i need to change

    i want <umbraco:item> as canvas mode editing..

  • Ramakrishna 12 posts 32 karma points
    Jul 09, 2010 @ 07:53
    Ramakrishna
    0

    Why still now one not giving any replay to my post................

    please give me replay its urgent requirement for me..

Please Sign in or register to post replies

Write your reply to:

Draft