Custom User Control not updating table

Katrina Miday asked on May 20, 2015 21:02

I'm in the process of running test upgrades from 7 to 8.2 to troubleshoot and catch and fix bugs.

In v7 I have custom ascx user controls that display and update information from an external database. These were displayed using the user control webpart, or occasionally as a custom webpart (if it is used more than once). The controls use basic .net formviews, gridviews and repeaters to display and update data.

Since updating to v8.0, the data is still being displayed, but whenever a user tries to update content, the webpart disappears. I thought the issue might be because I use the API to pull user and role data, so I tried a basic default formview to view and update data, but the same thing happened. I'm not sure where to begin troubleshooting from here, any advice or ideas are appreciated. Thanks in advance!

Recent Answers


Charles Matvchuk answered on May 20, 2015 21:09

Are you using a full Post Back or a call back and are there any ajax panels put in manually or selected in the webpart?

0 votesVote for this answer Mark as a Correct answer

Katrina Miday answered on May 20, 2015 21:33

Full post back, I think. I apologize I'm self taught so occasionally there are holes in my knowledge. When I enable ajax panels via the webpart properties, attempting to edit or add, the formview doesn't disappear, but clicking on the "update" button does nothing.

Disabling the ajax panels and disabling the view state via the webpart properties, clicking the update button puts the form in edit mode, but clicking update, doesn't update the item. I am able to add new items with this setting.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on May 20, 2015 21:35

Is it tied to a sqlDataSource ? or do you have code to perform the data handling.

0 votesVote for this answer Mark as a Correct answer

Katrina Miday answered on May 20, 2015 21:38

Yes, it's tied to a SQL DataSource

0 votesVote for this answer Mark as a Correct answer

Katrina Miday answered on May 21, 2015 18:57

I ended up putting the form controls into ASPX templates instead of the UserControl webpart and they're working again.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on May 26, 2015 01:43

It should of not mattered. Perhaps there something a miss with your code.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.