I have the following XML:
In my code-behind I have the following function
The issue I am having is that when the parent button is clicked...it is not getting the parents commandname....what would you do to get that value
<
SplitButton
Size
=
"Large"
Text
=
"Descriptive"
ImageUrlLarge
=
"images/widgets_descriptive.png"
CommandName
=
"managedescriptive"
>
<
Button
Text
=
'ABC Codes'
CommandName
=
'descriptive'
CommandArgument
=
'1'
/>
<
Button
Text
=
'Planning Data'
CommandName
=
'descriptive'
CommandArgument
=
'2'
/>
</
SplitButton
>
In my code-behind I have the following function
protected void dsxWebRibbon_SplitButton_Click(object sender, RibbonBarSplitButtonClickEventArgs args)
{
string commandname = args.Button.CommandName;
string commanddata = args.Button.CommandArgument;
switch (commandname)
{
case "opendc":
Response.Redirect("dsxDashboard.aspx");
break;
default:
dsxCommand.InnerHtml = "Invalid Command:" + commandname;
break;
}//end switch
}
The issue I am having is that when the parent button is clicked...it is not getting the parents commandname....what would you do to get that value