hondaman2003
Programmer
I have a page that allows the user to select an image then click upload and it will save the file on the server, resize it, then display the image immediately.
I have also added two buttons, each for rotating 90 degrees in each direction. I would like the rotating to happen on the server then the image refresh without a full postback. I have the code correct but the image is not refreshing after rotating. I confirmed the rotating is happening on the server correctly.
Here is my code:
I have also added two buttons, each for rotating 90 degrees in each direction. I would like the rotating to happen on the server then the image refresh without a full postback. I have the code correct but the image is not refreshing after rotating. I confirmed the rotating is happening on the server correctly.
Here is my code:
Code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Image ID="Image1" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnRotateClockwise90" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="btnRotateCounterClockwiseRight" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:Button ID="btnRotateClockwise90" runat="server" Text="Clockwise 90" onclick="btnRotateClockwise90_Click" UseSubmitBehavior="False" />
<asp:Button ID="btnRotateCounterClockwiseRight" runat="server" Text="Counter clockwise 90" onclick="btnRotateCounterClockwiseRight_Click" />