N
Nathan Sokalski
I want to add attributes to my custom controls that are not of type String.
I know how to convert from a String to the different types that I want, but
when the user assigns values to the attributes using properties (assigns the
values programmatically) I want them to be able to use the type I would be
converting the attribute to. For example, here are the two basic scenarios:
Assigning the value using attributes:
<mytags:linkmaker runat="server" id="linkmaker1"
url="http://www.nathansokalski.com/"></mytags:linkmaker>
Assigning the value programmatically:
linkmaker1.url=New Uri("http://www.nathansokalski.com/")
The problem is that if I make the property of type Uri I recieve a Parser
Error, and if I make it a String the user cannot programmatically assign a
Uri to it. What do I do? Thanks.
I know how to convert from a String to the different types that I want, but
when the user assigns values to the attributes using properties (assigns the
values programmatically) I want them to be able to use the type I would be
converting the attribute to. For example, here are the two basic scenarios:
Assigning the value using attributes:
<mytags:linkmaker runat="server" id="linkmaker1"
url="http://www.nathansokalski.com/"></mytags:linkmaker>
Assigning the value programmatically:
linkmaker1.url=New Uri("http://www.nathansokalski.com/")
The problem is that if I make the property of type Uri I recieve a Parser
Error, and if I make it a String the user cannot programmatically assign a
Uri to it. What do I do? Thanks.