开发者

asp.net access user control in vb class

开发者 https://www.devze.com 2023-02-05 06:34 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消