How will U encapsulate button trigger event into text_box
event of Pressing Enter key?i.e only after pressing Enter
after the text is typed the button trigger event should
activate?
Answer Posted / sandipan
Your question is not exactly cleat to me !
But then also assuming your ques i am answering this
[ I THINK YOU WANT TO CAPTURE BUTTON CLICK EVENT WITH ENTER KEY ]
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
///do your stuff
}
}
REPLY YOUR FEEDBACK !!
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is cshtml extension?
How does array sort work?
What are the drawbacks of extending an interface as opposed to extending a class?
Why do we need to call CG.SupressFinalize?
What is the best dependency injection c#?
How does inheritance work in c#?
What are cookies in c#?
What is use of a HashTable in .NET?
Why is lazy loading?
What is assembly c#?
List the difference between interface and abstract class?
Why data types are important in c#?
What is strongly typed in c#?
If I return out of a try/finally in c#, does the code in the finally-clause run?
What is data type c#?