all groups > asp.net webcontrols > october 2007 >
You're in the

asp.net webcontrols

group:

Ajax ModalPopupExtender with FormView


Ajax ModalPopupExtender with FormView john
10/27/2007 6:53:37 PM
asp.net webcontrols: 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

Re: Solved john
10/28/2007 6:20:58 PM
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

[quoted text, click to view]

AddThis Social Bookmark Button