Welcome, Guest
  • Author Topic: Display limited childnodes  (Read 2092 times)

    vishal

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Display limited childnodes
    « on: 02/22/04, 23:31 »
    <root>
    <Subject Name="dotnet">
          <Topic>.NET</Topic>
          <Questions>
       <!--Question 1-->
             <Question no="1">
                <Name>Tell me about Microsoft. NET features?</Name>
                <Answers>
                   <Option no="1">.NET is Microsoft's new Internet and Web strategy </Option>
                   <Option no="2">.NET is NOT a new operating system </Option>
                   <Option no="3">.NET is a new Internet and Web based infrastructure </Option>
                   <Option no="4">.NET delivers software as Web Services </Option>
                   <Option no="5">.NET is a framework for universal services </Option>
                   <Option no="6">.NET is a server centric computing model </Option>
                   <Option no="7">.NET will run in any browser on any platform </Option>
                   <Option no="8">.NET is based on the newest Web standards </Option>
                </Answers>
             </Question>
       <!--Question 2-->
             <Question no="2"><Name>What are the .NET Internet Standards?</Name>
                <Answers>
                   <Option no="1">HTTP, the communication protocol between Internet Applications </Option>
                   <Option no="2">XML, the format for exchanging data between Internet Applications </Option>
                   <Option no="3">SOAP, the standard format for requesting Web Services </Option>
                   <Option no="4">UDDI, the standard to search and discover Web Services </Option>
                </Answers>
             </Question>
       <!--Question 3-->
             <Question no="3"><Name>What are the Differences between ASP and ASP .NET?</Name>
                <Answers>
                   <Option no="1">ASP .NET has better language support, a large set of new controls and XML based components, and better user authentication.</Option>
                   <Option no="2">ASP .NET provides increased performance by running compiled code.</Option>
                   <Option no="3">ASP .NET code is not fully backward compatible with ASP.</Option>
                   <InternalOptions>
                      <Suboption>
                         <Toptext>New in ASP .NET</Toptext>
                         <InternalOption no="1">Better Language Support </InternalOption>
                         <InternalOption no="2">Better Language Support </InternalOption>
                         <InternalOption no="3">Better Language Support </InternalOption>
                         <InternalOption no="4">Better Language Support </InternalOption>
                      </Suboption>
                      <Suboption>
                         <Toptext>Language Support</Toptext>
                         <InternalOption no="1">ASP .NET uses the new ADO .NET. </InternalOption>
                         <InternalOption no="2">ASP .NET supports full Visual Basic, not VBScript. </InternalOption>
                         <InternalOption no="3">ASP .NET supports C# (C sharp) and C++. </InternalOption>
                         
                      </Suboption>

                   </InternalOptions>
                </Answers>
             </Question>
       <!--Question 4-->
             <Question no="4"><Name>Explain the differences between Server-side and Client-side code?</Name>
                <Answers>
                   <Option no="1">Server side executes on server side and client side code executes on client side (browser).</Option>
                   
                </Answers>
             </Question>
           <!--Question 5-->
             <Question no="5"><Name>What type of code is found in a Code-Behind class?</Name>  
                <Answers>
                   <Option no="1">Server Code</Option>
                   
                </Answers>
             </Question>
           <!--Question 6-->
                           <Question no="6"><Name>Should validation (did the user enter a real date) occur server-side or client-side? Why?</Name>
                <Answers>
                   <Option no="1">Validation controls will identify the browser whether it will support JavaScript or not. If u r browser supports java script then the validation controls work on client side, otherwise, it works on server side.</Option>
                   
                </Answers>
             </Question>
       <!--Question 7-->
             <Question no="7"><Name>Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?</Name>
                <Answers>
                   <Option no="1">Connection less and connection based. Data set contains many data tables and record set contains a single table.</Option>
                   
                </Answers>
             </Question>
       <!--Question 8-->
             <Question no="8"><Name>What is an assembly?</Name>
                <Answers>
                   <Option no="1">An assembly is a collection of types and resources that forms a logical unit of functionality.</Option>
                   
                </Answers>
             </Question>
       <!--Question 9-->
             <Question no="9"><Name>Which method do you invoke on the DataAdapter control to load your generated dataset with data?</Name>  
                <Answers>
                   <Option no="1">Fill</Option>
                   
                </Answers>
             </Question>
       <!--Question 10-->
             <Question no="10"><Name>Can you edit data in the Repeater control?</Name>  
                <Answers>
                   <Option no="1">No</Option>
                   
                </Answers>
             </Question>
       <!--Question 11-->
             <Question no="11"><Name>Which template must you provide, in order to display data in a Repeater control?</Name>
                <Answers>
                   <Option no="1">Item Template</Option>
                   
                </Answers>
             </Question>
       <!--Question 12-->
             <Question no="12"><Name>How can you provide an alternating color scheme in a Repeater control?</Name>
                <Answers>
                   <Option no="1">Using Alternate Template</Option>
                   
                </Answers>
             </Question>
       <!--Question 13-->
             <Question no="13"><Name>What base class do all Web Forms inherit from?</Name>
                <Answers>
                   <Option no="1">Page base class</Option>
                   
                </Answers>
             </Question>
       <!--Question 14-->
             <Question no="14"><Name>What does WSDL stand for?</Name>
                <Answers>
                   <Option no="1">Web Services Description Language.</Option>
                   
                </Answers>
             </Question>
       <!--Question 15-->
             <Question no="15"><Name>How many classes can a single .NET DLL contain?</Name>
                <Answers>
                   <Option no="1">One or more classes</Option>
                   
                </Answers>
             </Question>
       <!--Question 16-->
             <Question no="16"><Name>Have you converted a project from VB6 to VB.Net?  Tell me about it.</Name>
                <Answers>
                   <Option no="1">none</Option>
                   
                </Answers>
             </Question>
       <!--Question 17-->
             <Question no="17"><Name>Tell me about an object-oriented design you've done?</Name>
                <Answers>
                   <Option no="1">This involves covering of all the fundamental principals of oops</Option>
                   <InternalOptions>
                      <Suboption>
                         <Toptext>Polymorphism</Toptext>
                         
                      </Suboption>
                      <Suboption>
                         <Toptext>Encapsulation or data hiding</Toptext>
                         
                      </Suboption>
                      <Suboption>
                         <Toptext>Inheritance</Toptext>
                         
                      </Suboption>
                   </InternalOptions>
                </Answers>
             </Question>
       <!--Question 18-->
             <Question no="18"><Name>Think of a major technical challenge in one of your projects. Describe the challenge and your solution to it.</Name>
                <Answers>
                   <Option no="1">none</Option>
                   
                </Answers>
             </Question>
       <!--Question 19-->
             <Question no="19"><Name>Which method do you invoke on the DataAdapter control to load your generated dataset with data?</Name>
                <Answers>
                   <Option no="1">Fill Method</Option>
                   
                </Answers>
             </Question>
       <!--Question 20-->
             <Question no="20"><Name>Which template must you provide, in order to display data in a Repeater control?</Name>
                <Answers>
                   <Option no="1">Item template</Option>
                   
                </Answers>
             </Question>
       <!--Question 21-->
             <Question no="21"><Name>What base class do all Web Forms inherit from?</Name>
                <Answers>
                   <Option no="1">page</Option>
                   
                </Answers>
             </Question>
       <!--Question 22-->
             <Question no="22"><Name>What method do you use to explicitly kill a user's session?</Name>
                <Answers>
                   <Option no="1">abandon</Option>
                   
                </Answers>
             </Question>
       <!--Question 23-->
             <Question no="23"><Name>How do you turn off cookies for one page in your site?</Name>
                <Answers>
                   <Option no="1">Iscookieless=true</Option>
                   
                </Answers>
             </Question>
       <!--Question 24-->
             <Question no="24"><Name>Which two properties are on every validation control?</Name>  
                <Answers>
                   <Option no="1">Enabled client script, visible, enableview state</Option>
                   
                </Answers>
             </Question>
       <!--Question 25-->
             <Question no="25"><Name>How do you create a permanent cookie?</Name>
                <Answers>
                   <Option no="1">To set a permanent cookie, set an expiration date for a point in the future</Option>
                   
                </Answers>
             </Question>
       <!--Question 26-->
             <Question no="26"><Name>What tag do you use to add a hyperlink column to the DataGrid?</Name>
                <Answers>
                   <Option no="1">Link Column</Option>
                   
                </Answers>
             </Question>
       <!--Question 27-->
             <Question no="27"><Name>What is the standard you use to wrap up a call to a Web service?</Name>
                <Answers>
                   <Option no="1">WS-Notifications and WS-Resource Framework</Option>
                   
                </Answers>
             </Question>
       <!--Question 28-->
             <Question no="28"><Name>What is the transport protocol you use to call a Web service?</Name>
                <Answers>
                   <Option no="1">SOAP</Option>
                   
                </Answers>
             </Question>
       <!--Question 29-->
             <Question no="29"><Name>To test a Web service you must create a windows application or Web application to consume this service?</Name>
                <Answers>
                   <Option no="1">True</Option>
                   
                </Answers>
             </Question>
       </Subject>
    </root>



    the xml file i am calling using an XSL file, and transforming it onto a html file.
    I need to display only 5 childnodes at a time.The htm page contains PREVIOUS and BACK buttons on clicking it i need to display the pervious (5 childnodes) and next( 5 childnodes)


    Need help

    Vishal

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:Display limited childnodes
    « Reply #1 on: 03/02/04, 10:18 »
    Hi vishal,
    I think, you cannot influence how much data you receive?
    You receive the full file at once?

    If this is so, you have to make your own counter.
    Internaly your nodes are nothing else but arrays.
    You can call a node by the number.

    childNodes[0] shows the first node, and childNodes[childNodes.length-1] shows the last node of this level.

    Therewith you can walk through the nodes as often as you want without reloading anything ;)

    « Last Edit: 03/02/04, 10:19 by Ronald Wernecke »
    happy flashing
    8)
    Ronald

    vishal

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Re:Display limited childnodes
    « Reply #2 on: 03/02/04, 23:28 »
    Thanks for u reply


    Someone has suggested me to use Index() and increment it accordingly, will index() of childnodes will work.



    Vishal

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:Display limited childnodes
    « Reply #3 on: 03/03/04, 01:07 »
    Hi vishal,
    the number in the brackets is called the index.
    If you set a counter and walk through the XML tree, as you would through an array, this is fast and convenient.
    happy flashing
    8)
    Ronald