添加成功后,先弹出新增成功弹出框,再跑到别的页面??
添加成功后,先弹出新增成功弹出框,再跑到别的页面??
我现在是这样写的,
ClientScript.RegisterStartupScript(GetType(), "back ", " <script lanuage=javascript> window.alert( ' " + "保存保存! " + " '); </script> ");
Server.Transfer( "BulletinList.aspx ");
可是就是不弹出 "保存成功 "的对话框?
大家是怎么写的??
------解决方案--------------------string info= "保存成功 ";
Response.Write( " <script language=javascript> alert( ' "+info+ " '); </script> ");
------解决方案--------------------Response.Write( " <script> alert( '保存成功 ');location.href= 'BulletinList.aspx '; </script> ")
------解决方案--------------------Response.write( " <script> alert( 'OK! ');location= 'AA.aspx '; </script> ");
------解决方案--------------------startregisterscriptblock( ' ', 'alert();location= ' '; ', ' ')