asp.net - How to popup Modal Popup extender from Image button? -


i'm working on image viewer. if user clicks image it'd displayed in modal. giving me error targetcontrolid invalid.

any idea how this?

code below

 <form id="form1" runat="server">   <asp:scriptmanager id="scriptmanager1" runat="server">   </asp:scriptmanager>   <asp:imagebutton id="imgitem" runat="server" imgurl="image1.jpg" />    <asp:modalpopupextender id="modalpopupextender1" runat="server"    targetcontrolid="imgitem" popupcontrolid="panel1">   </asp:modalpopupextender>     <asp:panel id="panel1" style="display: none" runat="server">  <p>image displayed here</p>  </asp:panel> </form> 

i have tested code , working fine, means showing me modal popup on image click. problem can see invalid tag in imagebutton imgurl. kindly correct imagebutton tag , retest:

 <asp:imagebutton id="imgitem" runat="server" imageurl="~/thumbs/image1.png" /> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -