Dec 30, 2011 10:29 AM|justinhowell82|LINK
Ok I don't know what is going on here. Just for trouble-shooting I added the control to the tab container in my visual web part in the designer instead of doing it dynamically which I do need to do in the long run. The control shows up on the vwp fine.
The visual web part has a button on it to refresh some data. Now with the control on the page the button causes a generic Sharepoint error. If I step through the code the error page comes up right after the Page_Load event of the vwp is done. Using fiddler
is looks like there is a 401 unauthorized error happening on the postback which sharepoint is not displaying for some reason. This error does not appear if I don't have my custom user control on the page and it works as designed. Also if I add my user control
to a regular aspx page and do the exact same process it works fine, so it seems like an issue with the vwp. Anyone have any idea why this would happen when tryinh to postback a visual web part with a user control inside it?