ASP.NET UserControl Uri property

Posted by Roedel on Stack Overflow See other posts from Stack Overflow or by Roedel
Published on 2010-06-16T13:09:09Z Indexed on 2010/06/16 13:12 UTC
Read the original article Hit count: 127

Filed under:
|
|

I want to pass a property of the type System.Uri to an WebControl from inside an aspx page.

Is it possible to pass the property like that:

<MyUserControl id="myusercontrol" runat="server">
    <MyUrlProperty>
        <System.Uri>http://myurl.com/</System.Uri>
    </MyUrlProperty>
</MyUserControl>

instead of:

<MyUserControl id="myusercontrol" runat="server" MyUrlProperty="http://myurl.com/" />

which can't be casted from System.String to System.Uri

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about usercontrols