i have master page content one page inside this page there is a many of imagebutton's ok , i want when i click the image the url open in iframe tage the page , thanks
Try this
<head id="Head1" runat="server"> <script type = "text/javascript"> function ShowIframe() { document.getElementById("frame1").src = "http://www.google.com"; return false; } </script> </head> <body> <form id="form1" runat="server"> <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick = "return ShowIframe()"/> <iframe id = "frame1" frameborder = "0" height = "100px" width = "500px"></iframe> </form> </body> </html>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.