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

Discussion in 'ASP .Net' started by jonny, Oct 1, 2009.

  1. jonny

    jonny Guest

    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)
     
    jonny, Oct 1, 2009
    #1
    1. Advertising

  2. jonny

    jonny Guest

    On Oct 1, 11:18 am, jonny <> wrote:
    > 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.
     
    jonny, Oct 1, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. titof
    Replies:
    0
    Views:
    559
    titof
    Jul 24, 2003
  2. timmso
    Replies:
    1
    Views:
    553
    Alex Papadimoulis
    Dec 12, 2003
  3. =?Utf-8?B?bXN1aw==?=

    Using one webform to set a value on another webform

    =?Utf-8?B?bXN1aw==?=, Jul 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    517
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  4. Luqman
    Replies:
    2
    Views:
    697
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 11, 2007
  5. Daedalous
    Replies:
    3
    Views:
    791
    Daedalous
    Jan 16, 2004
Loading...

Share This Page