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


Please Help Members By Posting Answers For Below Questions

Explain the Usage of web.config

577


What is the difference between new and override in c#?

550


What is difference between throw and throws in c#?

448


Why is c# better than java?

499


What is an escape sequence in c#?

506






Does c# support multilevel inheritance?

481


What is strong name assembly?

454


What is difference between property and variable in c#?

465


4. Describe the process when we send a request URL? And who is responsible for that?

1482


Define a manifest in .net?

534


Is and as keyword in c# net?

527


Where do we use serialization in c#?

496


What is difference between encapsulation and abstraction in c#?

454


Is int an object in c#?

510


Why static constructor is parameterless in c#?

593