how to force a page to post back from another page?
-
Hi every one, I need help in making a page to post back when another page postsback, lets say when a button is clicked in the other page!! Your help is highly appreciated.. Thanks
You mean, you have 2 web pages? 1 is parent and another is the child? Example: parentWeb.aspx -> main web page. parentWeb.aspx call another webPage (ex. childWeb.aspx). When user click button on childWeb.aspx, you can make parentWeb.aspx post back by this way: On childWeb.aspx: var wndParams = window.dialogArguments; opener = wndParams[0]; --> parentWeb.aspx function onButtonClick() { opener.doWebPostback(); } On parentWeb.aspx: function doWebPostback() { document.Form1.submit(); } Hope this can help you :) Lili
-
You mean, you have 2 web pages? 1 is parent and another is the child? Example: parentWeb.aspx -> main web page. parentWeb.aspx call another webPage (ex. childWeb.aspx). When user click button on childWeb.aspx, you can make parentWeb.aspx post back by this way: On childWeb.aspx: var wndParams = window.dialogArguments; opener = wndParams[0]; --> parentWeb.aspx function onButtonClick() { opener.doWebPostback(); } On parentWeb.aspx: function doWebPostback() { document.Form1.submit(); } Hope this can help you :) Lili