Solved

how do i view this code

Posted on 2006-11-28
1
225 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now