Monday, March 12, 2012

Want to be able to pass parameters to an IFRAME

Hi,

I ran into a closed thread with the title "Want to be able to pass
parameters to an IFRAME"

The need to pass
I tried to implement what they suggested but i got an error:

"The Controls collection cannot be modified because the control contains
code blocks (i.e. <% ... %>) "

The code used:
<iframe id="content" src="http://pics.10026.com/?src=<% = Request.QueryString.Get("content")%>"
width="100%"></iframe
Help!

Regards,
Hadar.Hadar wrote:
> Hi,
> I ran into a closed thread with the title "Want to be able to pass
> parameters to an IFRAME"
> The need to pass
> I tried to implement what they suggested but i got an error:
> "The Controls collection cannot be modified because the control contains
> code blocks (i.e. <% ... %>) "
> The code used:
> <iframe id="content" src="http://pics.10026.com/?src=<% = Request.QueryString.Get("content")%>"
> width="100%"></iframe>
> Help!
> Regards,
> Hadar.

I think this wil work:
<iframe id="content" src='<% = Request.QueryString.Get("content")%>'
width="100%"></iframe
It has to do with the " signs.

//Rutger
Hi Rutger,
Thanks for your reply.
Unfortunally it didn't do the job (same error)...
Any idea what could it be?
Hadar

"Rutger Smit" <DoDotNet@.KICKTHIS_Gmail.com> wrote in message
news:O8deMDMlEHA.3432@.TK2MSFTNGP14.phx.gbl...
> Hadar wrote:
> > Hi,
> > I ran into a closed thread with the title "Want to be able to pass
> > parameters to an IFRAME"
> > The need to pass
> > I tried to implement what they suggested but i got an error:
> > "The Controls collection cannot be modified because the control
contains
> > code blocks (i.e. <% ... %>) "
> > The code used:
> > <iframe id="content" src="http://pics.10026.com/?src=<% = Request.QueryString.Get("content")%>"
> > width="100%"></iframe>
> > Help!
> > Regards,
> > Hadar.
>
> I think this wil work:
> <iframe id="content" src='<% = Request.QueryString.Get("content")%>'
> width="100%"></iframe>
> It has to do with the " signs.
> //Rutger

0 comments:

Post a Comment