Joma Rajab

Joma Rajab

  • NA
  • 110
  • 51.3k

how to make linkbutton hide and show place holder

Aug 22 2016 10:21 AM
I need to make the  place holder visible and invisible with link button but it is not working not like a normal button when I click on it
please help
  1. <asp:LinkButton ID="link1" runat="server" Text="Forgot Password?" 
  2. OnClick="link1_Click">  
  3.  </asp:LinkButton><br />  
  4.    <asp:PlaceHolder ID="typeEmail" runat="server" Visible="false">  
  5.     <asp:TextBox ID="textbox1" Visible="false" runat="server" AutoComplete="off">  
  6.      </asp:TextBox>
  7.       </asp:PlaceHolder>  
  8.   
  9.   
  10. code behind   
  11. protected void link1_Click(object sender, EventArgs e)  
  12.     {  
  13.         typeEmail.Visible = true;  
  14.        textbox1.Visible = true;  
  15.     }  
  16.    
 

Answers (9)