Click here to Skip to main content
15,886,137 members
Articles / Web Development / HTML

Dynamic Generation of Tabs to Host IFrames using jQuery and Json in ASP.NET MVC

Rate me:
Please Sign up or sign in to vote.
4.82/5 (6 votes)
1 Oct 2010CPOL8 min read 46.8K   1.6K   25  
This article introduces a method to dynamically generate tabs to host IFrames using jQuery and Json in ASP.NET MVC.
<%@ Master Language="C#"
    Inherits="System.Web.Mvc.ViewMasterPage" %>

<!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 runat="server">
    <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
    <link rel="SHORTCUT ICON"
        href="<%= Url.Content("~/Images/pig_mac_archigraphs.ico") %>" />
    <link rel="stylesheet" type="text/css"
        href="<%= Url.Content("~/Styles/AppStyle.css") %>" />
    <link rel="stylesheet" type="text/css"
        href="<%= Url.Content("~/Styles/jquery-ui-1.8.5.custom.css") %>" />

    <script type="text/javascript"
        src="<%= Url.Content("~/Scripts/jquery-1.4.2.min.js") %>">
    </script>
    <script type="text/javascript"
        src="<%= Url.Content("~/Scripts/jquery-ui-1.8.5.custom.min.js") %>">
    </script>
</head>

<body>
    <div>
        <div>
            <div id="Header">
                <h1>Dynamic Creation of Tabs for IFrames using jQuery and Json in MVC</h1>
                <label class="Author">Developed By Song Li - 9/23/2010</label>
            </div>
        </div>
        <div>
            <asp:ContentPlaceHolder ID="MainContent" runat="server" />
        </div>
        <div id="Footer"><h1>The Code Project Open License (CPOL) 2010 - 2020®</h1></div>
    </div>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
United States United States
I have been working in the IT industry for some time. It is still exciting and I am still learning. I am a happy and honest person, and I want to be your friend.

Comments and Discussions