Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I call a code behind sub routine (ASP.NET) from Javascript?
Actually I have a Datagrid and I would like to seek confirmation from the user before finally deleting/ modifying a record.

menonagro
Posted

 
Share this answer
 
Comments
Rubaba 6-Jul-11 1:00am    
good answer.+5
Monjurul Habib 6-Jul-11 13:14pm    
thank you
To call a code behind function to Javascript you need to use AJAX
go through the following link

Click me[^]

Hope it helps
 
Share this answer
 
this link may solve your problem

http://www.dotnetjohn.com/articles.aspx?articleid=68[^]
 
Share this answer
 
Why do you need code behind ? You can just show a confirmation dialog using javascript, your button can use OnClientClick to do this, and if your method returns 'false' it won't post back.
 
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