When I use an asp:button to generate an Outlook reminder, the code to change the button's class doesn't work (I'm changing the button from red to blue, basically). It's as if the fact that the button has been clicked isn't registering even though the rest
of the code runs properly. The problem is limited to buttons used for this purpose - I use the exact same code to change other buttons' classes and they all work.
This is asp.net v4/C#.
My button in the aspx page:
<asp:Button ID="btnScheduleLyncDisable" runat="server" CssClass="btn btn-danger btn-xs" Text="Schedule Lync Disable" OnClick="btnScheduleLyncDisable_Click" />
The code behind:
protected void btnScheduleLyncDisable_Click(object sender, EventArgs e)
{
btnScheduleLyncDisable.CssClass = "btn btn-default btn-xs";
DateTime in1Days = D ...
Go to the complete details ...