Hello again,
I use advanced form and trying to place my own user control in it. Unfortunatelly I'm getting an error
"The name "owner" does not exist in the current context error"
both in case im using:
- '<%# Container.Appointment.Owner.Localization.AdvancedClose %>'
or
- '<%# Owner.Localization.AdvancedClose%>'
I also tried '=' instead of '#' but it didn't work. As well I already have converted .ascx to web application.
Here's my sample:
Lookin forward quick reply.
Best regards,
Maciej
I use advanced form and trying to place my own user control in it. Unfortunatelly I'm getting an error
"The name "owner" does not exist in the current context error"
both in case im using:
- '<%# Container.Appointment.Owner.Localization.AdvancedClose %>'
or
- '<%# Owner.Localization.AdvancedClose%>'
I also tried '=' instead of '#' but it didn't work. As well I already have converted .ascx to web application.
Here's my sample:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="Trash.WebUserControl1" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><div class="rsAdvancedEdit" style="position: relative"> <%-- Title bar.--%> <div class="rsAdvTitle"> <%-- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%> <h1 class="rsAdvInnerTitle"> Edit Appointment</h1> <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose" CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'> <%# Owner.Localization.AdvancedClose%> </asp:LinkButton> </div> <div class="rsAdvContentWrapper"> <asp:Button ID="btn1" runat="server" Text="Btn" /> <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea"> <div class="rsAdvButtonWrapper"> <asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave"> <span><%# Container.Appointment.Owner.Localization.Save%></span> </asp:LinkButton> <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel" CausesValidation="false"> <span><%# Container.Appointment.Owner.Localization.Cancel%></span> </asp:LinkButton> </div> </asp:Panel> </div></div>Lookin forward quick reply.
Best regards,
Maciej