For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Webcontrols > April 2005 > Runtime adding server controls into Panel









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Runtime adding server controls into Panel
Ram via DotNetMonster.com

2005-04-19, 4:02 pm

Hi,
I created one user control that has two Imagebuttons and one grid control.
When i am trying to add the usercontrol into panel i am getting below error.
Error: "Control 'lWebPanel0_Image0' of type 'ImageButton' must be placed
inside a form tag with runat=server"

If i remove the butttons on user control it is working fine. Is there any
thing to set at runtime.
Pls help me in this.

Thanks,
Ram
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com