Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to render controls inside a visual webpart but get the Error: Runat="Server" is missing so i googled out that i should use

public override void VerifyRenderingInServerForm(Control control)

{ /* Verifies that the control is rendered */ }

but i can not use this because i am using a usercontrol a not a page so how should i solve this?

share|improve this question
Please stop adding almost the same question over and over again, extend the original question with more information instead. –  Robert Lindgren Apr 21 '13 at 12:50
Did you add the runat="server" tag to the controls on the webpart's ASCX? –  James Love Apr 21 '13 at 16:59
Yes i did....... –  TheRock Apr 21 '13 at 20:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.