give me your email我发一个ConfirmButton给你

解决方案 »

  1.   

    也给我一份好吗?[email protected]
      

  2.   

    我也想要,给我发一份好吗?[email protected]
      

  3.   

    delrec.Attributes.Add("onclick", "return confirm('Are you sure to delete this record?');")
      

  4.   

    using System.Window.Forms;
    ...................
    private void Button1_Click(object sender, System.EventArgs e)
    {

    DialogResult result;
    if(TextBox1.Text=="")
    {
    result=MessageBox.Show("You must enter a name.", "Name Entry Error",MessageBoxButtons.YesNo,
    MessageBoxIcon.Information,MessageBoxDefaultButton.Button1,MessageBoxOptions.ServiceNotification);
    if(result == DialogResult.Yes)
      {
      Label1.Text="文本框为空值!";
      }   
    }

    }对了,还要在引用添加这个Window.Forms名字空间
      

  5.   

    给我也来一份,谢谢
    [email protected]
      

  6.   

    我也想要,谢谢
    [email protected]
      

  7.   

    在次建议用 bonnie168(虚拟过客.net)的方法。(本人观点,仅供参考。)
      

  8.   

    bonnie168(虚拟过客.net)的方法有问题,所有的信息是返回到服务器上,而不是在客户端,所以千万不能采用,否则后悔莫及。