?
Solved

how do i view this code

Posted on 2006-11-28
1
Medium Priority
?
254 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 1500 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

864 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