Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:16:54+00:00 2026-05-26T22:16:54+00:00

First off.. I am new to asp.net and EF. I have an EntityDatsource on

  • 0

First off.. I am new to asp.net and EF.

I have an EntityDatsource on my page I would like to loop through each row in the result set.

My goal is to dynamically build a page based on the values in the result set. Then to post the information back after it is edited by the user. My plan was to iterate each row on the page_load event. Currently I just have p-code in the area I would like to make this happen. The p-code is as follows

        // foreach (DataRow row in AvailableDeviceConfigDataSource.enti Rows)
        // {
        //   if sectionHeading <> lastSectionHeading
        //   { 
        //     lastSectionHeading = sectionHeading
        //     AddSettingsSection(sectionHeading)
        //   }
        //   AddRowObjects
        // }

Any guidance would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:16:54+00:00Added an answer on May 26, 2026 at 10:16 pm

    In case anybody comes across this and is interested, I did solve my issue a while ago and figured I should post my answer for the benefit of others….

            using (var context = new MyEntities())
            {
                string lastSectionHeading = "";
                bool isFirstHeading = true;
    
                var dynamicPageItems = context.view_dynamicPageItems;
                foreach (var item in dynamicPageItems)
                {
                    if (item.IsActive == 1)
                    {
                        if (!lastSectionHeading.Equals(item.CategoryId))
                        {
                            if (!isFirstHeading)
                                CloseSection();
                            lastSectionHeading = item.CategoryId;
                            AddSettingsSection(item.CategoryDescription);
                            isFirstHeading = false;
                        }
                        AddControl( item.DataType );
                    }
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I'm very new to Azure. I've successfully deployed an ASP.NET MVC 3
First off, I'm new to Java, so please be gentle. I have a JFrame
Here is my scenario: We would like to have a page listing donors, depending
First off I am brand new to C and have been thrown into a
I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which
I have this part in asp.net MVC 3 view: <tr> <td>@Html.LabelFor(x => x.DateOfBirth, new
I'm new to web development and working on my first ASP.NET MVC 3 app.
First off I'm new to Android and Java.. I have been trying to add
First off I am new to FM but I have a good handle on
First off I am very new to Objective C and iPhone programming. Now that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.