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 readline c#?
What is the difference between abstract class and interface in c#?
Is it possible to have different access modifiers on the get/set methods of a property in c#?
What is the difference between private and protected in c#?
Can we override static class in c#?
What does readonly mean in c#?
What is the lock statement in c#?
How do I format a string in c#?
What do you mean by synchronous and asynchronous operations?
Why dictionary is faster than list?
What is the difference between the debug class and trace class? Documentation looks the same.
How to implement an object pool in c#.net.
What is .net c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What are the types of comment in c# with examples?