Static Aspx Page
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/App_MasterPages/layout.Master" CodeBehind="CustomEdit.aspx.cs" Inherits="mojoPortal.Web.MyCustomModules.CustomEdit" %>
<%@ Register Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" TagPrefix="portal" %>
<%@ Register Namespace="mojoPortal.Web.Controls" Assembly="mojoPortal.Web.Controls"
TagPrefix="mp" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<portal:ModuleTitleControl id="Title1" runat="server" />
<mp:CornerRounderTop ID="ctop1" runat="server" />
Your Content
<mp:CornerRounderBottom ID="cbottom1" runat="server" />
</asp:content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
Ascx Page
<%@ Control Language="C#" ClassName="HelloMojoModule.ascx" Inherits="mojoPortal.Web.SiteModuleControl" %>
<%@ Register Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" TagPrefix="portal" %>
<%@ Register Namespace="mojoPortal.Web.Controls" Assembly="mojoPortal.Web.Controls"
TagPrefix="mp" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="mojoPortal.Business" %>
<%@ Import Namespace="mojoPortal.Business.WebHelpers" %>
<%@ Import Namespace="mojoPortal.Web.Framework" %>
<%@ Import Namespace="mojoPortal.Web.Controls" %>
<%@ Import Namespace="mojoPortal.Web.Editor" %>
<%@ Import Namespace="mojoPortal.Net" %>
<script runat="server">
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
LoadSettings();
PopulateLabels();
if (!Page.IsPostBack)
{
//PopulateControls();
}
}
private void PopulateLabels()
{
Title1.EditText = "Edit";
}
private void LoadSettings()
{
// TODO: if your feature has an edit page link to it here
Title1.EditUrl = SiteRoot + "/MyCustomModules/CustomEdit.aspx";
Title1.EditText = "Edit";
Title1.Visible = !this.RenderInWebPartMode;
if (this.ModuleConfiguration != null)
{
this.Title = this.ModuleConfiguration.ModuleTitle;
this.Description = this.ModuleConfiguration.FeatureName;
}
}
</script>
<mp:CornerRounderTop ID="ctop1" runat="server" />
<asp:Panel ID="pnlWrapper" runat="server" CssClass="panelwrapper linksmodule">
<asp:UpdatePanel ID="upGallery" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<portal:ModuleTitleControl ID="Title1" EditText="Edit" EditUrl="~/MyCustomModules/CustomEdit.aspx" runat="server" />
<asp:Panel ID="pnlMyClass" runat="server" CssClass="modulecontent">
</asp:Panel>
<div class="modulefooter">
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<mp:CornerRounderBottom ID="cbottom1" runat="server" />
we followed this steps
step 1:
we added above mentioned user control>Feature Installation/Configuration
step2:
we can able tol see the Module Control content and edit link
step3:
whenever we click edit link we redirect to Static Aspx Page in that page we cant able to view edit fuctionality(html editor) to
do changes in our static aspx page content.
problem:
we need to edit our static aspx content by using edit link(htmledit.aspx) pages.
is it possible to incorporate edit functionality in static aspx file .
please joe have look up on our designs tell me whether we need to
incorporate anything to do this sorry for the disturbance.