0

How can I pass data to a aspx page, via POST and then open this page as a pop up ?

I'm trying use $.post method, but how can I open this filled page in a pop up ?

If I try something like this, will open the mypage.aspx without the data that I pass ?

$.post("..mypage.aspx", {datainfo : datainfo }, function (data) { window.open() }
Lucas_Santos
  • 4,638
  • 17
  • 71
  • 118

1 Answers1

0

this is impossible , they way you are doing it !

the correct approach is

1)use jquery colorbox or thickbox and open 'mypage.aspx' in it. 2)on page load of 'mypage.aspx' get the data from parent page in to the mypage.aspx using javascript or session 3)add a button in mypage.aspx(hide its visibility) 4)fire click event of the button using javascript and post the data.

hope it helps !

Zia
  • 921
  • 5
  • 14