Thread: message box
View Single Post
  #4 (permalink)  
Old December 22nd, 2005, 09:23 PM
sky_handsome sky_handsome is offline
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sky_handsome
Default

<script type="text/javascript">
function doConfirm()
{
    if(!Confirm('ffds'))
    {}
     else
     {}
}
</script>

i put the above code in the aspx file. then i write the following code in c#.
this.Button1.Attributes.Add("OnClick","doConfirm() ");

you can try this. it works well on my machine.