How to deploy a usercontrol ? Help please
-
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"%> What am I doing wrong ? Advance thanks ! Regards, shangar
-
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"%> What am I doing wrong ? Advance thanks ! Regards, shangar
hi .. i thin u r getting problem, when u are inserting tag for this control. nothing u have to do with usercontro to deploy.. just drag the usercontrol over the page where u want to use it. it will be registered itself. it will work fine... it would be better if u past code here, so that I can check where something is going wrong.
-
hi .. i thin u r getting problem, when u are inserting tag for this control. nothing u have to do with usercontro to deploy.. just drag the usercontrol over the page where u want to use it. it will be registered itself. it will work fine... it would be better if u past code here, so that I can check where something is going wrong.
Thanks Hussain, Even a simple usercontrol containg only one button(!) is not working for me, so i dont think there is probs in usercontrol. Here is code ! --------------------------------------- <%@ Register TagPrefix="work" TagName="bee" Src="CTRL/UserRegistration.ascx"%> ' i keep UserRegistration.ascx in a folder called ' CTRL <%@ Page Language="vb" AutoEventWireup="false" Codebehind="home.aspx.vb" Inherits="Wee.WebForm1" %> ----------------------------------------- Thanks, shangar