
however, I want to create the image dynamically:
Image tblImg = new Image();
tblImg.ImageUrl = "image/table3.png";
can i add the function ondragstart="drag(event)" to the dynamic image in the code ?
can i add the function ondragstart="drag(event)" to the dynamic image in the code ?
Manish Kumar ChoudharyPosted Nov 23, 2014, 11:33 PM
Use
gavriel ankriPosted Nov 24, 2014, 9:09 AM
Manish Kumar ChoudharyPosted Nov 24, 2014, 7:32 AM
For doing that you have to remove that Image control when you click that button and add another image control after that.
gavriel ankriPosted Nov 24, 2014, 7:20 AM
if I move the image and then press the button, the image come back to the original place
Manish Kumar ChoudharyPosted Nov 24, 2014, 7:12 AM
in Button click. Its working fine its zooming the image.
gavriel ankriPosted Nov 24, 2014, 7:05 AM
and in the button click I just did num++
Manish Kumar ChoudharyPosted Nov 24, 2014, 6:39 AM
As i think you placed your code inside button click events so every time you click that button new instance of image is created so it goes back.
gavriel ankriPosted Nov 24, 2014, 6:35 AM
I can move the dynamic image now, but do you know why when I click the button another time, everything goes back. I mean I can move the image, but when I click the button, the image came back to the first place.
can I make it stay in the new place after page refresh ?