[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

change from xml to database

Asked by JohnLucio in Programming for ASP.NET

Tags: populateondemand

Hello Experts. I'm not sure how to ask this question. Presently, I'm using XML files to populate my TreeView. What I want to do is: Populate my TreeView from a database instead. Unfortunately, I do not know how to go about doing this. Fortunately, there is Experts Exchange. So here's my present code below. Please show me what this should be changed to.
----------aspx Page------------------
 <asp:Image ID="Image1" runat="server" Style="z-index: 102; left: -9px; position: relative; top: -1px" ImageUrl="~/images/Christian/dove5.gif" ImageAlign="AbsMiddle" />&nbsp;&nbsp;
            <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SermonFilesXML" ExpandDepth="0"
                Style="left: 401px; position: relative; top: -130px; z-index: 103;">
                <DataBindings>
                    <asp:TreeNodeBinding PopulateOnDemand="True" SelectAction="Expand" Text="Sermons Menu" ImageUrl="~/images/chm/closedbook.gif" Value="Sermons Menu" />
                    <asp:TreeNodeBinding DataMember="group" ImageUrl="~/images/xp/folder.gif" SelectAction="Expand"
                        TextField="Title" ToolTipField="tip" />
                    <asp:TreeNodeBinding DataMember="page" ImageUrl="~/images/tit_i_1.jpg" NavigateUrlField="url"
                        TextField="name" ToolTipField="tip" />
                </DataBindings>
            </asp:TreeView>
            <asp:XmlDataSource ID="SermonFilesXML" runat="server" DataFile="~/App_Data/MinistryFiles.xml">
            </asp:XmlDataSource>
            &nbsp;&nbsp;
            <asp:XmlDataSource ID="XmlSermonsMenu" runat="server" DataFile="~/App_Data/Sermons.xml">
            </asp:XmlDataSource>

----------XML File------------------
<MinistryFiles>
    <group Title="A Few Good Men" tip="Bible Study Tools">
      <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/A Few Good Men.pdf">
        Abstract...
      </page>
      <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/A FEW GOOD MEN.ppt">
        Abstract...
      </page>      
    </group>
  <group Title="A Profound Change" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/A Profound Change.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/A PROFOUND CHANGE.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Are Your Wells Plugged Up" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Are Your Wells Plugged Up.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/ARE YOUR WELLS PLUGGED UP.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Empowered by the Spirit of God" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Empowered by the Spirit of God.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/EMPOWERED BY THE SPIRIT OF GOD.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Guidance for the New Year" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Guidance for the New Year.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/GUIDANCE FOR THE NEW YEAR.ppt">
      Abstract...
    </page>
  </group>
  <group Title="It's How We Play the Game" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/It's How We Play the Game.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/IT'S HOW WE PLAY THE GAME.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Our Most Valuable Resource" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Our Most Valuable Resource.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/OUR MOST VALUABLE RESOURCE.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Parenting that Works" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Parenting that Works.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/PARENTING THAT WORKS.ppt">
      Abstract...
    </page>
  </group>
  <group Title="Seeing is Believing" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/Seeing is Believing.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/SEEING IS BELIEVING.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Baptism of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Baptism of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE BAPTISM OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Coming of the King" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Coming of the King.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE COMING OF THE KING.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Conviction of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Conviction of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE CONVICTION OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The DaVinci Code" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The DaVinci Code.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE DAVINCI CODE DECEPTION.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Deity of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Deity of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE DEITY OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Demonstration of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Demonstration of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE DEMONSTRATION OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The General Work of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The General Work of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE GENERAL WORK OF THE SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Indwelling of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Indwelling of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE INDWELLING OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Initial Evidence of the Holy Spirit Baptism" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Initial Evidence of the Holy Spirit Baptism.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE INITIAL EVIDENCE OF THE HOLY SPIRIT BAPTISM.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The New Spirit Covenant of Giving - I" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The New Spirit Covenant of Giving - I.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE NEW SPIRIT COVENANT OF GIVING.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The New Spirit Covenant of Giving - II" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The New Spirit Covenant of Giving - II.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE NEW SPIRIT COVENANT OF GIVING - II.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Person of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Person of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE PERSON OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Signature Series" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Signature Series.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE SIGNATURE SERIES.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Spirit in Sanctification" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Spirit in Sanctification.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE SPIRIT IN SANCTIFICATION.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Symbols of the Holy Spirit-I" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Symbols of the Holy Spirit-I.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE SYMBOLS OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Symbols of the Holy Spirit-II" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Symbols of the Holy Spirit-II.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE SYMBOLS OF THE HOLY SPIRIT - II.ppt">
      Abstract...
    </page>
  </group>
  <group Title="The Titles of the Holy Spirit" tip="Bible Study Tools">
    <page num="1" name="View PDF" tip="Click to view PDF" url="SermonPDFs/The Titles of the Holy Spirit.pdf">
      Abstract...
    </page>
    <page num="2" name="View Powerpoint" tip="Click to view Powerpoint" url="SermonPDFs/THE TITLES OF THE HOLY SPIRIT.ppt">
      Abstract...
    </page>
  </group>
</MinistryFiles>
[+][-]09/14/06 02:49 PM, ID: 17524722Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/06 02:50 PM, ID: 17524727Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/06 08:00 PM, ID: 17526419Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 07:19 AM, ID: 17529609Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/06 08:27 AM, ID: 17530238Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 10:08 AM, ID: 17530965Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/06 10:19 AM, ID: 17531037Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 10:22 AM, ID: 17531064Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 10:24 AM, ID: 17531079Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 11:32 AM, ID: 17531555Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/06 11:57 AM, ID: 17531791Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 12:31 PM, ID: 17532058Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/06 12:59 PM, ID: 17532279Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 01:05 PM, ID: 17532315Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Programming for ASP.NET
Tags: populateondemand
Sign Up Now!
Solution Provided By: nauman_ahmed
Participating Experts: 1
Solution Grade: A
 
[+][-]09/15/06 01:33 PM, ID: 17532508Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/06 01:41 PM, ID: 17532547Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89