Custom control with an object property

Discussion in 'ASP .Net' started by Frédéric Mayot, Aug 4, 2004.

  1. Hi,
    I have a web custom control which inherits from WebControl. It contains a
    property of type Object (because it's a datasource). When I assign the
    property in my codebehind, OK. When I assign the property in the HTML view
    with <%# %> it doesn't work. It's strange because if I set to String the
    type of my property and if I put <%#new String("qsdf") %> it works fine.
    I probably missed something...
    Any idea ?
    Thanks.
     
    Frédéric Mayot, Aug 4, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt Sokol
    Replies:
    2
    Views:
    427
    Theo Tillotson
    Aug 7, 2003
  2. Rob Joosen

    Keep custom property-value in custom rendered control

    Rob Joosen, May 12, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    157
    Rob Joosen
    May 12, 2004
  3. Replies:
    0
    Views:
    179
  4. Zarko Gajic

    Custom Attributes (AttributeTargets.Property) and Property Type

    Zarko Gajic, Apr 7, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    455
    Zarko Gajic
    Apr 7, 2005
  5. anon
    Replies:
    0
    Views:
    220
Loading...

Share This Page