title: How to set DataSource property in.aspx file of a user control?
body: <p>I have a user control (don't want to create custom control) in this control i have a listbox.
  Now i want to user Datasource property which can be use as a datasource for this listbox.</p>
  
  <pre><code>&lt;UC:CustomList ID="list" CustomDataSource="objectDataSource1" runat="server" /&gt;
  </code></pre>
  
  <p>In control:</p>
  
  <pre><code> public object CustomDataSource
      {
          get
          {
              return this.checkComboBox.DataSourceID;
          }
  
          set
          {
              this.checkComboBox.DataSource = value;
          }            
      }
  </code></pre>
  
  <p>It give runtime error "Cannot create an object of type 'System.Object' from its string representation 'objectDataSource1' for the 'CustomDataSource' property."</p>