Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I need help confirmation message yes or no If i click Yes goto next page and also if I click no go to next page.

advance thanks
Posted
Comments
Sandeep Mewara 14-Apr-13 9:45am    
What have you tried so far? Where are you stuck?
Lebohang Danster 14-Apr-13 11:43am    
We are not here to do your work for you, you need to attempt get to the solution at least.
Are you attempting to do this server side or client side? what considerations have you made
Jagdeep Kaur 14-Apr-13 13:02pm    
firstly elaborate your problem...specify whether you are trying this in server side or client side...put some code to look into the problem..

write the following line of code and it should do your work

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:confirm('Do you want to move to other page?')", true);
Response.Redirect("Nextpage.aspx");



This code in any case redirects to the next page wheather the user has clicked on yes or no.

hope it gives you the solution.....
 
Share this answer
 
<asp:button id="btnFinal" runat="server" text="Final" width="90px" onclientclick="return OnPopupWindowClose();" />


function OnPopupWindowClose() {
if (confirm("Are you sure you want to close this page?"))
return true;
else
return false;
}()
 
Share this answer
 
v2

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