Solved

how do i view this code

Posted on 2006-11-28
1
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML auto refresh to another site 4 44
Need help with FaceBook login 2 39
Best explanation of following code css 11 37
iframe stay to the left of page 5 26
This article discusses four methods for overlaying images in a container on a web page
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

738 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