I am writing a few applications in asp.net 2.0 and while I am in the editor using a form view it will display bold and font size attributes fine, until they are submitted into the database and are called back for display on the same form view and also grid views being used on other pages. The database has the correct information, but when the view calls for this information it will not display any of the styles used by the editor.
This is an example of how I am displaying the Job Description which is using the editor in the Edit Template. All of this is inside the form view.
The Grid view is using only a label inside a Template field such as this:
Any suggestions?
This is an example of how I am displaying the Job Description which is using the editor in the Edit Template. All of this is inside the form view.
<ItemTemplate> <div style="margin-left:5px; padding:5px;"> <span style="text-decoration: underline">Event Detail</span>:<br /> <asp:Label ID="NewsDetailLabel" runat="server" Text='<%# Bind("JobDescription") %>' Height="339px" Width="700px" Font-Size="Small"></asp:Label> <br /> <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" Font-Size="Small"></asp:LinkButton> <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" Font-Size="Small"></asp:LinkButton> </div> </ItemTemplate>
The Grid view is using only a label inside a Template field such as this:
<asp:TemplateField HeaderText="" SortExpression="CategoryName" Visible="True"> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("JobDescription") %>'></asp:Label></td></tr> </ItemTemplate> </asp:TemplateField>
Any suggestions?
Re: FCKeditor will not show styles in Form/Grid view
FCKConfig.EditorAreaCSS = '/myownstyles.css' ;