弹出单按纽窗口后转向其他页面,请高手指教
一个按钮,要实现弹出单按纽窗口后转向其他页面,请高手指教
我用
private void Button4_Click(object sender, System.EventArgs e)
{
…………
Response.Write( " <script> alter( '修改密码成功! '); </script> ");
Response.Redirect( "login.aspx ");
}
没有弹出窗口,请高手帮我完善以上代码
------解决方案--------------------Response.Write( " <script> alter( '修改密码成功! '); </script> ");
Response.Write( " <script> window.location.replace( "your.aspx "); </script> ");
------解决方案--------------------private void Button4_Click(object sender, System.EventArgs e)
{
…………
Response.Write( " <script> alter( '修改密码成功! '); </script> ");
Response.Write( " <script> window.opne( 'login.aspx '); </script> ");
}
------解决方案--------------------Response.Write( " <script> alter( '修改密码成功! ');window.location.replace( "your.aspx "); </script> ");
------解决方案--------------------Response.Redirect( "~/Login.aspx ");
------解决方案--------------------private void Button4_Click(object sender, System.EventArgs e)
{
…………
Response.Write( " <script> alter( '修改密码成功! ');window.location.href( "your.aspx "); </script> ");
}
------解决方案--------------------没有弹出就这样
Response.Write( " <script> alter( '修改密码成功! '); < "+ "/script> ");
分开写,可以的
------解决方案--------------------Response.Write( " <Script> alert( '修改密码成功! ');location.href( 'login.aspx '); </Script> ");
这样就没有问题了
------解决方案--------------------Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "fun ", "alert( '修改密码成功! ');location.href( 'login.aspx ') ", true);
------解决方案--------------------N多个“alter” -_-#!
------解决方案--------------------?
private void Button4_Click(object sender, System.EventArgs e)
{
…………
Response.Write( " <script> alter( '修改密码成功! '); </script> ");
Response.Write( " <script> window.opne( 'login.aspx '); </script> ");
}
------解决方案--------------------Response.Write( " <SCRIPT language=JavaScript> alert( '请您先登录! ');location.href= 'Default.aspx '; </SCRIPT> ");
不好使就是你的问题,人品有问题
------解决方案--------------------Response.Write( " <SCRIPT language=JavaScript> alert( '请您先登录! ');location.href= 'Default.aspx '; </SCRIPT> ");
----------------------------------------
我也是用这个实现lz效果,没什么问题呀!