How to assign CommandArgument property to CommandEventArgs class

Last post 07-04-2007, 12:20 PM by poruchik. 0 replies.
Sort Posts: Previous Next
  •  07-04-2007, 12:20 PM 31270

    How to assign CommandArgument property to CommandEventArgs class

    The following xml entry assigns CommandName to CommandEventArgs object:
     
    <item type="Image" name="Save" postback="True" />
     
    CommandEventArgs class also has CommandArgument property that can be handled in a handler like this:
     
    protected void HtmlEditor_PostBackCommand(object sender, CommandEventArgs e) {
                
                  string commandName = (string)e.CommandName;
     
               string commandArgument = (string)e.CommandArgument;
     
    }
     
    The question is how do I assign CommandArgument property?
View as RSS news feed in XML