How to set the position of the ASP.NET Ajax ModalPopupExtender?

Lill Lansey picture Lill Lansey · Jun 9, 2009 · Viewed 12.4k times · Source

Can the position of the Ajax modalpopupextender be set either to an absolute or relative position on the page?

The default puts it at page center and I haven't found a way to override this.

I would like to position the popup close to the control that triggers it.

Answer

Lance Harper picture Lance Harper · Jun 9, 2009

There are X and Y properties you can set with the latest version:

<AjaxToolkit:ModalPopupExtender ...otherproperties... 
     X="100" Y="300">
</AjaxToolkit:ModalPopupExtender>