thanks for ur reply. I've replaced an aspx page instead of taskpane and i've also written the same javascript code in that page but it doesn't fire. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Invoke-Script-tp6701807p6701974.html Sent from the MapGuide Users mailing list archive at Nabble.com.