Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i have a situation where i need a yes/ no box for confirmation from user, if user click no then page redirects to default.aspx, else result.aspx.
i know it is very easy on windows application using confirm massagebox, but on web application what is the easiest way to do this???
please post code... dont refer to any link.
thank u.
Posted
Comments
rkthiyagarajan 24-Sep-11 3:19am    
You need Yes/No Message box?
OriginalGriff 24-Sep-11 3:22am    
Reason for my vote of one: Too lazy to follow a link if given.
rkthiyagarajan 24-Sep-11 3:26am    
Great griff good punch.

Why, if an article is answering your question perfectly, should I not post a link to it?
Why do you think I should put myself out to save you from 30 seconds of work?

You have to realise that we do not get paid for this: we do it out of the goodness of our hearts. Giving stupid instructions to give you the code rather than to point you at such is (as you may have noticed by now) somewhat counter-productive, in that I could - pretty easily - have given you the solution by now, but have instead elected to invest my time in typing all this and educating you instead.

If you had been polite; if you had used a little netiquette, you would be happily moving on with your project.

But no. You decided that you are my boss, and you could give orders with impunity. It is perhaps worth learning that bosses you do that, don't tend to have happy staff - or indeed good staff for long.


Lesson learned?
 
Share this answer
 
Comments
choudhary.sumit 24-Sep-11 3:39am    
yes I've learn a lot!!
sorry for the statements.
i wrote that here coz many times we does'nt get what we want from the references.
but i should be reliable on members like u.
so please put ur anger for me aside and do something for me.
RaisKazi 24-Sep-11 3:41am    
My 5. But not sure - "Lesson learned?" :)
hi,


XML
<script type=""text/javascript">
    function fnDPolicy() {
        if (!confirm("Are you sure to navigate?")) {
            return false;
        }
    }


</script>

add this code in head tag


then call the function on the client click of the button
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900