Hello all, I have created a userControl that will be dragged and dropped in
all of my MCMS templates. Actually I am using Susan Warren's XMLEditGrid
source code to create a userControl that will allow users to add data.
For
example, lastName, firstName, addresss etc. The userControl works just
fine.
However, I now would like to use it in all my MCMS templates. The
problem
is that when I drag and drop the userControl, I cannot bind the
XMLEditGrid
userControl to an XMLPlaceholder because the PlaceholderTobind property
does
not exist. So I am required to code the PlaceholderTobind property in the
XMLEditGrid userControl. Below is my source code VB.NET for the
PlaceholderTobind property.
<Bindable(True), Browsable(True), Category("Data"), Description("Name
of
the XML PlaceHolder.")> _
Public Property XMLPlaceHolder() As McmsWebControlLibraryVB.
McmsWebControlLibraryVB.McmsXmlPlaceholderVB
Get
Dim s As McmsWebControlLibraryVB.McmsWebControlLibraryVB.
McmsXmlPlaceholderVB = CType(ViewState("XMLPlaceHolder"),
McmsWebControlLibraryVB.McmsWebControlLibraryVB.McmsXmlPlaceholderVB)
If s Is Nothing Then
Return Nothing
End If
Return s
End Get
Set(ByVal Value As McmsWebControlLibraryVB.
McmsWebControlLibraryVB.McmsXmlPlaceholderVB)
ViewState("XMLPlaceHolder") = Value
End Set
End Property
However, it does not work. Does anyone have any ideas .....
Thank-you all in advance


|