Hello,
Please add the javascript function to the onclik event on the button by
adding hte functioname in the attritubes on the button. like
buttonname.attributes.add("onclick",functionname)
And in the functio jsut write
functionanem
(
return confirm('do u want to delete');
)
It will work.
Regards
--
Niraj Ranka
The will to be successfull is waste, unless u have the will to prepare!!!
"Ahmad Jalil Qarshi" <> wrote in message
news:...
> Hi,
>
> I am developing a website in ASP.NET. I want to have a client side code to
> confirm the deletion of some information from backend database. I want to
> use a Message Box have two buttons "Yes" and "No" to confirm the deletion.
>
> Now I want if the user press "Yes" the page should be posted back to the
> server to delete the information from database and do nothing when user
> press "No" button means don't post back the page.
>
> Anybody there to help me.
>
> with best Regards,
>
>
> Ahmad Jalil Qarshi
>
|