Click here to Skip to main content
15,915,093 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i give action to ok button in comfirm alert in asp.net by using C# Language?
Posted
Comments
Sandeep Mewara 13-Jul-12 10:11am    
What do you mean by "give action"? Not clear.
Sergey Alexandrovich Kryukov 27-Jul-12 1:28am    
Do not re-post.
--SA

Use on OnClientClick event of a button.

JavaScript
return confirm('Yes, I have Checked all the details.')


Thanks,
Ashish
 
Share this answer
 
hi,

try like this..

C#
okButton.Attributes.Add("onclick","return confirm('Do you want to continue.?')");


hope it works.
 
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