Using user control with server side control. Options
Leads
Posted: Sunday, September 14, 2008 10:02:11 AM
Rank: Enthusiast

Joined: 9/11/2008
Posts: 34
Location: Dhaka
Hi,
I used a server side textbox in my user control. Also In my template i write as follows:


<?ASPNET_FORM runat="server">
...
</?ASPNET_FORM>



But still it give me the following error when i preview the content.

Control 'UCTest1_1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server

Please assist me in solving my problem.

Thanks
Ismail
Leads
Posted: Sunday, September 14, 2008 11:30:59 AM
Rank: Enthusiast

Joined: 9/11/2008
Posts: 34
Location: Dhaka
Hi,
I solved it by using a master page.

Thanks
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.