Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom control with an object property

Thread Tools

Custom control with an object property

Frédéric Mayot
Posts: n/a
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 ?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Attributes (AttributeTargets.Property) and Property Type Zarko Gajic ASP .Net Building Controls 0 04-07-2005 02:20 PM
Bitmap property of custom control, object cannot be created ASP .Net Building Controls 0 01-27-2005 02:39 PM
Custom Control : One custom property to array of controls anon ASP .Net Web Controls 0 01-15-2005 11:32 AM
Keep custom property-value in custom rendered control Rob Joosen ASP .Net Building Controls 0 05-12-2004 11:56 AM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM