you can add this code in form load
where the assigned javscript will added to the cmdDelete button which will give
u message box.
cmdDelete.Attributes.Add("onclick",
"getMessage()")
You need to write this below said
_javascript_ here in this case i am making YES/NO
message box, depending
upon the users click ,i am assigning
the value for a hidden textbox which will be used at server side
<SCRIPT
language="_javascript_"> //Function for POpUP window
Delete Confirm function
getMessage() { var
ans; ans=window.confirm('Do You want to Delete
?'); if
(ans==true) { document.Form1.hdnbox.value='Yes'; } else { document.Form1.hdnbox.value='No';} } </SCRIPT>
HTH
********** Keep Smiling, Regards.
Sayad Hashim Ali
Kazi Microsoft India Community Star.
SQL Star International Ltd. SQL
House, #13,Infocity,Madhapur, Hyderabad 500 081. Tel: +91-40-2310
1625(Off) +91-98491-29500(Cell) www.mugh.net
-----Original Message----- From: Narasimha_mscis1
[mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004
12:47 AM To: dotNET User Group Hyd Subject: Message
Box
Message
Box
Reply
|
|
| From: Narasimha_mscis1 |
I want to display a message in Asp.Net.How can i display a
message in MessageBox.Give me the possible
solutions............ | | View other groups in this
category.
|