Here i have 3 imagebuttons pan voterid and gst
when i click on any one of the imagebutton for first time it is displaying image in popup and then when i click on another imagebutton
it is displaying nothing when i refresh the page and click on another one it is displaying but when i do the same remaining two are not displaying in popup
for every image i want to view in modal popup i need to do page refreshing how can i solve this pls help me..
pls help me

Rajkiran SwainPosted Jun 1, 2023, 6:30 PM
Rajkiran SwainPosted Jun 2, 2023, 8:05 AM
Based on the provided code, it seems that the issue lies in the logic of displaying the image in the modal popup. The JavaScript function
LoadDocument(url)is not being called from the code-behind when clicking on the image buttons.To solve the issue, you can modify the code as follows:
onclickattribute calling theLoadDocumentfunction:Remove the script blocks and the call to
ScriptManager.RegisterStartupScriptfrom the code-behindimg_PAN_Clickand other similar event handlers.Update the
LoadDocumentJavaScript function to show the modal and set the image source:By making these changes, the
LoadDocumentfunction will be called when clicking on any image button, passing the respective image URL. It will then set the source of theimgFullelement and display the modal with the image.Jaya PrakashPosted May 31, 2023, 11:53 AM
Pls help me sir
my aspx.cs
for modal popup
my javascript
Vishal JoshiPosted May 31, 2023, 5:19 AM
Hello Jaya
Please share your aspx and .cs file brief code for image upload and image preview. I guess some duplicate id or reference issue.but after reviewing code we can resolve it.
Thanks