postback for dropdown

  •  12-01-2004, 10:41 PM

    postback for dropdown

    I added the following dropdown to the toolbar...
     
    <itemtype="dropdown"name="MailMergeFields"RenderItemBorder="true"text="Mail Merge"postback="True"command="InsertMailMerge"/>
    itemtype="dropdown"name="MailMergeFields"RenderItemBorder="true"text="Mail Merge"postback="True"command="InsertMailMerge"/>
     
    ...and need to capture the command in postback. Currently I get a message: Command 'InsertMailMerge' Is Not Supported Or Implemented. I had a look at the How To, but I'm still not clear on what I need to do.
     
    What steps do I need to take to make this work? So far all I have in the codebehind is the following:
     

    PrivateSub Editor_PostBackCommand(ByVal sender AsObject, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor.PostBackCommand

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    Sub Editor_PostBackCommand(ByVal sender AsObject, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor.PostBackCommand

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    EndIf

    EndIf
    EndSub
    EndSub
     
    Thanks
    LB
     
    <itemtype="dropdown"name="MailMergeFields"RenderItemBorder="true"text="Mail Merge"postback="True"command="InsertMailMerge"/>
    itemtype="dropdown"name="MailMergeFields"RenderItemBorder="true"text="Mail Merge"postback="True"command="InsertMailMerge"/>
     
    ...and need to capture the command in postback. Currently I get a message: Command 'InsertMailMerge' Is Not Supported Or Implemented. I had a look at the How To, but I'm still not clear on what I need to do.
     
    What steps do I need to take to make this work? So far all I have in the codebehind is the following:
     

    PrivateSub Editor_PostBackCommand(ByVal sender AsObject, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor.PostBackCommand

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    Sub Editor_PostBackCommand(ByVal sender AsObject, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor.PostBackCommand

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    IfString.Compare(e.CommandName, "InsertMailMerge", True) = 0 Then

    EndIf

    EndIf
    EndSub
    EndSub
     
    Thanks
    LB
View Complete Thread