私がしたいもの: 私は.aspxページを持っています。 ボタンをクリックすると、modalpopupが好きです。 window.open( "Popup.aspx、 ''、 '');"); ポップアップを開き、ユーザーの入力に応じていくつかのコードを実行します
はを開き、ユーザーを押すが、ボタンの@ popup.aspxを提出するとき、私はいくつかの他のコードは、親フォームの@サーバ側を実行したいです。
例:クリックするとポップアップページにボタンを提出するとき、あなたは、親フォームをリロードするJavaScriptを使用している住所ができ
protected void btntext_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script>");
sb.Append("window.open("popup.aspx", "List","scrollbars=no,resizable=no,width=400,height=280"););
sb.Append("</script");
Page.RegisterStartupScript("test", sb.ToString());
** I want that The popup should open here before executing the SaveValue() function
And I can return some value from that popup.aspx and check here and according to that/execute the code.**
SaveValue();
}
私はそれを理解することができません。 これはjavascriptのポップアップを使って簡単に行うことができますが、window.open()でどのようにするのですか? –
@ムーンライト説明してください! –