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

  • Home
  • SEARCH
  • 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 6772843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:35:47+00:00 2026-05-26T15:35:47+00:00

I am working on a CMS system for my business, and need to be

  • 0

I am working on a CMS system for my business, and need to be able to generate notifications dynamically into a control panel. Please note, I am using .NET 2.0, coding with VB and my data is all held on a MySQL database.

This is pretty simple for most aspects, but as the whole thing is dynamic some things are proving more difficult.

I have a set of

tags which are dynamically generated with a repeater as follows:

<asp:Repeater runat="server" ID="locationRepeater">
<ItemTemplate>
    <p id='locationNotification' title="<%# Container.DataItem %>" runat='server'>
           COUNT DATA NEEDS TO GO HERE
    </p>                                
    <div class="jewelDescription" id="locationQuestionsNote" runat='server'>
       Notification pending for <%# Container.DataItem %> <!-- (gives location name) -->
    </div>
</ItemTemplate>
</asp:Repeater>

Currently, the Container.DataItem gives me the name of the location from a very simple dataBind of a list of location names

Dim locationList As Array = Split("1,2,3", ",")
    locationRepeater.DataSource = locationList
    locationRepeater.DataBind()

This is great, it allows locations to be added and removed from the system, the control panel is automatically updated depending on the number of locations currently in use.

HOWEVER… I’ve not got the actual data here, which should be a count of records from a separate Database table.

The data is really, really, simple, all I need to be able to do is query a table on my MySQL database for COUNT of ID WHERE locationName = Container.DataItem during each loop of the repeater… but I don’t know how to do this.

I’m thinking maybe I have to do this first, create a table in memory somehow, but I am afraid I have no idea how to achieve this.

Has anyone got any examples of a similar thing, it’s kind of binding to a repeater from two datasources… each task is very simple, but I don’t know how to put it all together!

  • 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-26T15:35:48+00:00Added an answer on May 26, 2026 at 3:35 pm

    You can use the Repeater.ItemDataBound event:

    <asp:Repeater runat="server" ItemDataBound="locationRepeater_ItemDataBound" ID="locationRepeater">
    
     Protected Sub locationRepeater_ItemDataBound(Sender As Object, e As RepeaterItemEventArgs)
    
        If (e.Item.ItemType = ListItemType.Item) Or _
            (e.Item.ItemType = ListItemType.AlternatingItem) Then
    
            'EXAMPLE: Change this to get your id and do the database call.
            If CType(e.Item.DataItem, Evaluation).Rating = "Good" Then
                CType(e.Item.FindControl("RatingLabel"), Label).Text = _
                    "<b>***Good***</b>"
            End If
        End If
     End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with a CMS system, and using a kind of smartform am
I am working on CMS system using smarty. The one cms system could support
I'm working on a web app (CMS) that loads controls dynamically into a holder
I am working with system like CMS that need to versioning documents. what is
I am working on a CMS system tries to support multilingual natively. I have
I am working on a CMS using CakePHP and I want to create a
I'm working on a CMS using VB.NET 3.5 and I'm stuck on a concept.
I am working with a CMS like system, phpBMS, which defines a certain way
I am working in the confines of a CMS system, which defines certain fields
I am working within the confines of a php based CMS like system, which

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.