I am trying to put user controls in a placeholder when a buttonfield column in a gridview is clicked and runs a command. Right now, I am doing this.
<asp:content id="Content3" contentplaceholderid="place3" runat="server">
<% if dropdownlist1.selecteditem.value="tbldem" then %>
<prefix1:name1 runat="server" />
<% else %>
<prefix2:name3 runat="server" />
<% end if %>
</asp:content>
The problem is that a user control appears when any button is clicked, not only buttons in the gridview.
How can a user control be made to appear only when a button in the gridview is clicked?
Can this be done from the vb sub that runs when the gridview button is clicked?
<asp:content id="Content3" contentplaceholderid="place3" runat="server">
<% if dropdownlist1.selecteditem.value="tbldem" then %>
<prefix1:name1 runat="server" />
<% else %>
<prefix2:name3 runat="server" />
<% end if %>
</asp:content>
The problem is that a user control appears when any button is clicked, not only buttons in the gridview.
How can a user control be made to appear only when a button in the gridview is clicked?
Can this be done from the vb sub that runs when the gridview button is clicked?