开发者

WebUserControl with file property

开发者 https://www.devze.com 2023-01-28 11:37 出处:网络
I\'m doing a WebUserControl, and I want to add a property that show a file list in DesingView, like the property ImageUrl on an Image Control, but instead of images, th开发者_运维技巧is property accep

I'm doing a WebUserControl, and I want to add a property that show a file list in DesingView, like the property ImageUrl on an Image Control, but instead of images, th开发者_运维技巧is property accept xml files.

Sorry for my English.


I found the solution, is so easy : )

[UrlProperty]
    public string SourceFile
    {
        get
        {
            //Some Code
            return "";
        }
        set
        {
            //Some Code
        }
    }

It's to a generate a FileName property

0

精彩评论

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

关注公众号