Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to deploy a usercontrol ? Help please

How to deploy a usercontrol ? Help please

Scheduled Pinned Locked Moved ASP.NET
sysadminhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peepys
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • P peepys

      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

      M Offline
      M Offline
      munawarhussain
      wrote on last edited by
      #2

      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.

      P 1 Reply Last reply
      0
      • M munawarhussain

        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.

        P Offline
        P Offline
        peepys
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups