How will U encapsulate button trigger event into text_box event of Pressing Enter key?
Answer Posted / sandipan4allinterview
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
///do your stuff
}
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the Usage of web.config
What is the difference between new and override in c#?
What is difference between throw and throws in c#?
Why is c# better than java?
What is an escape sequence in c#?
Does c# support multilevel inheritance?
What is strong name assembly?
What is difference between property and variable in c#?
4. Describe the process when we send a request URL? And who is responsible for that?
Define a manifest in .net?
Is and as keyword in c# net?
Where do we use serialization in c#?
What is difference between encapsulation and abstraction in c#?
Is int an object in c#?
Why static constructor is parameterless in c#?