Hi all,
Can anyone suggest me how to write the confirm box in code behind
and i want to get the return value whether the user clicked 'ok' or
'cancel',
Depending on that i need to process further using if else .
"I want pass one value which is form databse to confirm message."
Thats y i am using this calling from code behind.
Thanks in advance,
Deepthi
Loading
Amit ChoudharyPosted Apr 28, 2011, 2:16 AM
As your thread resolved its good but i have doubt if you were asking for confirmation box or Prompt box for you requirement??
omkar mhaiskarPosted Apr 28, 2011, 2:02 AM
yes this is the only way..
to show to confirm message box through codebehind.
Deepthi AravindPosted Apr 27, 2011, 7:57 AM
i am using modal popup extender in ajax control tool kit...
Suthish NairPosted Apr 25, 2011, 10:37 AM
raksha nirwanPosted Apr 22, 2011, 6:37 AM
Make your usercontrol as a messagebox design and add this user control to your web page and show user control on button click . It will work fine as a message box. i m sure. try this at once.
Deepthi AravindPosted Apr 22, 2011, 6:32 AM
But i need show like a meesage box....
CrishPosted Apr 22, 2011, 6:13 AM
OnClientClick="return confirm('Are you sure you want to delete this User?');"
raksha nirwanPosted Apr 22, 2011, 6:12 AM
For this problem, u can create a usercontrol with 2 button 'ok' and 'cancel'. write code according to you n call your usercontrol on button click. This idea can work for you.
Deepthi AravindPosted Apr 22, 2011, 5:31 AM
My actual requirement is,
In my page, On clicking of search button i need to show this confirmation message.The message is from database.
After that i want to know user clicked is yes or no.
if user clicked yes,i want to retrieve list of items from database
Deepthi AravindPosted Apr 22, 2011, 4:57 AM
This is not my requirement.pls read the red line indicated as above
Ankit NandekarPosted Apr 22, 2011, 4:24 AM
write this code on deletebutton
onClientClick="return confirm("Are you sure you want to delete current record")