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
Explain clr in brief.
What is session management in c#?
How do you escape in c#?
We cannot create instances of static classes. Can we have constructors for static classes?
Can property be private in c#?
How will you deploy the dll file in gac?
How are Windows programs different from normal C-programs?
Explain About Virtual functions and their use.
What is a .aspx file?
What is written in c#?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
Do we get an error while executing the “finally” block in c#?
Explain different properties of object oriented systems.
Is for loop faster than foreach?
Why do we need abstraction in c#?