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 / varun sharma
This should possibly do the trick for purpose
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
Button_Click(null, null);
}
}
protected void Button_Click(object sender, EventArgs e)
{
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
Does google use c#?
What is tochararray in c#?
List some of the classes used by system.data namespace?
what is main function of alternate teamplate of datalist?
Why c# is type safe?
What is the use of expression tree in c#?
Explain the steps to create satellite assembly?
how to stored and retrive video in Sql server using asp.net c#......?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
What is difference between first and firstordefault?
What type of data type conversion happens when the compiler encounters the following code?
What are the basic string operations? Explain.
What is a type c#?
Can constructor have return type c#?