Seeing whether a certain value exists in a datalist

I’ve been looking everywhere but haven’t found the answer I truly need.

I’m using C# 2008.

When I press a button, I want the webpage to check to see if the value I inserted in my textbox is in my datalist with its databound labels. If the value does exist, I want it to show me in another label that is located ouside my datalist

Below is the code of my aspx page

 <asp:DataList ID="dlnames" runat="server">
        <ItemTemplate>
            <asp:Label ID="lblauthornames" runat="server" Text='<%#Eval("[Skrywer name]") %>'></asp:Label>
        </ItemTemplate>

    </asp:DataList>
  
  <asp:TextBox ID="txtitemtofind" runat="server"></asp:TextBox><br />
    <asp:Button ID="btnfind" runat="server" Text="Find" onclick="btnfind_Click" /><br />
    <asp:Label ID="lblfinder" runat="server" Text=""></asp:Label>

Can someone PLEASE help me? I’ve been growing very discouraged, because nothing I do seems to work.

Thank you in advance

Anxiously hoping for help
theriddler

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.