asp.net fckeditor值 (急急急)在线等.........

来源:百度知道 编辑:UC知道 时间:2024/05/22 06:38:54
用母版页(MaterPage)的话,在后台FCKeditor1.Value为什么没有值呢?
不用母版页的时候正常,
aspx页面.................................................
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" ValidateRequest="false" CodeFile="Default4.aspx.vb" Inherits="Default4" title="Untitled Page" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Button ID="Button1" runat="server" T

呵呵。这个问题可能大多数ASP.NET程序员刚刚用在线编辑器出现的问题。

FCKeditor1.Value 是指在没有用户控件或者没有模板页的生成的ID的值。假如你用了用户控件或者模板页的话。那后来生成的HTML也就是返回到客户端的ID值不就是这个FCKeditor1了。而是加上了模板的ID或者用户控件的ID了。要知道具体变成了是什么ID,你可以在生成的HTML页查看源码。然后知道它的ID就把它替换为FCKeditor1.Value就是了。呵呵。

FCKeditor1这个是放在内容页面里的?
那得在内容页面里调用