Solved

how do i view this code

Posted on 2006-11-28
1
230 Views
Last Modified: 2008-02-01
Hi experts

Does anyone know how i can run and view this code example? I found here

http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/behaviors/library/tabstrip/tabstrip_ovw.asp

I have created an aspx page and linked to the code below via <script language="javascript" src="TabScript.js"></script>  but no luck!!

thanks

<HTML XMLNS:mp XMLNS:ts>
   <HEAD>
      <TITLE>TabStrip/MultiPage Markup Example</TITLE>
          <LINK REL="stylesheet" HREF="/workshop/samples/samples.css" TYPE="text/css">
      <?IMPORT NAMESPACE="mp" IMPLEMENTATION="multipage.htc"/>
       <?IMPORT NAMESPACE="ts" IMPLEMENTATION="tabstrip.htc"/>
   </HEAD>
     <!--TOOLBAR_START--> <!--TOOLBAR_EXEMPT--> <!--TOOLBAR_END-->
   <BODY>
      <H1>Using TabStrip and MultiPage Behaviors</H1>
       <P>This example shows how to use the <b>TabStrip</b> behavior with the <b>MultiPage</b> behavior in markup. Click a tab to switch between page views. </P>
      <ts:TABSTRIP ID="oTS" TARGETID="oMP">
          <ts:TAB TEXT="Page 1"/>
          <ts:TAB TEXT="Page 2"/>
          <ts:TAB TEXT="Page 3"/>
       </ts:TABSTRIP>
       </TD>
       <TD>
      <mp:MULTIPAGE ID="oMP" STYLE="border:solid black 1px;padding:5px;">
         <mp:PAGEVIEW ID="page0">
            This is the first page in the multipage.
         </mp:PAGEVIEW>
         <mp:PAGEVIEW ID="page1">
            This is the second page in the multipage.
         </mp:PAGEVIEW>
         <mp:PAGEVIEW ID="page2">
            This <B>page</B> contains <I>HTML markup</I>.
         </mp:PAGEVIEW>
      </mp:MULTIPAGE>
       <P />
0
Comment
Question by:SirReadAlot
1 Comment
 
LVL 12

Accepted Solution

by:
jessegivy earned 500 total points
ID: 18031233
Hi there,

What you've posted above looks as if it's a partially complete HTML page.  I notice that the body tag and html tag isn't terminated, which is bad.

...Anyway, I guess the way it's intended to be used is in a frame, or Iframe.  There doesn't appear to be any javascript associated with what you've shown, so saving it as a .js file will not work, it should be put in a separate aspx page.

~Jesse
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question