18
Reply

In gridview we have two buttons.. By which property you find which button is clicked?

Nilesh Avhad

Nilesh Avhad

10y
3.6k
0
Reply

    By using commandname property we can find which button is clickedButton ltrlslno = (Button)gridMembersList.Rows[index].FindControl("BtnEdit");

    Using Command Name Propertybutton btnTest = (button)GridViewName.Rows[YourRowIndex].FindControl("YourButtonName)

    By using commandname property we can find the button is clicked, When we have multiple Button controls on a Web page, use the CommandName property to specify or determine the command name associated with each Button control. You can set the CommandName property with any string that identifies the command to perform. You can then programmatically determine the command name of the Button control and perform the appropriate actions. Additional information about the command, such as Ascending, may be specified by using the CommandArgument property.

    using commandname prop

    by using command name property

    by using commandname property you can find the button is clicked

    Using commandName property the button clicked is known.

    Using commandName property the button clicked is known.

    By CommandName Property of a textbox.

    we have to use CommandName Property n FindControl property with the control Id

    CommandName Property.

    CommandName

    By using Commandname property we can find which button has clicked

    By CommandName Property of Buttons

    By CommandName Property of Buttons

    Command Name Find in grid row command event