怀孕吧奈亚子百度链接:在ASP.NET中如何为文本框添加对话框
来源:百度文库 编辑:高考问答 时间:2024/05/10 19:13:38
就象是这样
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
但是不是button,而是textbox
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
但是不是button,而是textbox
TextBox1.Attributes.Add("onclick","javascript:if(confirm('are you sure...?')){return true;}else{return false;}");