ブラウザウィンドウのサイズが変更されたときに実行するJS関数を登録するにはどうすればよいですか?
私はそれがにあると思います
Page.ClientScript
クラスメソッドはどこかにありますが、私は少し混乱しています。
ブラウザウィンドウのサイズが変更されたときに実行するJS関数を登録するにはどうすればよいですか?
私はそれがにあると思います
Page.ClientScript
クラスメソッドはどこかにありますが、私は少し混乱しています。
Resizing the browser window requires a client-side script, so it's probably more appropriate to write this directly into .aspx page in a script block, or possibly in a .js file.
That being said, check out this question, you can use a script similar to this: JavaScript window resize event via the Page.ClientScript.RegisterStartupScript method.