ImageButton ib = e.Item.FindControl("ImageButton1") as ImageButton;
string id = (e.Item.FindControl("Label1") as Label) .Text;
这两句改成c#的 谢了
string id = (e.Item.FindControl("Label1") as Label) .Text;
这两句改成c#的 谢了
string id = ((Label)e.Item.FindControl("Label1")) .Text;
ImageButton ib = e.Item.FindControl("ImageButton1") as ImageButton;
string id = (e.Item.FindControl("Label1") as Label) .Text; 这两句在C#中也可以直接编译通过。
ImageButton ib = (ImageButton)e.Item.FindControl("ImageButton1");
string id = ((Label)e.Item.FindControl("Label1")).Text;
string id = (e.Item.FindControl("Label1") as Label) .Text;
你可以在上面网站转换
ImageButton ib = e.Item.FindControl("ImageButton1") as ImageButton;
string id = (e.Item.FindControl("Label1") as Label) .Text; Dim ib As ImageButton = CType(e.Item.FindControl("ImageButton1") ,ImageButton )
Dim id as String = CTpye(e.Item.FindControl("Label1") ,Label).Text