你好ueditor编辑器用div你是怎么获取到值的呢?
你好ueditor编辑器用div你是怎么获取到值的呢?发布前台页面:<divclass="xiweidaxiao"><scriptname="myContent"type...
你好ueditor编辑器用div你是怎么获取到值的呢?
发布前台页面:
<div class="xiweidaxiao">
<script name="myContent" type="text/plain" id="myContent" cols="45" rows="5" style="width:95%; margin:0 auto; "></script>
<script id="editor" type="text/plain" name="myContent"></script>
<script type="text/javascript">
var editor = new UE.ui.Editor();
editor.render('myContent');
</script> </div>
发布后台:
protected void jiaodigfijoa_Click(object sender, EventArgs e)
{
try
{
XinWen g = new XinWen();
g.XinWenrXianid(Request["id"].ToString());
g.xinTltli = jiaobiaoti.Text;
g.xinLaiyuan = TextBox1.Text;
g.xinConTent = Request["myContent"].ToString();
这上面是正确的:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
下面是修改后台页面,修改前台和发布前台一样的代码,请问在修改怎么写代码:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["id"] != null)
{
XinWen f = new XinWen();
f.XinWenrXianid(Request["id"].ToString());
jiaobiaoti.Text = f.xinTltli;
TextBox1.Text = f.xinLaiyuan;
这里通过什么代码获取数据库里面的值 = f.xinConTent; 展开
发布前台页面:
<div class="xiweidaxiao">
<script name="myContent" type="text/plain" id="myContent" cols="45" rows="5" style="width:95%; margin:0 auto; "></script>
<script id="editor" type="text/plain" name="myContent"></script>
<script type="text/javascript">
var editor = new UE.ui.Editor();
editor.render('myContent');
</script> </div>
发布后台:
protected void jiaodigfijoa_Click(object sender, EventArgs e)
{
try
{
XinWen g = new XinWen();
g.XinWenrXianid(Request["id"].ToString());
g.xinTltli = jiaobiaoti.Text;
g.xinLaiyuan = TextBox1.Text;
g.xinConTent = Request["myContent"].ToString();
这上面是正确的:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
下面是修改后台页面,修改前台和发布前台一样的代码,请问在修改怎么写代码:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["id"] != null)
{
XinWen f = new XinWen();
f.XinWenrXianid(Request["id"].ToString());
jiaobiaoti.Text = f.xinTltli;
TextBox1.Text = f.xinLaiyuan;
这里通过什么代码获取数据库里面的值 = f.xinConTent; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询