Passing value to confirmation box
-
Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs
-
Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs
you must be attaching a client side function to on every button to show the confirmation box. So pass one more parameter, which you want to show on confirmation box and update the text accordingly and show the message. Let me know if face problem
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs
In order of preference: 1 - Include that column as a DataKey in the DataKeyNames property of the GridView. 2 - Use the column as a CommandArgument property of the Button. 3 - Use a HiddenField.
-
you must be attaching a client side function to on every button to show the confirmation box. So pass one more parameter, which you want to show on confirmation box and update the text accordingly and show the message. Let me know if face problem
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
Yes, you are so right. I am 'old-school' and use mostly server-side confirmations.
-
Yes, you are so right. I am 'old-school' and use mostly server-side confirmations.
:) We should avoid server side postback as much as we can for better performance
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators