How to open a webform in a iframe when with vb.net code

J

jonny

I have a webform with a iframe on it. When I click a button I want to
show a webform called frmExample inside the iframe. I am having
trouble with the code to call a form inside the iframe.

Here is what I have so far...

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles Button1.Click
iFrameReport.Visible = True
iFrameReport.Attributes("src") = frmExample.aspx
End Sub

(I am going to list this question in the VB.net group also because I
am not sure which group is best for this question)
 
J

jonny

I have a webform with a iframe on it. When I click a button I want to
show a webform called frmExample inside the iframe. I am having
trouble with the code to call a form inside the iframe.

Here is what I have so far...

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles Button1.Click
        iFrameReport.Visible = True
        iFrameReport.Attributes("src") = frmExample.aspx
    End Sub

(I am going to list this question in the VB.net group also because I
am not sure which group is best for this question)

Never mind I figured it out.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top