how can i call c#.net code in the return confirm of javascript
Hi to all people here in stackoverflow,

this is my question what i want to achieve is that i want to show an return confirm popup  (yes, no) if an asp.net button was click. so what i want is that if i click yes it will do some C# line of code as well as in the NO lets say if i click 'Yes' it will insert a record and if 'No' it will only update the record.
can someone give me an example on how i can do this? im really having a hard time since im new in javascript and c#.

please advise.
thanks in advance!
cheers!
how can i call c#.net code in the return confirm of javascript
===

Hi to all people here in stackoverflow,

this is my question what i want to achieve is that i want to show an return confirm popup  (yes, no) if an asp.net button was click. so what i want is that if i click yes it will do some C# line of code as well as in the NO lets say if i click 'Yes' it will insert a record and if 'No' it will only update the record.
can someone give me an example on how i can do this? im really having a hard time since im new in javascript and c#.

please advise.
thanks in advance!
cheers!