How we can achieve below scenario in SharePoint 2013,I am confused where to start:

I have webpart which will do login functionality based on list, once user Logged success I need to show a List Items(this will be another webpart or User Control). what is the best approach for this?

I'm wondering if I can do this in one webpart which will be having two User controls (Login and another as List Item viewer)

Highly appreciate feedback.

thank you.

  • Are you using Visual Web Part creating Visual Studio? Commented Aug 23, 2017 at 9:08
  • than after login just make that control invisible i.e UserControlID.Visible = false Commented Aug 24, 2017 at 9:56

1 Answer 1


Web Part can add another web part or user control on runtime. Here's another question where this was being asked. You just need to modify page Controls collection property on host web part.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.