Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>ColorBox Examples</title>
    <style type="text/css">
        body
        {
            font: 12px/1.2 Verdana, Arial, san-serrif;
            padding: 0 10px;
        }
        a:link, a:visited
        {
            text-decoration: none;
            color: #416CE5;
            border-bottom: 1px solid #416CE5;
        }
        h2
        {
            font-size: 13px;
            margin: 15px 0 0 0;
        }
    </style>
    <link media="screen" rel="stylesheet" href="colorbox.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script src="jquery.colorbox.js"></script>
    <script>
        $(document).ready(function () {
            $(".example7").colorbox({ width: "80%", height: "80%", iframe: true });

            $("#<%=btn1.ClientID %>").click(function () {
                //"<%=sessionValue %>"
                $("#a1").trigger("click");
                return false;
            });

        })
    </script>
</head>
<body>
    <form runat="server">
    <p>
        <a class='example7' id="a1" href="http://google.com">Outside Webpage (Iframe)</a></p>
    <asp:Button ID="btn1" runat="server" Text="Click" />
    </form>
</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900