ASP.NET: change label text based on changing numbers

mashed potato 0 Reputation points
2023-09-17T06:27:13.74+00:00

I am trying to write a program where the output of text of label changes based on sequence of changing numbers.

I have 4 labels that print out the designation of an approver based on ids from the database.

for example:

1=head of college (HOC)

2=head of department (HOD)

3=head of section (HOS)

if the sequence from the table from the database is (1,2,3)

then the labels will be (HOC,HOD,HOS,None)

if the sequence (1,2)

then the labels will be (HOC,HOD,None,None)

and so, on.

the table:

Capture

please notice that there are up to 8 approvers and the sequence changes every time the levels of approvers are edited.

any idea how to implement that? thanks.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,457 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,681 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.