关于对话框的问题!!!!!!!急啊。。。 give me your email我发一个ConfirmButton给你 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也给我一份好吗?[email protected] 我也想要,给我发一份好吗?[email protected] delrec.Attributes.Add("onclick", "return confirm('Are you sure to delete this record?');") 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名字空间 给我也来一份,谢谢[email protected] 我也想要,谢谢[email protected] 在次建议用 bonnie168(虚拟过客.net)的方法。(本人观点,仅供参考。) bonnie168(虚拟过客.net)的方法有问题,所有的信息是返回到服务器上,而不是在客户端,所以千万不能采用,否则后悔莫及。 求助,GRIDVIEW实现分页,跳转到指定页面,如何实现? .NET即使到达消息的开发。 web应用程序中textbox输入限制问题 如何执行编译 为什么配置好项目后,运行时老提示拒绝访问,怎么回事? 都说两个月[学习asp.net(C#)]就可以"出家"了,我为什么不行呢?请指教. 如查取得.net 中 DataTable 中 DataColumn 字段列的宽度 我很纳闷:为何无法控件中的值? asp.net中做好的页面怎么在别的地方可用,请高手指教! 怎样用脚本实现数据库的备份? asp.net与NTFS vs.net 2002里面的button控件属性里怎么没有onclick属性?
...................
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名字空间
[email protected]
[email protected]