Thanks for the quick replies.
Abhishek, I tried the code you mentioned above, but it gives me the following error message- ''; Expected at the statement - string strSubmit=thisXDocument.UI.Confirm(''Do you want to continue?'',XdConfirmButtons.xdYesNo).ToString();
I have been pulling out my hair to fix this.. it must be a simple correction, but ...