Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to postback aspx page in iframe?

I have an iframe in my main aspx page and this iframe has also a aspx page. iframe's page has some controls and main aspx page has a submit button on it. Now I want to postback iframe's page on submit button's click event using javascript. So that main page remain static and iframe's page goes for a postback
UPDATE
Thanks @Kevin Babcock and @Bala R
Suppose if I need to perform a button (which is in iframe) click event through main page

like image 520
jams Avatar asked Apr 30 '11 20:04

jams


1 Answers

From javascript you can try something like

document.frames["iframeid"].document.forms[0].submit();
like image 111
Bala R Avatar answered Oct 03 '22 08:10

Bala R