No, you can use the partial class of the page to define the method for showing simple dialog similar to the code in this thread: