开发者

asp.net access user control in vb class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜