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
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
What to implement on my class Finalize or IDisposable
Explain the difference between Response.Write () and Response.Output.Write ().
What are scriptable objects?
Which one is trusted and which one is untrusted?
What is the real use of interface in c#?
What is xaml file in c#?
How do you convert byte array to hexadecimal string, and vice versa?
What is the use of console readkey ()?
What are annotations in c#?
Explain the serialization in .net
Is string primitive?
Can we store different data types in arraylist in c#?
Is javascript harder than c#?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?