Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to define a property in the user control?

Posted on 2006-06-20
Medium Priority
Last Modified: 2006-11-18
I have created a user control: myUserControl.ascx. A property is defined as follows:

private string target;

    public String Target
        get { return target; }
        set { target = value;}

myUserControl is registered with the master page:
<%@ Register Src="../UserControls/myUserControl.ascx" TagName="myUserControl" TagPrefix="uc11" %>

My intention is to set the property Target externally. But when I click on the user control on the master page, it shows nothing on the property page. Anyone can offer some ideas?
Question by:chuang4630
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

kGenius earned 1500 total points
ID: 16942253

Author Comment

ID: 16943837
This link provides useful informaton for exposing the property in the designer.

Actually, developer can set the property in the aspx while declaring the user control as follows:

<uc11:myUserControl ID="myUserControl1" runat="server" Target="myTestTarget.aspx" />


Expert Comment

ID: 16944514
as you say. :-)


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question