Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / srinu

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server" >
<div>
<asp:Button ID="Button1" runat="server"
Text="Button" onclick="Button1_Click" />
<asp:TextBox ID="TextBox1" runat="server"
ontextchanged="Button1_Click"></asp:TextBox>
<asp:Label ID="Label1" runat="server"
Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
-------------------------
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "change";
}

if please answer is correct or wrong please inform

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is deferred execution in c#?

862


How do I join one form to another in c#?

865


what is the purpose of using statement in c#

956


What is the difference between inheritance and abstract class?

840


Is it true that all c# types derive from a common base class?

1007


What is the relationship between a process, application domain, and application?

890


What is the difference between console and windows application?

909


What is difference between constants and read-only?

868


What is the function of .IsDescendent()?

979


Which is better interface or abstract class in c#?

764


What is primitive types in c#?

822


the c# keyword .int. Maps to which .net type?

1091


What is parsing?

873


What are extender provider components? Explain how to use an extender provider in the project.

851


Is there throws keyword in c#?

864