在button控件的btnCanel_Click(object sender, System.EventArgs e)事件里执行
类似<A href="javascript:history.back();">返回</A>"的功能,请问怎么做?我这样做btnCanel.Attributes.Add("onclick","history.back();");也不行,是语法错吗?
这样可以btnCanel.Attributes.Add("onclick","return confirm('确定要删除选中的信息吗?')");
类似<A href="javascript:history.back();">返回</A>"的功能,请问怎么做?我这样做btnCanel.Attributes.Add("onclick","history.back();");也不行,是语法错吗?
这样可以btnCanel.Attributes.Add("onclick","return confirm('确定要删除选中的信息吗?')");
function aaa()
{
document.Form1.TextBox2.value = document.Form1.TextBox1.value
}
知道是哪的错误吗?谢谢