05-25-06 12:15 AM
Yes, that is the correct approach.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Sergio Navarro (MCAD Spain)"
<SergioNavarroMCADSpain@discussions.microsoft.com> wrote in message
news:864D8356-AC7A-4DB3-8EFC-0371BBA5833B@microsoft.com...[vbcol=seagreen]
> Thanks Stefan,
>
> it's working with CmsPosting_PropertyChangingEvent.
>
> The name must be set in e.PropertyValue, not in Posting.name that raises
> an
> exception.
>
> Here is my code, perhaps anybody wants see it:
>
>
> Sub CmsPosting_PropertyChanging(ByVal sender As Object, ByVal e As
> PropertyChangingEventArgs)
>
> Try
>
> ' Dim elPost As Posting = CType(e.Target, Posting)
> ' elPost.name= "name" This isn't working
>
>
> Dim nombrePropiedad As String = e.PropertyName
> Dim valorPropiedad As String = CType(e.PropertyValue, String)
>
> e.PropertyValue = valorPropiedad & "_sufijo"
>
> Catch ex As Exception
>
>
> End Try
>
> End Sub
>
>
> "Stefan [MSFT]" wrote:
>
[ Post a follow-up to this message ]
|