开发者

iFrames and POST variables in ASP.Net

OK, so my problem is I need to pass variab开发者_Go百科les to an iFrame. I can do the following:

<iframe src="mypage.aspx?var=myvariable">

Which is fine, but ideally I'dlike to set up the request for the iFrame to have var stored in POST variable, as opposed to the GET. I'm pulling out what little hair I have left trying to solve this problem. Any gurus out there in SOLand got any ideas? TIA Peter


As for posting to IFrame, check out this post. Perhaps, you could set a session variable in the parent page and retrieve it the page that's loaded by the IFrame.


You could also try and inherit both the parent page and the page contained in the iframe from a basepage. Putting in whatever variables you want and being able to call them at will. Something like.....

Create a seperate vb or c# whatever your flavor in your appcode folder. Call it BasePage

On your Iframe and Parent page put in your

Inherits BasePage Dim Public myvariable ....etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜