B
Buddy Ackerman
I created this class
Public Class HTMLFileInput : Inherits System.Web.UI.HtmlControls.HtmlInputFile
Public Property Data As String
Get
Return ViewState("HTMLFileInput.Data")
End Get
Set (ByVal Value As String)
ViewState("HTMLFileInput.Data") = Value
End Set
End Property
End Class
Then I added this to my web page :
<%@ Register TagPrefix="custctrl" Namespace="MyNamespace" Assembly="MyNameSpace" %>
and this:
<custctrl:HTMLFileInput type="file" size="40" id="mycontrol"
data="<%# cType(Container.DataItem, XmlNode).Attributes.itemOf("mydata").innerText %>">
It rendered as this:
<custctrl:HTMLFileInput type="file" size="40" id="mycontrol" data="14">
What's the problem?
--Buddy
Public Class HTMLFileInput : Inherits System.Web.UI.HtmlControls.HtmlInputFile
Public Property Data As String
Get
Return ViewState("HTMLFileInput.Data")
End Get
Set (ByVal Value As String)
ViewState("HTMLFileInput.Data") = Value
End Set
End Property
End Class
Then I added this to my web page :
<%@ Register TagPrefix="custctrl" Namespace="MyNamespace" Assembly="MyNameSpace" %>
and this:
<custctrl:HTMLFileInput type="file" size="40" id="mycontrol"
data="<%# cType(Container.DataItem, XmlNode).Attributes.itemOf("mydata").innerText %>">
It rendered as this:
<custctrl:HTMLFileInput type="file" size="40" id="mycontrol" data="14">
What's the problem?
--Buddy