화면에 버튼을 누르면 버튼 이벤트에서
다음과 같이 웹창을 띄웁니다
Response.Write("<>window.open('../search/TBL_SITE.aspx?SearchTarget=SITE', 'register', 'width=850, height=500, resizable=yes');</>");
새로뜬 창에서 적절한 처리를 하고 확인버튼을 누르면
다음과 같은 방식으로 원래 있던 페이지의 TextBox와 DropDownList 에 값을 설정하는데
TextBox에는 값이 제대로 들어가는데 DropDownList 에는 값이 한박자 늦게 들어갑니다
Response.Write("<>opener.form1.txtNATION.value ='" + (string)oRecord["NATION"] + "';</>");
Response.Write("<>opener.document.getElementById('ddlCUSTOMER').value ='" + (string)oRecord["BUYNAM"] + "';</>");
DropDownList 에도 값이 바로 반영되도록 할수있는 방법이 없을까요?
댓글 0