Ajax ModalPopupExtender with FormView

J

john

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
 
J

john

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
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top