Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am binding listview on checkbox check event and in listview i have taken one linkbutton.i want to change text of linkbutton programmaticaly on conditions and want to call that event on radio button changed event
C#
protected void LstvwTitle_ItemDataBound(object sender, ListViewItemEventArgs e)
   {

       if (e.Item.ItemType == ListViewItemType.DataItem)
       {
           ListViewDataItem item = (ListViewDataItem)e.Item;
           LinkButton lnkbtn = (LinkButton)item.FindControl("LnkATenquiry");
           if (SysATGlobal.DB.MyProfile.QueryBuiler.IsWant)
           {

                   lnkbtn.Text = "Send Reply";

           }
           else
           {

                   lnkbtn.Text = "Send Enquiry";

           }
       }
   }
Posted
Updated 11-May-13 4:51am
v2

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