This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, November 14, 2011 5:37:36 AM(UTC)
Groups: Registered
Posts: 4
I have an asp.net Hidden Field I want to hold the process made to the image in Hidden Field value
Example :
If I make 90‘ rotation to image I want the Hidden Field value to be "90"
But I cant :(
I try to do this in the " DocumentCleanButtons.js "
function btnRotateLeft90_onclick()
{
var cmd = new RotateCommand(27000, RotateCommandFlags.Bicubic | RotateCommandFlags.Resize, 'black');
WebImageViewer1.ApplyCommand(cmd);
var process = document.getElementById("hdnvalue"); // Hidden Field to hold the process made
process.value = "90";
}
When I try to read the value in the code behind the value of the Hidden Field Dose not change still empty
Please help?
#2
Posted
:
Tuesday, November 15, 2011 2:57:30 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
If you are declaring the Hidden field as follows:
+------------+
<form id="form1" runat="server">
<div>
<input id="inpHide" type="hidden" runat="server"/>
...
+------------+
You can set the Hidden field value as follows:
+------------+
function btnRotateLeft90_onclick() {
var cmd = new RotateCommand(27000, RotateCommandFlags.Bicubic | RotateCommandFlags.Resize, 'black');
WebImageViewer1.ApplyCommand(cmd);
var jsVar = "90";
var hiddenControl = 'inpHide';
document.getElementById(hiddenControl).value = jsVar;
}
+------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.