c# aspx裡的alert 寫法

  • Share this:

Response.Write( "<script>alert('測驗時間到!')</script>") Response.Redirect( "result.aspx" )

Response.Write( "<script language=javascript>alert('測驗時間到!')</script>")

Response.Write( "<script language=javascript>window.location.href='result.aspx'</script>")

Response.Write( "<script>alert('測驗時間到!');location.href='result.aspx';</script>")


Tags: