<input id='yy' type=button onclick='dosth();'>
这个input如果我想在.cs里Response.wripte 怎么写
老是报dosth()后面有个分号的错,那个分号怎么处理

解决方案 »

  1.   

    Response.write直接写,没有问题的
      

  2.   

    string ss =" <input type='button' onclick=dosth(this); class='btn1' value='编 辑'>"Response.write (ss.tostring());报语法错误
      

  3.   

    onload 就报ie语法错误
      

  4.   

    Response.write这个有什么意义呢?
    Response.write是写在HTML最顶端的
    而<input必须放在<Form里面才可以
      

  5.   

    在 html里的td里<%binddata();%>
      

  6.   

    <%binddata();%>//在这里加个分号是什么意思呢?
      

  7.   

    public void binddata(){Response.write....}
      

  8.   

    就这样写啊:
    Response.Write("<input id='yy' type=button onclick='dosth();'>");
      

  9.   

    建议楼主在需要放这个BUTTON的地方放一个LABLE控件,,如Lable1,然后后台写:
    Lable1.Text = "<input id='yy' type=button onclick='dosth();'>";
      

  10.   

    LABLE控件不可以的,转为客户端是Div,里面不可能有按钮
    Literal控件还差不多