forum

Home / DeveloperSection / Forums / How to implement click event on textbox

How to implement click event on textbox

Anonymous User 1732 27-Nov-2014

In my web application I need a functionality so that when users click on textbox to input values, it should make the button and the other fields visible? 

I am using the code provided below but, could not get it working. 

C#: 

protected void TextBox1_Click(object sender, EventArgs e)
{
    ButtonSearch.Visible = true;
}

ASP.Net: 

<asp:TextBox ID="TextBox1"runat="server" OnTextChanged="TextBox1_TextChanged"
OnClick="TextBox1_Click"></asp:TextBox>
<asp:Button ID="ButtonSearch"runat="server" OnClick="ButtonSearch_Click" Text="Search" Visible="False" />

How to accomplish this? 

Thanks


Updated on 27-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By