0

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

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by GeekByChoiCe
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.