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. Advertisements

  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. Advertisements

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:
    723
    titof
    Jul 24, 2003
  2. mg
    Replies:
    2
    Views:
    484
    Suresh
    Dec 9, 2003
  3. timmso
    Replies:
    1
    Views:
    775
    Alex Papadimoulis
    Dec 12, 2003
  4. =?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:
    633
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  5. =?Utf-8?B?Vk1J?=

    Moving value from popup Webform to main Webform?

    =?Utf-8?B?Vk1J?=, Oct 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    744
    GroupReader
    Oct 9, 2006
  6. Luqman
    Replies:
    2
    Views:
    824
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 11, 2007
  7. Paul
    Replies:
    6
    Views:
    3,457
    A6034447
    Nov 26, 2009
  8. Daedalous
    Replies:
    3
    Views:
    1,139
    Daedalous
    Jan 16, 2004
Loading...