小弟以前未用过asp,所以对开发商的例子看不太懂。eWebEditor能够显示和编辑,我是以下这样回添数据库,可是button不执行是为什么?
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
<IFRAME ID="eWebEditor1" src="../ewebEditor/ewebEditor.asp?id=TextBox1&amp;style=s_coolblue"
frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 608px; POSITION: absolute; TOP: 328px" runat="server"
Text="Button"></asp:Button>
</form>
后台:点击不执行
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Dim constr As String = "data source=.;initial catalog=qlyysc;user id=sa;password="
        Dim myconn As New SqlConnection(constr)
        Dim myCmd As New SqlCommand("insert into news(bt) values('" + TextBox1.Text + "')", myconn)
        myconn.Open()
        myCmd.ExecuteNonQuery()
        myconn.Close()
    End Sub

解决方案 »

  1.   

    我的也是如此,一开始还可以用,什么都没动,后来就用不了了,点提交按钮什么反应都没有,测试发现在按钮事件里什么都不执行,烦死了,改用FTB了
      

  2.   

    FTB1.6 太不稳定了!ie老报错!!!!!!!!!!!!!!!
    FTB3.0 谁能给出详细用法?
      

  3.   

    这就奇怪了.
    我使用这个编辑器已经超过1年(在ASP.NET),从来没有这方面的问题.而且该编辑器并没有任何后门什么的,代码全开放.
    以下抄楼主的代码,在我的机器上运行,完全正常,代码如下(注意要正确添加事件,代码为C#):<form id="Form1" method="post" runat="server">
    <asp:TextBox id="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
    <IFRAME ID="eWebEditor1" src="../ewebEditor/ewebEditor.asp?id=TextBox1&amp;style=s_coolblue"
    frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
    <asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
    <asp:Label id="Label1" runat="server"></asp:Label>
    </form>//点击按钮事件
    private void Button1_Click(object sender, System.EventArgs e)
    {
    this.Label1.Text = this.TextBox1.Text;
    }