Hi,

Inside my formView, in the InsertItemTemplate, I have the following code:

<tr>
     <td align="right">
         <b>Field</b>
     </td>
     <td>
        <asp:TextBox ID="MyTextBox" Text='<%# Bind("Field") %>' runat="Server" />
        <asp:Button ID="myButton" Text="Find Matching Results" runat="server" OnClick=" myButton_Click" />
     </td>
</tr>

In myButton_Click, all I do is bind a CheckBoxList with the results from the search. I’m not changing the visibility anywhere (so, from what I understand, it will be True by default)
However, the Button is not being shown in the formView, even if I set its visibility to True. Why the button is not being shown? Any ideas?

Thanks,

Ana

dont know if that matters on ASP but your onlick event starts with an space. might ends up as an error coz it dont find that function then.
But better ask in the ASP.NET forum here on that site

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.