ASP.NET: change label text based on changing numbers

mashed potato 0 Reputation points

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:


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.

A set of technologies in the .NET Framework for building web applications and XML web services.
1,631 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.
10,899 questions
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,301 questions
{count} votes