Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

Closing web aspx form.

Hi,

I have a "Change Password" aspx form. When it is done, I just want to close the aspx form without redirect of other form.

I have Home.aspx and Web.sitemap.

Consider, the "Change Password" form is opened by clicking the web.sitemap.

Please help how to do it.

Thank you.
Avatar of Sethi
Sethi
Flag of India image

I guess you would like to open it as a popup?
Avatar of emi_sastra
emi_sastra

ASKER

No,

Let say I have menu like:

Master  Transaction Setup on home aspx form.

On the Setup menu there are "Change Password" and "Reset Password".

Let say I click  "Reset Password" menu then in this form also show "Master  Transaction Setup" menu.
From that menu I click "Change Password" menu.

Let say on the "Change Password" aspx form there is a button called "Close Form".
What I want is show a custom dialog "Are you Sure Want To Exit", "Yes No".
When the user press Yes button then the form is closed.

Thank you.



For that you will have to use Javascript confirm box. See the following two links I have just searched from google:
http://www.ironspeed.com/articles/Calling%20Javascript%20Code%20from%20a%20Button/Article.aspx
http://www.trans4mind.com/personal_development/JavaScript/alertConfirm.htm
Hi Seth,

I don't see how to close the form?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Ashish Patel
Ashish Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.