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.

Developer technologies | VB
Developer technologies | ASP.NET | Other
SQL Server | Other
{count} votes

Your answer

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