I have an iframe withing Div container and Div opened with jQuery UI dialog. I need to pass few varibales to src tag in the iframe and did it following way.
src="page.aspx?id=<%=somevariable %> " Note: somevariable is page level public variable.
For some reason , query string does not contain the "id"value. Can any one point out the issue ? ( I can do this in code behind , however, I need to do it in page level itself )
Is there a value for the somevariable in code behind? If so, where are you setting it? You must set it inside the Page_Load method so then only it will be available when you are accessing like this. Also share your code behind please.
mahesh.desil...
0 Points
6 Posts
iFrame passing query string parameters
Jan 01, 2012 03:32 AM|LINK
Hi,
I have an iframe withing Div container and Div opened with jQuery UI dialog. I need to pass few varibales to src tag in the iframe and did it following way.
src="page.aspx?id=<%=somevariable %> " Note: somevariable is page level public variable.
For some reason , query string does not contain the "id"value. Can any one point out the issue ? ( I can do this in code behind , however, I need to do it in page level itself )
Thanks
Mahesh
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: iFrame passing query string parameters
Jan 01, 2012 03:50 AM|LINK
Hi,
Is there a value for the somevariable in code behind? If so, where are you setting it? You must set it inside the Page_Load method so then only it will be available when you are accessing like this. Also share your code behind please.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.