i have a usercontrol named filebox (which wraps a fileupload and some related stuff)
in a certain .net class i have need to use this type as a ctype
but i cant s开发者_如何转开发eem to call ctype(aobject,filebox)
or either ctype(aobject,Controls_filebox) (which is the correct name)
how can i convert an object to this type?
thanks a million!
You need to add the class' namespace.
It's probably in the ASP
namespace; you can check in the Object Browser.
You can change the namespace by adding Class="My.Namespace.Filebox"
in the <%@ Control
directive.
精彩评论