开发者

how can i get div id of my aspx form after submiting the form with target iframe on server side after submit?

i have use iframe for the submit of the form in aspx page, now i have one div outside 开发者_StackOverflow中文版the from and i use this div to display message if any server side error is come. but after submitting the form i have assign the message to this div, but cant see the text in the browser.

actually is there a different way to access that div when we use iframe ?

if yes then can you please give me the idea about the same ?

thanks in advance. Manish


Pass the name of the div in the URL of the iframe, that way you will know it inside the iframe.

Use javascript to set the div of the outside iframe with something like:

window.opener.getElementByID('divID').innerHTML = 'tada';

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜