L
Laflak
Hi,
I have created a composite control which function "perfectly" in my web page
(Framework1.1).
The problem is:
When I try to use it on a datagrid, I'm not able to set properties
I probabily miss something.
Here is snippet my Control Code:
<DefaultProperty("Value"), ToolboxData("<{0}mieWebCalendar
runat=server></{0}mieWebCalendar>")> _
Public Class PmieWebCalendar
Inherits System.Web.UI.Control
Implements INamingContainer
<Bindable(True), Description("Value of control")> Public Property Value()
As String
Get
Return ViewState("value" & ClientID)
End Get
Set(ByVal Value As String)
ViewState("value" & ClientID) = Value
End Set
End Property
The design code on my page.
<pmiemieWebCalendar id="oMilestoneDate" runat="server"
value="23.12.1978"></pmiemieWebCalendar>
This work perfectly when the control is on the page. But whe I used it on a
datagrid for the Value Property did not receive any more the value defines in
HTML tag.
Any solutions or idea would be very appreciate.
thank you
I have created a composite control which function "perfectly" in my web page
(Framework1.1).
The problem is:
When I try to use it on a datagrid, I'm not able to set properties
I probabily miss something.
Here is snippet my Control Code:
<DefaultProperty("Value"), ToolboxData("<{0}mieWebCalendar
runat=server></{0}mieWebCalendar>")> _
Public Class PmieWebCalendar
Inherits System.Web.UI.Control
Implements INamingContainer
<Bindable(True), Description("Value of control")> Public Property Value()
As String
Get
Return ViewState("value" & ClientID)
End Get
Set(ByVal Value As String)
ViewState("value" & ClientID) = Value
End Set
End Property
The design code on my page.
<pmiemieWebCalendar id="oMilestoneDate" runat="server"
value="23.12.1978"></pmiemieWebCalendar>
This work perfectly when the control is on the page. But whe I used it on a
datagrid for the Value Property did not receive any more the value defines in
HTML tag.
Any solutions or idea would be very appreciate.
thank you