Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, November 14, 2011 5:37:36 AM(UTC)

maredjo  
maredjo

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?

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, November 15, 2011 2:57:30 AM(UTC)
Maen Hasan

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.053 seconds.