Ajax ModalPopupExtender with FormView

Discussion in 'ASP .Net Web Controls' started by john, Oct 27, 2007.

  1. john

    john Guest

    Button invoking FormView:
    It opens the FormView as expected, but when I Click New it Disappears during
    postback and remains Invisible. When I Click the Original Button again that
    invoked it, it Shows again in the "New" Mode (or Edit Mode if I Clicked that
    Choice).

    How do I get it to show itself automatically by code, if that is the answer?

    I've tried Me.FormView.Visible = True on the FormView DataBound Event but
    did not work

    Thanks
    John
     
    john, Oct 27, 2007
    #1
    1. Advertising

  2. john

    john Guest

    Re: Solved

    Protected Sub FormView10_ModeChanged(ByVal sender As Object, ByVal e As
    System.EventArgs) Handles FormView10.ModeChanged

    If IsPostBack Then

    ModalPopupExtender1.Show()

    Me.ModalPopupExtender1.X = 100

    Me.ModalPopupExtender1.Y = 100

    End If

    End Sub

    "john" <> wrote in message
    news:...
    > Button invoking FormView:
    > It opens the FormView as expected, but when I Click New it Disappears
    > during postback and remains Invisible. When I Click the Original Button
    > again that invoked it, it Shows again in the "New" Mode (or Edit Mode if I
    > Clicked that Choice).
    >
    > How do I get it to show itself automatically by code, if that is the
    > answer?
    >
    > I've tried Me.FormView.Visible = True on the FormView DataBound Event but
    > did not work
    >
    > Thanks
    > John
    >
     
    john, Oct 28, 2007
    #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. xeroxero
    Replies:
    0
    Views:
    811
    xeroxero
    Dec 7, 2006
  2. Replies:
    1
    Views:
    1,776
    Bruce Barker
    Jan 8, 2007
  3. jondack
    Replies:
    0
    Views:
    2,167
    jondack
    Nov 11, 2010
  4. Replies:
    1
    Views:
    5,068
  5. Heron
    Replies:
    0
    Views:
    3,897
    Heron
    May 3, 2008
Loading...

Share This Page