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 9166089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:04:45+00:00 2026-06-17T15:04:45+00:00

It was hard to find the correct question topic. Well, let me elaborate more.

  • 0

It was hard to find the correct question topic. Well, let me elaborate more. I’m making a barcode generator simple webapp. It is for our warehouse team.

I made a class named SqlComm where I handle all SQL connection related thing. Then, I have a query (the query is just about counting a column where some Date in between). I use the query for setting the array size. Later, it loops through a for cycle and adds each new label to a placeholder. Sadly, the placeholder is not showing my new labels just created.

c# (codebehing)

  int index = 0;
  int iLength = 0;

  dt = SqlComm.SqlDataTable("SELECT [Lenum] FROM [SUIDonMachineTable] WHERE MachineTimestamp  BETWEEN CONVERT(datetime,'"+strDayFrom+"', 121) AND CONVERT(datetime,'"+strDayTo+"', 121) AND Station ='NG08NX1BT'");

  object obj = new object();
  obj = SqlComm.SqlReturn("SELECT COUNT (Lenum) FROM [SUIDonMachineTable] WHERE MachineTimestamp  BETWEEN CONVERT(datetime,'"+strDayFrom+"', 121) AND CONVERT(datetime,'"+strDayTo+"', 121) AND Station ='NG08NX1BT'");
  iLength = Convert.ToInt32(obj);
  Label[] labels = new Label[iLength];

  for (index = 0; index == iLength; index++)
     {                        
         labels[index] = new Label();
         labels[index].Text = (string)dt.Rows[index]["Lenum"];
         PH.Controls.Add(labels[index]);                                
     }

asp.net (placeholder part)

<asp:PlaceHolder ID="PH" runat="server"></asp:PlaceHolder>
  • 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-06-17T15:04:46+00:00Added an answer on June 17, 2026 at 3:04 pm
    for (index = 0; index < iLength; index++)
    

    Try it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I find it hard to explain, so please request more info if you need
This is probably a simple question but I'm having a hard time trying to
I find it hard to find clear examples that would explain how to read
I'm trying hard to find a way to implement the Facebook api in cocos
It is hard to find a resource on this without finding Java EE, but
It's not hard to find developers who think cursors are gauche but I am
As C# lacks support for freestanding functions, I find it hard to find a
Is there any Tcl podcasts (in English)? It's not hard to find about Ruby,
I find it hard to understand how UTC works. I have to do the
While working with Java, I find it hard to position my main window in

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.