When Select the checkbox then captured image is gone from image control. The Checkbox AutoPostBack Property is True when i set it False then the checkbox value not generation into Textboxes. What to do in this query..?
My image is coming from Page 1 to page 2 which is catpured by webcam....
My Page 1 code to pass captured image by webcam from page 1 to page 2
- <script type="text/javascript">
- function passDetails() {
- if (window.opener != null && !window.opener.closed) {
- var vImage2 = window.opener.document.getElementById("vImage");
- window.opener.SetSource(document.getElementById("imgCapture").src);
- }
- window.close();
- }
- </script>
Page 2 code to recevie captured image by webcam from page 1 to page 2
vImage is my image control ID.
i have used hidden control to store image its id is vimagehidden
- <script>
- function SetSource(src)
- {
- document.getElementById("vImage").src = src;
- document.getElementById("vimagehidden").value = src;
- }
- </script>