<asp:Button id="btn" runat="Server" onclick="LoadData" />
protected void LoadData(object sender, EventArgs e) { // object - will be the button that fires this event // EventArgs - any arguments value can be accessed in to this method via CommandArguments property of the button }
Regards, Raja, USA
protected void btSomeButton_Click (object sender, EventArgs ea){ Button btnSomeButton = sender as Button; btnSomeButton.Text = "I was clicked!"; }
Thanks SagarP http://www.emanonsolutions.net http://emanonsolutions.blogspot.com/
Login to post response