Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my application I am using the update panel for the gridview. In that gridview I am using one commandfield control. I am doing some action for this gridview selectedindexchangge when the commandfield button is clicked. Now my problem is I want to add the postbacktrigger for that commandfield is that possible. If possible, how to add the postbacktrigger in code level. Here is the code:

SQL
<asp:CommandField  ButtonType="Button" HeaderText="View" SelectText="View"
                                            ShowSelectButton="True" />


Thanks in advance
Posted

1 solution

You can add the gridview as postback trigger control, the event would be "Select" because that is your command for the gridview.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900