ListView中用FindControl查找按钮(原)

正确方法如下:

for(int i=0;i<ListView1.Items.Count;i++)
            {
                Button paid = (Button)ListView1.Items[i].FindControl("Button_paid"); 
                Button Completed = (Button)ListView1.Items[i].FindControl("Button_Completed");
                Button Cancelled = (Button)ListView1.Items[i].FindControl("Button_Cancelled"); 
                HyperLink HL_shipping = (HyperLink)ListView1.Items[i].FindControl("HL_shipping"); 
               ………………

             }

你可能感兴趣的:(ListView)