What does the find by value and selected mean in our image in the respective context?

Bob Dang 1 Reputation point
2022-04-21T07:45:37.617+00:00

194995-image.png

What does the find by value and selected mean in our image in the respective context?

Developer technologies | ASP.NET | Other
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2022-04-22T07:00:46.917+00:00

    Hi @Bob Dang ,
    About the codes, you could get these information:

    1. ddlRecStatus is a dropdownlist.
    2. ddlRecStatus. Items mean the items of the dropdownlist.
    3. ddlRecStatus. Items.FindByValue mean that you are finding item in the dropdownlist according the value.
    4. The Status may be the string of the one of the value of the dropdownlist. The complete sentence means that you are checking if the dropdownlist have the item with the Status value.
    5. If have, you make the item selected. In the page, you will find the item which value is Status is show in the dropdownlist.

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.