Custom control with an object property

  • Thread starter Frédéric Mayot
  • Start date
F

Frédéric Mayot

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top