iFrame

I

IntraRELY

I cannot get this thing to work, I am keeping to the baics and here is all
what I have. Is there something I am missing. In IE I click the properties
of the IFrame and it is pulling the url http://localhost/rateQuest/<%SrcUrl.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim SrcUrl = "/depositories.aspx"
End Sub

Tried This
---------------------------------------------------------------------------
<iframe
id="ifContent"
style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 40px"
runat="server"
src = <%SrcUrl%>
</iframe>

I dont know if you had a typo in your code, but I wouldnt think there should
of been an = sign. But get an error message that the tag was not well
formed.
----------------------------------------------------------------------------
<iframe
id="ifContent"
style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 40px"
runat="server"
src = <%=SrcUrl%>
</iframe>

Thanks for your input,

Steve Wofford
www.IntraRELY.com
 
N

Nir

Very simple .


set <iframe id=x runat = server> </iframe>

In server side write :

x.attribute.add("src",url)

Nir Salab
Zomet Information LTD
Israel
 
M

MSFT

Hi Steve,

Ravikanth has point to the right direction. You need define "ScrUrl" as
global variant:

Public SrcUrl As String

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
SrcUrl = "http://www.google.com"
End Sub


And, don't run at server for the iframe object:

<iframe id="ifContent"
style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 40px"
src = "<%=SrcUrl %>"
</iframe>

Hope this help,

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top