注册 登录
编程论坛 ASP.NET技术论坛

请教hebingbing!

ggaolin 发布于 2008-07-03 13:30, 960 次点击
www.用户名:gaoleigang.密码:860113.你登上,点击“New Topic",看看里面的表格的使用,你预览一下,就知道是什么问题了。麻烦你了。
3 回复
#2
hebingbing2008-07-03 15:47
我也看了你的那个,我估计是你的那个的版本的问题,我刚才用我的试了试,一切正常……
只有本站会员才能查看附件,请 登录

只有本站会员才能查看附件,请 登录
这里我把我的给你,其中的一些相关设置我已经设置ok了,你删掉一些不需要的文件就可以用了,
#3
hebingbing2008-07-03 15:48
程序代码:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void Button1_Click1(object sender, EventArgs e)
    {
        Label1.Text = FCKeditor1.Value;
    }
}

也就这点代码
程序代码:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. xmlns="http://www. >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fckeditorv2:fckeditor id="FCKeditor1" runat="server"></fckeditorv2:fckeditor>
        &nbsp;
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" />
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
    </form>
</body>
</html>

上面图片中FCKeditor1下面的按钮就是预览按钮,下面的就是效果

[[it] 本帖最后由 hebingbing 于 2008-7-3 15:50 编辑 [/it]]
#4
ggaolin2008-07-04 10:22
谢谢
我知道是什么问题了,是我的那个论坛里面,他把html代码给破坏了,不让显示那些格式。谢谢啊。
1