this.textbox.text="abcd";-------------------->客戶端代碼
Response.Write("<script language='javascript'>{alert('评论删除');window.location.href='Company_List.aspx?p_name=" + this.textbox.Text + "';}</script>");-------------------->服務器端代碼就這些就完整了??

解决方案 »

  1.   

    单击一个button提交
    this.textbox.text="abcd";--获得textbox的值
    Response.Write("<script language='javascript'>{alert('评论删除');window.location.href='Company_List.aspx?p_name=" + this.textbox.Text + "';}</script>");在company_List.aspx页面
    request["p_name"]怎么得不道值?
    得到的是空
      

  2.   

    textbox.Text 还是 textbox.text? text大小写的问题?
      

  3.   

    this.textbox.text="abcd";是笔误吗? 因为后面是 this.textbox.Text
    而且 window.location= ...this.textbox.Text中this没有存在的环境,不在function中,查下上下文,照理解应该是某个实例 a.textbox.Text
      

  4.   

    这些代码都是在 aspx.cs 文件中的