Click to See Complete Forum and Search --> : How to deploy a usercontrol ? Help please


Shankar B
November 16th, 2004, 12:01 PM
Hi,

I have included a usercontrol userctr.ascx in my MyPage.aspx and is working fine in my computer.

Both Mypage.aspx & userctr.ascx are in same path.

After deploying Mypage.aspx & UserCtr.ascx to the web server , Mypage.aspx is showing all objects except userctr.ascx !

Here is the command I use to register and include usersontrol in Mypage.aspx :

<%@ Register TagPrefix="Hi" TagName="Thx" Src="userCtr.ascx"%>


<Hi:Thx id="WebWork" runat="server"></Hi:Thx>

What am I doing wrong ?

Advance thanks !

Regards,
shangar

BMeister
November 18th, 2004, 11:45 AM
Hi Shangar,
It looks fine to me. The only thing I can think of here is that the path indicated by the Src attribute should be the path from the application root directory, not relative to the containing page.

Good luck