Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 705
Lill Lansey Avatar asked Dec 09 '22 20:12

Lill Lansey


1 Answers

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

<AjaxToolkit:ModalPopupExtender ...otherproperties... 
     X="100" Y="300">
</AjaxToolkit:ModalPopupExtender>
like image 142
Lance Harper Avatar answered Dec 12 '22 08:12

Lance Harper