Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Cmserver Evaluation > How to create a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 517 of 601
Post > Topic >>

How to create an XML PlaceholderToBind property from a userControl ..

by "David De Cotis"<mcms@[EMAIL PROTECTED] > Jul 22, 2005 at 01:58 PM

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
 




 11 Posts in Topic:
How to create an XML PlaceholderToBind property from a userCont
"David De Cotis"  2005-07-22 13:58:12 
Re: How to create an XML PlaceholderToBind property from a user
"Stefan [MSFT]"  2005-07-24 11:25:21 
Re: How to create an XML PlaceholderToBind property from a user
"David De Cotis"  2005-07-25 07:55:35 
Re: How to create an XML PlaceholderToBind property from a user
"Stefan [MSFT]"  2005-07-25 16:48:33 
Re: How to create an XML PlaceholderToBind property from a user
"David De Cotis"  2005-07-25 16:10:09 
Re: How to create an XML PlaceholderToBind property from a user
"Stefan [MSFT]"  2005-07-26 10:13:56 
Re: How to create an XML PlaceholderToBind property from a user
"David De Cotis"  2005-07-26 08:03:06 
Re: How to create an XML PlaceholderToBind property from a user
"Stefan [MSFT]"  2005-07-26 15:15:18 
Re: How to create an XML PlaceholderToBind property from a user
"David De Cotis"  2005-07-26 09:30:01 
Re: How to create an XML PlaceholderToBind property from a user
"David De Cotis"  2005-07-26 10:02:43 
Re: How to create an XML PlaceholderToBind property from a user
"James Coleman"  2006-02-07 10:59:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 22:14:34 CST 2008.