This is little confusing that in your thread title, you said it causes other buttons to cause an error, while in your post you said the error is on the DeleteButton function code which seems contradictory.
khedir
System.NullReferenceException: 'Object reference not set to an instance of an object.'
I built a demo based on the code your provided, but the issue can not be reproduced. According to the error and the location you provided where the error occurs, it's most likely that your c# code can not find the control whose id is "DeleteButton".
Can you provide the complete code including both of the front end and back end? And please pay attention to the format of your post content, it's really hard to read if you post so many meaningless html elements. Maybe the "Paste as Text"
can help.
None
0 Points
1 Post
Adding jquery dialog box to formview delete button causes other buttons to cause an error
Mar 29, 2020 05:21 PM|khedir|LINK
Contributor
3140 Points
983 Posts
Re: Adding jquery dialog box to formview delete button causes other buttons to cause an error
Mar 30, 2020 01:54 AM|Yang Shen|LINK
Hi khedir,
This is little confusing that in your thread title, you said it causes other buttons to cause an error, while in your post you said the error is on the DeleteButton function code which seems contradictory.
I built a demo based on the code your provided, but the issue can not be reproduced. According to the error and the location you provided where the error occurs, it's most likely that your c# code can not find the control whose id is "DeleteButton".
Can you provide the complete code including both of the front end and back end? And please pay attention to the format of your post content, it's really hard to read if you post so many meaningless html elements. Maybe the "Paste as Text"
can help.
Best Regard,
Yang Shen