danabare Posted July 1, 2003 Posted July 1, 2003 I want to display a message box if the user tries to delete an item in a DataGrid control that cannot be deleted due to a FK constraint. I already have the code to check if the PK is used as a FK but just need to code to display an OK Only box. Thanks :D Quote
*Experts* mutant Posted July 1, 2003 *Experts* Posted July 1, 2003 ASP.NET cant display a message box, you will need to use JavaScript. Quote
danabare Posted July 1, 2003 Author Posted July 1, 2003 Do you have an example? I'm not sure how to call the JScript from my VB.NET function?? Quote
bungpeng Posted July 2, 2003 Posted July 2, 2003 You can use either Javascript or VBScript, just use "MyControl.Attributes.Add" to add your scripting to client site. Quote
danabare Posted July 2, 2003 Author Posted July 2, 2003 Hey thnx guys! :D I was able to get it working. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.