You must Sign In to post a response.
  • Category: ASP.NET

    How to visible button user control in default.aspx page

    i use user control page in project

    Then i use one default.aspx page.

    In that default.aspx page one button is there.

    I want to write the code to visible the default.aspx button in the user control page.

    for that how can i do in using c#.
  • #762079
    Hi rao,

    didn't get your question clearly. Please elaborate your requirement clearly so that we can help you.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #762107
    Hello Rao,

    Use the below mentioned code :

    <%@ Register TagPrefix="uc" TagName="SomeCustomControl" Src="~/PathTo/TestControl.ascx" %>

    Hope this will help you to use user control name TestControl in any page.

    Wherever you want to use that user control add the above mentioned code than you can use it in those pages.

    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

Sign In to post your comments