只梦才会想

爱拼才会羸

统计

最新评论

嵌入在线编辑器解密

嵌入大线编辑器方法: 
<td>
<fckeditorv2:fckeditor id="FCKeditor1" runat="server" basepath="../FCKeditor/" Height="350px"></fckeditorv2:fckeditor>    </td>
取编辑器值:
FCKeditor1.Value
void upbind()
    
{
        
string sql;
        sql 
= "select top 1 * from news where id=" + Request.QueryString["nid"];
        DataTable dt 
= new DataTable();
        OleDbDataAdapter Dar 
= new OleDbDataAdapter(sql, conn);
        DataSet ds 
= new DataSet();
        Dar.Fill(ds);
        dt 
= ds.Tables[0];
        TextBox_title.Text 
= dt.Rows[0]["title"].ToString();
        FCKeditor1.Value 
= dt.Rows[0]["content"].ToString();
        TextBox_pic.Text 
= dt.Rows[0]["picture"].ToString();
        TextBox_add.Text 
= dt.Rows[0]["laiz"].ToString();

      }
 

posted on 2008-02-01 10:17 aking 阅读(89) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。